Skip to content

Conversation

@arikorn
Copy link
Contributor

@arikorn arikorn commented Jan 19, 2026

The help buttons are now available on the heading-bar help menu, so this PR gives the option to free up space on the sidebar. (It makes a pretty big difference, especially with Settings open, which almost always ends up requiring the scrollbar when the help buttons are there.)

Also add a little context-help to the other experimental options -- please feel free to edit the text if you like the idea but not the wording.

image

Summary by CodeRabbit

  • New Features

    • Added configurable option to hide sidebar help buttons (What's New, User Guide, Support).
  • Improvements

    • Sidebar and Cloud settings now persist per browser.
    • Companion Cloud section updated with deprecation information.
    • Removed automatic page reload when toggling Cloud settings.

✏️ Tip: You can customize this high-level summary in your review settings.

The help buttons are now available on the heading-bar help menu, so this gives the option to free up space on the sidebar. (It makes a pretty big difference, especially with Settings open, which almost always ends up triggering the scrollbar when the help buttons are there.)
@coderabbitai
Copy link

coderabbitai bot commented Jan 19, 2026

📝 Walkthrough

Walkthrough

This PR refactors the webui's Sidebar and ExperimentsConfig components to use localStorage-backed React state hooks instead of direct localStorage reads. It introduces configurable toggles for hiding sidebar help buttons and managing the companion cloud feature, making the UI state more reactive and persistent.

Changes

Cohort / File(s) Summary
Sidebar State Management
webui/src/Layout/Sidebar.tsx
Replaced direct localStorage checks with state-driven rendering using hideHelpButtons and showCloud hooks. Conditionally renders help navigation group (What's New, User Guide, Support) based on showHelpButtons state.
Experiments Configuration
webui/src/UserConfig/Sections/ExperimentsConfig.tsx
Introduced localStorage-backed state hooks for hideSidebarHelp and showCloud. Updated toggle controls to manage sidebar help visibility and cloud feature deprecation status with enhanced inline help text and persistent browser-local storage behavior.

Poem

🎛️ State and storage dance as one,
localStorage hooks, cleanly done!
Help buttons hide, configs persist,
Your preferences won't be missed. ✨

🚥 Pre-merge checks | ✅ 2
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main feature: adding an experimental switch to hide sidebar help buttons, which aligns directly with the PR's primary objective and changes.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@arikorn
Copy link
Contributor Author

arikorn commented Jan 19, 2026

Oh, yeah, Rabbit reminded me: I used useLocalStorage to avoid needing a refresh (will want it that way in the future anyway) and while I was doing sidebar stuff, I did the same for Companion Cloud. I could have done it for touch backend too, but didn't see a need.

(Also, I added an image to the OP, above).

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.

1 participant