Skip to content

Open settings menu actions to relevant panes#67

Merged
aurorascharff merged 2 commits into
mainfrom
codex/settings-menu-deeplinks
May 30, 2026
Merged

Open settings menu actions to relevant panes#67
aurorascharff merged 2 commits into
mainfrom
codex/settings-menu-deeplinks

Conversation

@aurorascharff
Copy link
Copy Markdown
Owner

Summary

  • Let status-menu settings actions request a specific Settings pane.
  • Move the selected Settings pane into the shared view model so AppKit menu actions can update it.
  • Open Manage Profiles... on Profiles and Configure Custom Colors... on Visual Style.

Verification

  • swift build

@vercel
Copy link
Copy Markdown

vercel Bot commented May 30, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
click-light Ready Ready Preview, Comment May 30, 2026 8:06pm

@aurorascharff aurorascharff marked this pull request as ready for review May 30, 2026 19:58
Copilot AI review requested due to automatic review settings May 30, 2026 19:58
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Enables status-bar menu actions to open the Settings window directly to a relevant pane (e.g., Profiles, Visual Style) by making the selected pane controllable from AppKit entry points.

Changes:

  • Update status menu actions to request a specific SettingsPane when opening Settings.
  • Add selectedPane to the shared settings view model and bind the SwiftUI sidebar selection to it.
  • Extend SettingsWindowController.show(...) / AppDelegate.openSettings(...) to accept an optional pane to select on open.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
Sources/ClickLight/StatusController.swift Routes “Manage Profiles…” / “Configure Custom Colors…” to Settings with a requested pane.
Sources/ClickLight/SettingsWindowController.swift Adds pane selection support and moves selected-pane state into the view model.
Sources/ClickLight/ClickLightSettingsView.swift Binds the Settings navigation selection to viewModel.selectedPane and exposes SettingsPane for cross-file use.
Sources/ClickLight/AppDelegate.swift Wires status menu “open settings” callback through to openSettings(selecting:).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread Sources/ClickLight/SettingsWindowController.swift
@aurorascharff aurorascharff merged commit 5fa7c19 into main May 30, 2026
5 checks passed
@aurorascharff aurorascharff deleted the codex/settings-menu-deeplinks branch May 30, 2026 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants