Repository navigation
feat(web): redesigned shell, menus and dialogs on shared primitives - #28839
maria-rcks wants to merge 149 commits into
Conversation
ApprovabilityVerdict: Needs Human Approval Macroscope's review found this PR requires human approval — The redesign introduces a default surface appearance and adds a file-level static-analysis suppression, both requiring human review. Unresolved concerns also describe clipped audio controls and a missing Pull action in the Git panel. Needs human approval because:
Review your spending limits in Billing settings, or comment |
Thread transfer impact✅ Thread transfer remains within every enforced ceiling.
Other scenariosAll 64 scenario measurements match All 64 scenario measurements
Baseline: Scenario and decoded snapshot size10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed. |
c812323 to
dada6cc
Compare
de9a00a to
9802f93
Compare
9802f93 to
15320fd
Compare
# Conflicts: # apps/web/src/components/clerk/MobileClientsUserProfilePage.tsx # apps/web/src/components/clerk/T3ConnectUserProfilePage.tsx # apps/web/src/components/files/NotebookPreview.tsx # apps/web/src/components/files/office/Presentation.tsx
|
Macroscope skipped reviewing this pull request. Per-PR cost limit exceeded (workspace setting). Reviews on this PR have cost $49.97 so far. This review would add an estimated $1.92, bringing the total to $51.88 — above your per-PR limit of $50.00. Tip To get this pull request reviewed, you can:
|
|
The @utility surface-ghost-hover {
- background: var(--ghost-hover-fill);
+ background: var(--ghost-hover-fill) border-box;
}
|
…s into the redesign
… the redesign's checks
# Conflicts: # apps/web/src/components/AppRouteModal.tsx # apps/web/src/components/sidebar/SidebarHostPressureWarning.tsx
# Conflicts: # apps/web/src/components/settings/KeybindingsSettings.tsx # apps/web/src/components/sidebar/SidebarThreadRow.tsx
…esign's button and theme props
…gn's inline details card
# Conflicts: # apps/mobile/src/i18n/translations/de.json # apps/mobile/src/i18n/translations/en.json # apps/mobile/src/i18n/translations/es.json # apps/mobile/src/i18n/translations/fr.json # apps/mobile/src/i18n/translations/ja.json # apps/mobile/src/i18n/translations/ko.json # apps/mobile/src/i18n/translations/pl.json # apps/mobile/src/i18n/translations/pt-BR.json # apps/mobile/src/i18n/translations/ru.json # apps/mobile/src/i18n/translations/sv.json # apps/mobile/src/i18n/translations/zh.json # apps/web/src/components/CommandPaletteContent.browser.test.tsx # apps/web/src/components/RightPanelTabs.tsx # apps/web/src/components/ThreadChipHoverCard.tsx # apps/web/src/components/ThreadStatusIndicators.tsx # apps/web/src/components/ThreadTerminalDrawer.tsx # apps/web/src/components/chat/MessagesTimeline.tsx # apps/web/src/components/chat/ThreadDetailsPrRows.tsx # apps/web/src/components/chat/ThreadDetailsUsage.tsx # apps/web/src/components/chat/ThreadRelationshipsControl.tsx # apps/web/src/components/chat/threadDetailsCardLayout.ts # apps/web/src/components/issue/IssueListFilterPickers.tsx # apps/web/src/components/issue/IssueRow.tsx # apps/web/src/components/pullRequest/PullRequestListFilters.tsx # apps/web/src/components/pullRequest/PullRequestRow.tsx # apps/web/src/components/pullRequest/ThreadPullRequestsPanel.tsx # apps/web/src/components/settings/VoiceSettingsPanel.tsx # apps/web/src/components/sidebar/SidebarThreadRow.tsx # apps/web/src/components/sidebar/SidebarUpdatePill.tsx # apps/web/src/components/sidebar/UpdateEverythingDialog.tsx # apps/web/src/components/workflows/WorkflowReferences.tsx # apps/web/src/components/workflows/WorkflowRunFeed.tsx # apps/web/src/components/workflows/WorkflowRunsView.browser.test.tsx # apps/web/src/components/workflows/WorkflowRunsView.tsx # apps/web/src/components/workflows/WorkflowsPage.tsx # apps/web/src/i18n/translations/de.json # apps/web/src/i18n/translations/en.json # apps/web/src/i18n/translations/es.json # apps/web/src/i18n/translations/fr.json # apps/web/src/i18n/translations/ja.json # apps/web/src/i18n/translations/ko.json # apps/web/src/i18n/translations/pl.json # apps/web/src/i18n/translations/pt-BR.json # apps/web/src/i18n/translations/ru.json # apps/web/src/i18n/translations/sv.json # apps/web/src/i18n/translations/zh.json # apps/web/src/index.css # packages/client-runtime/src/threadPullRequests.test.ts # packages/source-control-core/src/shared/threadPullRequests.ts
…r 1's control and label rules
…s read layer 1's markup; catalogs drop the joined usage strings
Main up to b4b58d2^, the commit before the move to General Translation v12.
Main's b4b58d2, the move to General Translation v12 (#46460). Every file the layer changed was migrated with the codemod in /home/maria/fb/rb-1132/topup23/tools (codemod of the layer's file, main's hand edits merged on top); files the layer does not change are main's. The layer's translations were carried to their v12 keys.
The rest of main up to 2321fcf (69 commits after the v12 move).
On main, the sidebar, titlebar, menus, pickers and dialogs each pick their own sizes, weights and surfaces, so the same control looks different from screen to screen. This layer gives them one set of primitives and type roles, which the five layers above build on.
The sidebar drops its brand header and sits on the window chrome. The titlebar gains back and forward buttons and shows the open thread as a tab. Thread rows, the thread details card, menus, the command palette and dialogs use the new surfaces, inset fields and compact key hints. Settings > Appearance replaces the glass opacity slider with a surface style picker. Mobile thread rows show status as tinted pills.
components/ui/text.tsxadds<Text>with seven roles, title to micro, backed by tokens inindex.css.button.tsxgains variants, sizes and aContentButtonfor row-like controls;status-dot,picker-styles,menu-row-textandlabeled-sectionare new./design-systemis a dev-only page that renders every primitive live. Four new lint rules keep feature code on the roles and controls, with per-file debt ceilings. Dialogs, popovers, sheets and tooltips honor reduced motion.Read first:
apps/web/src/components/ui/text.tsx: the seven type rolesapps/web/src/index.css: tokens, surface styles, type scaleapps/web/src/components/ui/button.tsx: variants every control usesapps/web/src/components/AppSidebarLayout.tsx: titlebar history buttons, chromeapps/web/src/components/sidebar/SidebarThreadRow.tsx: largest sidebar changeapps/web/src/components/design-system/DesignSystemPage.tsx: the live catalogNeeds approval: Theo for
apps/web/src/components/ui/scroll-area.tsx(focus ring drawn as an outline) and rootvite.config.ts(lint rules and debt ceilings only, no bundling); Theo or Julius forpackages/contracts:settings.ts(addssurfaceStyleandhideWindowControlsWhenSidebarCollapsed, removesglassOpacityandpersistComposerContextStrip),ipc.ts(optionalsetBlackChromeandsetWindowButtonsVisibledesktop methods),server.ts(optionalhomeDirectoryin the server config),settings.test.ts.Stack
Do not merge: this stack still needs review. Each PR targets the one below it.
1-primitives-shell(this PR)2-composer-timeline3-panels-pages4-settings-setup5-voice6-workspace-panesWhat it looks like
Main against this layer on the same made-up data (four demo repos,
Replay (dev)threads), 1440x900. Relative ages differ because the two sides ran minutes apart.The shell in dark: no brand header, history arrows and a thread tab in the titlebar, a reworked thread details card.
The same shell in light.
The thread menu keeps its items; rows, icons and the surface change.
The command palette searching "the": key hints become key caps and thread results show the project chip.
The Add Action dialog: same fields, new type roles, inset fields, switches and a neutral primary button.
New in this layer: the
/design-systemcatalog, foundations and buttons.Checks
On Blacksmith at this head (0126204, main c5badf4 merged in): typecheck, lint (0 errors), knip,
fmt --checkandi18n:checkpass. Web tests in four shards pass 2932, 1474, 1465 and 1186 after two test files took this layer's labels. Server tests: 9185 pass, 15 skipped. GitHub has run only labeling and review-bot checks on this head.Not verified: desktop (black chrome, macOS traffic lights), the mobile app on a device, Safari, real providers, light mode outside the shell, reduced motion, narrow widths, the browser address toolbar; mobile, desktop and shared test suites not run.
Done with Claude Code (Opus 5.5) in T3 Code.