Repository navigation
fix(ui): always show Onboarding and Restart Orca in Help - #12379
Conversation
Users could not find "Show onboarding again" because it required holding Alt. Surface it on the default Help menu so replay is discoverable without reinstalling.
📝 WalkthroughWalkthroughThe Help menu now displays Onboarding and Restart by default. It no longer tracks or reveals admin options through Alt-key interactions. Existing action handlers and controls remain unchanged. Tests and channel-switcher documentation reflect the updated behavior. 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
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 |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
src/renderer/src/components/sidebar/SidebarSettingsHelpMenu.test.tsx (1)
225-227: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick winPreserve coverage for the admin-only Restart behavior.
This test verifies that
Onboardingis visible by default, but it does not verify thatRestart Orcaremains hidden without Alt/Option. Add an absence assertion for the default menu.Proposed test update
it('renders the Onboarding menu item by default', () => { const html = renderToStaticMarkup(<SidebarSettingsHelpMenu />) expect(html).toContain('Onboarding') + expect(html).not.toContain('Restart Orca') })
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: ff75f214-2cac-4385-ba06-1776ed878ec3
📒 Files selected for processing (2)
src/renderer/src/components/sidebar/SidebarSettingsHelpMenu.test.tsxsrc/renderer/src/components/sidebar/SidebarSettingsHelpMenu.tsx
Surface Restart next to Check for Updates by default and drop the Alt-only admin gate, which no longer hid anything else.
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
src/renderer/src/components/sidebar/SidebarSettingsHelpMenu.tsx (1)
98-98: 🎯 Functional Correctness | 🟠 Major | ⚡ Quick winKeep
Restart Orcaoff the default Help menu.With
Restart Orcarendered unconditionally and no Alt-reveal state or menu-close reset, this item is visible by default. The remaining PR objective is to make onlyOnboardingpublic, so restore the admin-reveal behavior forRestart Orcaand update the test expectations accordingly.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: f1626854-87eb-4ad8-a6a7-7f2ed47f8874
📒 Files selected for processing (3)
src/renderer/src/components/settings/GeneralUpdateSettingsSection.tsxsrc/renderer/src/components/sidebar/SidebarSettingsHelpMenu.test.tsxsrc/renderer/src/components/sidebar/SidebarSettingsHelpMenu.tsx
🚧 Files skipped from review as they are similar to previous changes (1)
- src/renderer/src/components/sidebar/SidebarSettingsHelpMenu.test.tsx
) * fix(ui): always show Onboarding in the Help menu Users could not find "Show onboarding again" because it required holding Alt. Surface it on the default Help menu so replay is discoverable without reinstalling. * fix(ui): always show Restart Orca in the Help menu Surface Restart next to Check for Updates by default and drop the Alt-only admin gate, which no longer hid anything else.
Summary
Users could not find how to replay onboarding because the action required holding Alt while opening Help — some reinstalled Orca instead. Restart had the same non-discoverable affordance.
Test plan
SidebarSettingsHelpMenuunit tests if dependencies are installed