feat: add toggle to show/hide menu bar icon#1
Open
Karl-Dai wants to merge 11 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
cmd+shift+v,F1,F3) continue to work; re-launching the app opens Preferences viaDistributedNotificationCentersignaling between the second-launch and running instance.AppSettingsfinishes its async DB load (deterministic poll on a newisLoadedsignal, 5s timeout).Architecture notes
WindowGroup(id: "settings")with the standard SwiftUISettings { … }scene so Settings can be opened fromAppDelegateviaNSApp.sendAction(Selector(("showSettingsWindow:")))regardless of whether the window is currently alive.MenuBarExtrausesisInserted: $settings.showMenuBarIconfor live show/hide.com.antigravity.veloxclip.openSettings; observer body wrapped inTask { @MainActor in … }for Swift 6 strict-concurrency correctness.Files changed
VeloxClip/Models/AppSettings.swift—showMenuBarIconproperty +isLoadedsignal + DB persistence.VeloxClip/Views/SettingsView.swift— toggle in General section.VeloxClip/App/VeloxClipApp.swift— Settings scene, MenuBarExtra binding, distributed-notification post + observer, cold-start fallback.docs/superpowers/specs/2026-05-07-menu-bar-icon-toggle-design.md— design.docs/superpowers/plans/2026-05-07-menu-bar-icon-toggle.md— implementation plan (incl. documented refinement vs. spec).Test plan
This repo has no automated test target (
VeloxClipTestsdeclaration in Package.swift is a stub; noTests/directory exists). Manual verification per the spec checklist:cmd+shift+v/F1/F3still work.VeloxClip.app→ Settings opens, app activates.cmd+Qthen re-launch from Spotlight → Settings opens automatically (cold-start fallback).VeloxClip.app→ Settings still opens (verifies the duplicate-launch signal path).