Repository navigation
feat(tray): add optional always-on-top setting - #527
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (29)
Included review availability: Your plan provides up to 4 included reviews per hour; 1 remains after this review. 📝 WalkthroughWalkthroughThe change adds a persisted tray panel always-on-top setting. The display settings UI can update it, localized labels describe it, and the flyout applies it when opened, updated, or unfocused. ChangesTray panel always-on-top
Priority: ⬇️ Low Estimated code review effort: 3 (Moderate) | ~25 minutes Change: Feature Sequence Diagram(s)sequenceDiagram
participant DisplayTab
participant SettingsCommand
participant FlyoutWindow
participant TrayPanel
DisplayTab->>SettingsCommand: Submit trayPanelAlwaysOnTop
SettingsCommand->>FlyoutWindow: Apply updated setting
FlyoutWindow->>TrayPanel: Set native always-on-top state
TrayPanel-->>FlyoutWindow: Focus loss event
FlyoutWindow->>TrayPanel: Keep visible when enabled
Suggested reviewers: Merge Risk: 🔵 Low · up to In a narrow timing window, enabling Always on top can leave the tray flyout hidden until it is reopened; the setting and later opens remain correct. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 56.67% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 30 functions across 21 files. (8 skipped: 8 unsupported.)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Thermo-nuclear code-quality reviewScope: PR #527, head Receipt: No high-confidence finding. The setting is represented once in the persisted Rust model and typed bridge, applied at the dedicated flyout window boundary, and covered by focused tests. The change does not introduce a giant-file regression, duplicate ownership, scattered special-case control flow, or an unnecessary abstraction layer. |
Problem
The tray panel/flyout closes or falls behind other windows after it loses focus. There was no user-controlled setting for keeping it above other windows.
Fix
Add an opt-in, persisted Always on top setting in Display settings. It defaults to false, applies only to the tray flyout on creation, reopen, focus changes, and live settings updates, and leaves normal z-order behavior unchanged when disabled. Existing floatbar behavior is untouched.
Validation
Fixes #509
Summary by CodeRabbit
New Features
Tests