Skip to content

feat(tauri): add the tray status line and lock indicator - #29

Merged
statik merged 1 commit into
claude/tauri-migration-self-update-74d57gfrom
claude/step-17-tray-status-line
Jun 21, 2026
Merged

feat(tauri): add the tray status line and lock indicator#29
statik merged 1 commit into
claude/tauri-migration-self-update-74d57gfrom
claude/step-17-tray-status-line

Conversation

@statik

@statik statik commented Jun 21, 2026

Copy link
Copy Markdown
Member

Completes tray parity with the Go app's status display.

What it does

  • Adds a disabled status line at the top of the tray menu: Locked: <id> (<title>) when locked, Disconnected — no player otherwise. The TrayPresenter updates its text from the poll thread via a shared Arc<Mutex<Option<MenuItem>>> populated when the tray is built.
  • The presenter also sets a menu-bar lock indicator (HD● locked / HD○ idle) via the tray title — rendered on macOS, where tray titles show — alongside the existing tooltip update.

Menu is now: Status (disabled) · Profile · Re-home · Check for Updates… · Quit.

Verification (Linux, full Tauri toolchain)

  • cargo clippy --all-targets -- -D warnings (src-tauri) ✅
  • cargo test (src-tauri) ✅
  • cargo fmt --check (src-tauri) ✅

The Windows tray has no text title, so the HD●/HD○ indicator is macOS-only; on Windows the status line and tooltip carry the state. Visual behavior on real tray/menu-bar hardware is covered by the macOS/Windows testing-handoff issues.

🤖 Generated with Claude Code


Generated by Claude Code

Complete tray parity with the Go app's status display:

- Add a disabled status line at the top of the tray menu ("Locked: <id>
  (<title>)" / "Disconnected — no player"); the presenter updates its text
  from the poll thread via a shared handle populated when the tray is built.
- The TrayPresenter now also sets a menu-bar lock indicator (HD● / HD○,
  rendered on macOS where tray titles show) alongside the existing tooltip.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01R8X1NxFiaLGJzwUD5wgRTv
@statik
statik marked this pull request as ready for review June 21, 2026 15:50
@statik
statik merged commit 06a58f5 into claude/tauri-migration-self-update-74d57g Jun 21, 2026
6 checks passed
@statik
statik deleted the claude/step-17-tray-status-line branch June 21, 2026 15:50
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