Separate client and environment settings #4567
main fromrefs/pull/4567/head·opened View on GitHubWhat Changed#
- Group the settings navigation by Client and Environment ownership.
- Split the mixed General page into client settings at
/settings/generaland environment settings at/settings/environment. - Scope Restore defaults to the settings owned by the current page.
Why#
Settings that follow the graphical client and settings that configure the connected execution environment currently appear together, obscuring where changes apply. Making ownership explicit supports first-class remote environments and complements #4559 and #4564.
UI Changes#
Before: one flat settings navigation and a General page mixing client preferences with environment configuration.
After: labeled Client and Environment navigation groups with separate General pages. The affected flows were verified in an authenticated web client; the preview screenshot/recording endpoint failed during capture, so no reliable artifact is attached.
Checklist#
- This PR is small and focused
- I explained what changed and why
- I included before/after screenshots for any UI changes (capture tooling failed; DOM-level integrated verification passed)
- A video is not applicable; this change adds no animation or interaction behavior
Verification#
vp test run src/components/settings/SettingsSidebarNav.test.ts --project unit- Targeted
vp linton the six affected files vp buildinapps/web- Authenticated integrated web verification of both settings pages and their visible controls
- Web typecheck was attempted and remains blocked by existing errors in unrelated files on
origin/main
Note
Low Risk Mostly UI routing and conditional rendering; no auth or persistence model changes beyond which keys restore-defaults touches per page.
Overview Settings navigation is now grouped under Client and Environment, and the old mixed General page is split into two routes.
Client (/settings/general) keeps UI and app preferences (theme, glass opacity, sidebar, confirmations, etc.) plus About. Environment (/settings/environment) holds execution-related options (streaming, provider checks, new-thread defaults, text generation model) and moves Diagnostics off the client General page.
useSettingsRestore takes an ownership argument so Restore defaults only lists and resets settings for the active panel, on both General pages. A unit test locks in the nav group → route mapping.
Note
Separate client and environment settings into distinct panels in the settings sidebar#
- Adds a new
/settings/environmentroute that renders anEnvironmentSettingsPanel, splitting settings that belong to the environment (streaming, provider checks, git, model selection) away from client settings (theme, UI, confirmations). - Replaces the flat
SETTINGS_NAV_ITEMSwithSETTINGS_NAV_GROUPSinSettingsSidebarNav.tsx, grouping nav items under labeled "Client" and "Environment" sections. - Updates
useSettingsRestoreto accept anownershipargument so the "Restore Defaults" button resets only the settings belonging to the current panel's scope. - Behavioral Change: the "Restore Defaults" button now only appears on the Client and Environment settings pages, and its effect is scoped to that panel's owned settings.
- 1
github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:L
Approvability#
Verdict: Approved
This PR reorganizes existing settings into 'client' and 'environment' categories with no new functionality or runtime behavior changes - purely UI restructuring with conditional rendering and navigation grouping.
You can customize Macroscope's approvability policy. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).macroscopeapp[bot](GitHub profile, opens in a new tab) approved these changes
Note
🤖 GPT-5.6 Sol responding on behalf of Theo
We're closing this PR as we clean up the T3 Code backlog. Thank you for taking the time to put this together.
This branch changes the same environment-targeted Settings flow as #4559. We are keeping that PR as the active implementation instead of reviewing a second version.
If you believe we closed this in error, please reopen the PR and leave a comment explaining what we missed.
t3dotgg(GitHub profile, opens in a new tab) closed this
Sign in to join this conversation.
Important
Review skipped#
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
.coderabbit.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID:
f97465ed-251d-4c11-996a-303fb1fd4ad4You can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.Use the checkbox below for a quick retry:
✨ Finishing Touches
🧪 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.
❤️ Share