feat(tauri): add the tray Profile submenu (pin a profile)#28
Merged
statik merged 1 commit intoJun 21, 2026
Merged
Conversation
Replicate the Go tray's Profile menu in the Tauri tray: - A "Profile" submenu with "Auto (match any)" plus one checkbox per profile id; the checkmark starts on the persisted selection (Auto when none or the pinned id no longer names a loaded profile). - Selecting an entry persists the id via SelectionStore, re-points the LockManager (which re-polls immediately so the lock reflects the choice), and moves the checkmark to the chosen entry. - Port the Go `checkedProfile` helper verbatim, with its unit tests. backend.rs now consumes lock_manager/selection/profile_ids/active, so drop the placeholder #[allow(dead_code)] on Backend. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01R8X1NxFiaLGJzwUD5wgRTv
statik
marked this pull request as ready for review
June 21, 2026 15:40
statik
merged commit Jun 21, 2026
7757da7
into
claude/tauri-migration-self-update-74d57g
6 checks passed
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.
Replicates the Go tray's Profile menu in the Tauri tray, completing the tray menu (Profile / Re-home / Check for Updates… / Quit).
What it does
checkedProfile).SelectionStore(selection.json),LockManager(set_active, which re-polls immediately so the lock reflects the choice),backend.rsnow consumeslock_manager/selection/profile_ids/active, so the placeholder#[allow(dead_code)]onBackendis removed.Tests
checkedProfileunit tests (empty → Auto, known → checked, unknown → Auto).Verification (Linux, full Tauri toolchain installed locally)
cargo clippy --all-targets -- -D warnings(src-tauri) ✅cargo test(src-tauri) ✅ — 3checked_profiletests passcargo fmt --check(src-tauri) ✅cargo test --workspace✅ — 71 core + 5 os tests unaffected🤖 Generated with Claude Code
Generated by Claude Code