Skip to content

feat(mac): use PAIR symbol for the menu bar icon - #194

Merged
Noah-Tervalon-Nvidia merged 1 commit into
NVIDIA:developfrom
MylesShannon:feat/macos-menu-icon
Nov 5, 2026
Merged

Noah-Tervalon-Nvidia merged 1 commit into
NVIDIA:developfrom
MylesShannon:feat/macos-menu-icon

Conversation

@MylesShannon

Copy link
Copy Markdown
Contributor

Changelog title

Use the PAIR symbol in the macOS menu bar

Changelog body

  • Replace the opaque app tile with a transparent PAIR house-and-network symbol, with Retina support.

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

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

  • Linux, Node.js 26.13.0, locked public dependencies: npm --prefix desktop run generate:icons, make check, and npm --prefix desktop run dead-code:check pass, including 282 Vitest tests and 26 Node tests.
  • git diff --check passes.
  • Prior native testing on an Apple Silicon Mac covered tray initialization and light/dark previews. I manually inspected the icon in the combined development app on my Mac and confirmed its appearance.

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

  • I have read the Contributing Guidelines.
  • Every commit is signed off (git commit -s), certifying the Developer Certificate of Origin.
  • Relevant automated or manual checks cover the change, as recorded above.
  • Relevant documentation is updated.
  • I checked the diff, changed filenames, and commit messages for credentials, private data, internal URLs, internal issue identifiers, and generated artifacts.
  • I recorded validation commands and results above, including outstanding checks.
  • 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.

@Noah-Tervalon-Nvidia Noah-Tervalon-Nvidia left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

lgtm

@Noah-Tervalon-Nvidia
Noah-Tervalon-Nvidia merged commit b9a2297 into NVIDIA:develop Nov 5, 2026
13 checks passed
pair-release-intent Bot added a commit that referenced this pull request Nov 5, 2026
Apply release intent from PR #194.

Applies-PR: #194
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]>
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