Design Exploration: Replace the site dropdown with a permanent site header - #4400
Draft
shaunandrews wants to merge 28 commits into
Draft
shaunandrews wants to merge 28 commits into
shaunandrews wants to merge 28 commits into
Conversation
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
…ons as site tabs Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
…ons and results in toasts Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
…step Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
…t renderer Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
…used webview Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
…aks panel Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
shaunandrews
force-pushed
the
stu-2162-site-header-actions
branch
from
August 4, 2026 17:55
0dfb256 to
e200d5a
Compare
…-actions # Conflicts: # apps/cli/commands/pull.ts # apps/local/src/index.ts # apps/studio/src/ipc-utils.ts # apps/studio/src/main-window.ts # apps/studio/src/menu.ts # apps/studio/src/modules/sync/lib/ipc-handlers.ts # apps/ui/src/components/progressive-blur/style.module.css # apps/ui/src/components/sidebar-layout/index.tsx # apps/ui/src/components/sidebar-layout/style.module.css # apps/ui/src/components/site-dropdown/index.tsx # apps/ui/src/components/site-dropdown/main-view.module.css # apps/ui/src/components/site-dropdown/main-view.test.tsx # apps/ui/src/components/site-dropdown/main-view.tsx # apps/ui/src/components/site-dropdown/trigger-secondary.ts # apps/ui/src/components/site-dropdown/utils.ts # apps/ui/src/components/site-list/index.tsx # apps/ui/src/components/site-overview-view/index.test.tsx # apps/ui/src/components/site-overview-view/index.tsx # apps/ui/src/components/site-toolbar/index.test.tsx # apps/ui/src/components/site-toolbar/utils.test.ts # apps/ui/src/data/core/connectors/ipc/index.ts # apps/ui/src/data/core/connectors/local/index.ts # apps/ui/src/data/core/index.ts # apps/ui/src/data/core/types.ts # apps/ui/src/data/queries/use-sync-site.ts # apps/ui/src/data/sync-activity.ts # apps/ui/src/ui-classic/components/session-view/index.tsx # apps/ui/src/ui-classic/router/route-onboarding-connect/index.tsx # apps/ui/src/ui-classic/router/route-onboarding-connect/style.module.css # apps/ui/src/ui-classic/router/route-site-overview/index.tsx # packages/common/sites/sync.ts
This was referenced Sep 1, 2026
…r-overview # Conflicts: # apps/ui/src/components/menu/style.module.css
shaunandrews
changed the base branch from
trunk
to
add-overview-preview-sites
September 4, 2026 20:15
This was referenced Sep 4, 2026
wojtekn
added a commit
that referenced
this pull request
Sep 11, 2026
## Related issues - None — design exploration. - Compare the permanent site-header exploration in #4400 and the full browser-tab exploration in #4753, which extends this toolbar with independent tab/history state and platform-standard modifier-click navigation. ## How AI was used in this PR AI assisted with iterative implementation, refactoring, and test updates. Shaun directed the interaction and visual design through hands-on review of the running Studio preview, including toolbar spacing, responsive behavior, control states, icon treatment, and dark-mode corrections. ## Proposed Changes - Explore a conventional browser-style preview toolbar that replaces the realm tab selector with a filled URL field and familiar navigation controls. - Give the URL field a deliberate browser-address treatment: 32px tall, comfortably padded, strongly rounded, filled rather than bordered, and theme-aware in light and dark mode. - Keep Front-end, WordPress admin, and Database available from the address menu, then add deduplicated per-site recent addresses as the user navigates. - Make navigation more useful with browser-like back, forward, and refresh controls, including right-click history menus for jumping between visited pages. - Keep preview tools understandable at a glance: Annotate uses a bordered secondary treatment, while Responsive always keeps its current mode visible and uses a checkmark to identify the selected menu item. - Move the Open in action to the chat header, where its split button stays visually quiet at rest and preserves external destinations without crowding the browser toolbar. - Preserve compact behavior, truncation, theme-aware colors, and legible controls across narrow layouts and light/dark appearances. - Hide empty browser chrome while a site is stopped, remove obsolete realm-number shortcuts, and disable preview-only controls on Database with explanatory tooltips. This is intentionally a design exploration. The interaction model and visual treatment are presented for feedback rather than as a final approved direction. ## Current screenshots The set below covers the address menu and recents, compact toolbar behavior, dark mode, and the disabled Database state. | Wide · light · address menu | Narrow · light · toolbar | |---|---| |  |  | | Wide · dark · address menu | Narrow · light · Database state | |---|---| |  |  |  ## Testing Instructions 1. Launch the Agentic UI in Studio and open a running local site with the preview visible. 2. Confirm the toolbar presents back, forward, refresh, the 32px filled URL field, Responsive, and Annotate. 3. Confirm the URL field has no resting border, retains a clear focus treatment, and remains legible in light and dark mode. 4. Focus the URL field and use Front-end, WordPress, and Database; verify the menu closes after selection. 5. Submit new paths, reopen the address menu, and confirm deduplicated recent addresses appear only for that site. 6. Navigate through several pages, then right-click Back and Forward; verify each history menu opens below its button and can jump to an entry. 7. Open the Responsive dropdown and try Responsive, Mobile, Tablet, Desktop, and Desktop + Mobile. Confirm the trigger label updates and only the selected row has a checkmark. 8. Open a Database destination and confirm Responsive and Annotate are disabled with explanatory tooltips. 9. Stop the site and confirm the empty browser toolbar is hidden. 10. Confirm Open in appears at the top-right of the chat panel, repeats the current default destination, has no border or fill at rest, and remains legible as chat content scrolls behind it. 11. Narrow the preview and confirm Responsive keeps its visible label while Annotate can collapse to its icon. 12. Repeat the visual checks in both light and dark color schemes. Automated verification completed for the latest update: - `npm test -- apps/ui/src/components/site-preview/address-bar.test.tsx apps/ui/src/components/site-preview/index.test.tsx apps/ui/src/components/site-preview/inspector-script.test.ts` (65 tests) - `npm run typecheck -w @studio/ui` - `npm run cli:build:ui` on the combined exploration branch ## Pre-merge Checklist - [x] Have you checked for TypeScript, React or other console errors? --------- Co-authored-by: Wojtek Naruniec <wojtek@naruniec.me> Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
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
Written with Claude Code and Codex through iterative design passes in the running app. I directed the interaction model and visual hierarchy, reviewed each pass, and had the implementation rebuilt on current trunk before updating this exploration.
Proposed Changes
This is the third PR in the site-management UI stack:
Site actions currently hide behind a dropdown whose trigger reads primarily as status. This exploration replaces that entry point with a permanent site header: site identity and state on one side, with the most relevant actions always visible on the other.
The visible hierarchy is:
It also introduces dedicated Share, Publish/connect, and selective Sync dialogs. Sync supports multiple connected sites, Push/Pull direction, database selection, and a file tree. The responsive header truncates identity first, then progressively reduces secondary actions while preserving the primary action for as long as possible.
The final stack layer (#4601) reuses the exact Preview sites list inside Share, opens this Sync dialog from each connection row, and adds operation progress to both the overview and persistent notices.
Current UI
Testing Instructions
Verification used while preparing this stack:
Pre-merge Checklist