Repository navigation
feat(mac): use PAIR symbol for the menu bar icon - #194
Merged
Noah-Tervalon-Nvidia merged 1 commit intoNov 5, 2026
Merged
Conversation
Signed-off-by: Myles Shannon <[email protected]>
Noah-Tervalon-Nvidia
self-requested a review
November 5, 2026 20:15
7 tasks done
Noah-Tervalon-Nvidia
pushed a commit
that referenced
this pull request
Dec 1, 2026
<!-- pair-release-intent:v1 --> ### Changelog title Hide the macOS Dock icon while PAIR runs in the background ### Changelog body - Add an opt-in setting to hide the Dock icon while the main window is hidden or closed and restore it when reopened. ### Bumps - services: minor - nvpair-cluster-manager: none - nvpair-engine-manager: none - nvpair-errors: none - nvpair-job-scheduler: none - nvpair-manual-nodes: none - nvpair-node-info: none - nvpair-node-scanner: none - nvpair-node-settings: none - nvpair-proxy: none - nvpair-tui: none - nvpair-ui-broker: none - nvpair-workload-manager: none <!-- /pair-release-intent:v1 --> ## Description Add **Settings → Service → Appearance → Hide Dock icon when the window is hidden** on macOS. It defaults off, persists locally, and takes effect immediately. Opening Overview restores the Dock icon; opening only the menu bar popup leaves it hidden. Minimizing the main window keeps the Dock icon visible. A login launch with **Start minimized to tray** enabled applies the Dock preference after tray initialization, even when no Overview window exists. ## Scope Uses the existing Kaizen UI Switch without custom styling, typed preload/IPC, and local UI configuration. Handles Electron's cooldown after showing the Dock and native application Hide behavior. Windows and Linux behavior is unchanged. Independent of the menu icon and helper-signing changes. This setting uses Electron's macOS-only `app.dock` API. Linux taskbar behavior is a separate platform concern and has not been implemented or tested here. The setting remains separate from the startup preferences merged in #97 and the menu bar icon merged in #194. ## Validation - Linux, Node.js 26.13.0, fresh locked dependencies: `make -o desktop/package-lock.json check` and `npm --prefix desktop run dead-code:check` pass, including lint, TypeScript, contracts, build-script and SPDX checks. The Makefile lockfile prerequisite was skipped because `npm ci` had already completed. - The minimized-window regression failed before the review fix and passed afterward. Additional tests cover closing a minimized window and applying the preference with no Overview window, both enabled and disabled. - `git diff --check` passes. - Prior native testing on an Apple Silicon Mac covered hide, close, reopen, rapid transitions, menu popup activation, application Hide, disabling the preference, and persistence across a fresh process. - The original feature was manually tested in a combined development app on my Mac. The November 24 minimized-window and hidden-startup changes were validated with Electron mocks on Linux; native macOS and login-session testing has not been repeated for this update. ## Risk macOS Dock visibility changes application activation behavior. Deferred hiding rechecks current window/preference state and is canceled on reopening. The preference defaults off for existing configurations. No routing, Go service, or privileged-helper behavior changes. ## Checklist - [x] I have read the [Contributing Guidelines](https://github.com/NVIDIA/Personal-AI-Router/blob/develop/CONTRIBUTING.md). - [x] Every commit is signed off (`git commit -s`), certifying the Developer Certificate of Origin. - [x] Relevant automated or manual checks cover the change, as recorded above. - [x] Relevant documentation is updated. - [x] I checked the diff, changed filenames, and commit messages for credentials, private data, internal URLs, internal issue identifiers, and generated artifacts. - [x] I recorded validation commands and results above, including outstanding checks. - [x] I declared version bumps in the release-intent block. No Go service implementation changes; all component bumps are `none`. Version files and changelog are left to automation. --------- Signed-off-by: Myles Shannon <[email protected]>
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.
Changelog title
Use the PAIR symbol in the macOS menu bar
Changelog body
Bumps
Description
Use a transparent monochrome version of PAIR's house-and-network symbol in the macOS menu bar. The previous full app tile has an opaque background, so using it as a template produces a solid silhouette.
Scope
Stage the template through the existing icon-generation pipeline and load 18-point and 2× Retina representations. macOS supplies the light/dark appearance. Windows and Linux icons are unchanged; this is independent of the Dock setting and helper-signing changes. The source PNG was generated from the existing PAIR app icon and visually reviewed.
Validation
npm --prefix desktop run generate:icons,make check, andnpm --prefix desktop run dead-code:checkpass, including 282 Vitest tests and 26 Node tests.git diff --checkpasses.Risk
The generated template must be included with runtime icon assets; the existing flat-file icon copy includes it. Visual behavior is macOS-only. No service or privileged-helper changes.
Checklist
git commit -s), certifying the Developer Certificate of Origin.none. Version files and changelog are left to automation.