Auto-save agentic UI settings and redesign the preferences layout - #4219
Merged
Conversation
Collaborator
📊 Performance Test ResultsComparing 421adc0 vs trunk app-size
site-editor
site-startup
Results are median values from multiple test runs. Legend: 🟢 Improvement (faster) | 🔴 Regression (slower) | ⚪ No change (<50ms diff) |
…osave-preferences # Conflicts: # apps/ui/src/components/site-list/index.tsx
…osave-preferences # Conflicts: # apps/ui/src/data/queries/use-sites.ts
| ]; | ||
|
|
||
| function isColorScheme( value: unknown ): value is ColorScheme { | ||
| return value === 'system' || value === 'light' || value === 'dark'; |
Contributor
katinthehatsite
left a comment
Contributor
There was a problem hiding this comment.
The changes look good to me 👍
I noticed one small thing - there seems to be a slight lagging while I am switching languages while the dropdown is going away. I tried to capture it in the screencast below:
Screen.Recording.2026-07-17.at.11.08.56.AM.mov
Contributor
Author
|
@katinthehatsite I've addressed the feedback in 0a17304 |
…osave-preferences # Conflicts: # apps/ui/src/index.css
…tomattic/studio into agentic-settings-autosave-preferences
Contributor
Author
sejas
approved these changes
Jul 20, 2026
sejas
left a comment
Member
There was a problem hiding this comment.
Confirmed RTL is fixed! Thanks!
bcotrim
enabled auto-merge (squash)
July 20, 2026 16:11
1 task
bcotrim
added a commit
that referenced
this pull request
Jul 21, 2026
## Related issues - Related to [STU-1882](https://linear.app/a8c/issue/STU-1882) ## How AI was used in this PR Implemented with Claude Code following the auto-save settings patterns from #4219, using the Save-button-era exploration in #3979 as a reference. All code reviewed, linted, typechecked, and unit-tested locally. ## Proposed Changes - A new **Default site directory** row in Settings shows the current folder and opens the native folder picker; picking a folder saves immediately, matching the auto-save behavior of the other preferences. The value is shared with the classic UI, so changes made in either stay in sync. | Light | Dark | |--------|--------| | <img width="3248" height="2122" alt="image" src="https://github.com/user-attachments/assets/4e22e5f9-3232-4b93-9514-de67bf116d7d" /> | <img width="3248" height="2122" alt="image" src="https://github.com/user-attachments/assets/1de28d2a-c9b8-4f91-b181-c8a10e94ac1c" /> | ## Testing Instructions 1. Enable the new Studio experience and open **Settings**. 2. Verify the **Default site directory** row shows your current default (or "Choose a folder…" if unset). 3. Click it, pick a folder — the choice should persist immediately (no Save button), and survive an app restart. 4. Cancel the picker — nothing should change or save. 5. Switch to the classic UI → Preferences: the same directory should appear there (and vice versa). 6. Create a new site in the agentic UI: the proposed path should live under the chosen directory. 8. Check the settings screen in both light and dark mode. ## Pre-merge Checklist - [x] Have you checked for TypeScript, React or other console errors? 🤖 Generated with [Claude Code](https://claude.com/claude-code)
14 tasks
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.



Related issues
How AI was used in this PR
Implemented with Claude Code (design ported from the settings redesign explorations in #3975/#3979, adapted to auto-save). All changes were reviewed, and behavior was verified manually in the app plus unit tests.
Proposed Changes
First PR of the application-settings series for the new Studio experience.
Note: Some settings are intentionally left out and will be addressed in follow-up PRs
Testing Instructions
Pre-merge Checklist
🤖 Generated with Claude Code