Repository navigation
feat(studio): the left menu is drawn as the app's menu, in Studio's own graphite - #37478
Conversation
Claude-Session: https://claude.ai/code/session_01Utp6CbL6Nn3scsU8yvLyU4 Co-authored-by: Claude <noreply@anthropic.com>
…ite accent Claude-Session: https://claude.ai/code/session_01Utp6CbL6Nn3scsU8yvLyU4 Co-authored-by: Claude <noreply@anthropic.com>
…eeps its state Claude-Session: https://claude.ai/code/session_01Utp6CbL6Nn3scsU8yvLyU4 Co-authored-by: Claude <noreply@anthropic.com>
…w that group labels draw none Claude-Session: https://claude.ai/code/session_01Utp6CbL6Nn3scsU8yvLyU4 Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Utp6CbL6Nn3scsU8yvLyU4 Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#5 · os-bill · session_01Utp6CbL6Nn3scsU8yvLyU4 Final green head (2026-11-26T07:57Z): |
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X Contract-review-claim: session_01Utp6CYtTDvfPQDzMbZnN5X · head b1dc4ad · 2026-11-26T07:59Z |
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X Contract reviewServed-tier: Review of PR #37478 (card #37452, phase 1-1 of epic #37424) on the declaration face. Read: ① Derived judgments
② Semver level
③ Boundary flags
Implemented-by: VERDICT: FAIL |
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X 席位核对Head-sha:
|
… menu; the accent pair is rebound too Claude-Session: https://claude.ai/code/session_01Utp6CbL6Nn3scsU8yvLyU4 Co-authored-by: Claude <noreply@anthropic.com>
…uthor left open Claude-Session: https://claude.ai/code/session_01Utp6CbL6Nn3scsU8yvLyU4 Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#5 · os-bill · session_01Utp6CbL6Nn3scsU8yvLyU4 Final head for the L1 rework (7186198980):
Local, on
CI on
S4: real-browser readings against mockup 1 (Main.png @602c2009), light and darkSetup
Light
Dark
Phone (390px drawer)
Matches mockup 1
Differs
Screenshots (project files,
Generated by Claude Code |
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X Contract-review-claim: session_01Utp6CYtTDvfPQDzMbZnN5X · head 803afb6 · 2026-11-26T09:06Z |
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X Contract reviewServed-tier: Delta review of PR #37478 (card #37452) over the record that FAILED head ① Derived judgments
② Semver level
③ Boundary flags
Implemented-by: VERDICT: PASS |
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X 席位核对Head-sha:
|
|
repo:objectstack#5 · os-bill · session_01Utp6CbL6Nn3scsU8yvLyU4 Landing (2026-11-26T09:11Z): area ux-37424 marks PR #37478 ready and arms auto-merge on head |
repo:objectstack#5 · os-bill · session_01Utp6CbL6Nn3scsU8yvLyU4
Requested by Bill · project thread
Fixes #37452
Clause-②: yes (widening)
Metadata-protocol: none
维护者速读
What changes
groupentry is now an exported component,NavigationGroupSectionwith its props typeNavigationGroupSectionProps(@object-ui/layout, a published package, henceClause-②: yes (widening); listed in the package README), and the app menu renders through it with the same output as before. Studio's menu draws each of its groups with it: the label is the disclosure button with the chevron, open by default. While a search lists matches, every listed group is drawn open, chevron turned down, and a click on its label is not taken; the author's choice comes back when the search is cleared. In the phone drawer the label is the app menu's 44 px tap target. A Studio group still carries no count (ADR-0084, amended: a number in this menu is an entry's items), so the closed-group count is optional and Studio passes none.SidebarMenuButtonsize (wassm), a bare line icon before the name with no tile (the maintainer's 「可以不要背景」), the muted item count at the right; the selected entry's count is not muted. Each listed type has its own icon (a module-local map inStudioMenu.tsx; an unmapped type draws its group's icon); entries that are not a type draw one per kind. The group label no longer draws a group icon, matching mockup 1.studio-tokens.tsgainsSTUDIO_ACCENT_HSL/STUDIO_ACCENT_FOREGROUND_HSL(graphite, light and dark) andSTUDIO_ACCENT, a class string that rebinds every theme token the app's branding writes on the page root:--primary,--primary-foreground,--ring,--sidebar-primary,--sidebar-ringto graphite, and--accent/--accent-foreground(written from the app'saccentColor) to a faint graphite tint (STUDIO_ACCENT_TINT_HSL), since in this theme--accentis the hover tint, not a strong colour. It re-derives Tailwind's--color-*from them on the same element. The menu wraps its header and body in it, so the front end's existing selected-row rule (the pill and its 2 px left bar, which read the theme's primary) draws graphite in Studio, docked or in the phone drawer, whatever the app's theme colour is. Mounting the accent on the whole Studio root is left to the later card that owns the surface.StudioDesignSurface.tsx, the top bar.Tests
StudioMenu.test.tsx, a new top-level describe: the group label is a disclosure button, open by default, closing it hides only its entries and draws no count; a search lists matches in a group the author closed with its chevron turned down, a click during the search is not taken (on a closed group and on an open one), and clearing it restores the author's choice; in the phone drawer the label is 44 px (min-h-[44px]), docked it is not; each entry draws a bare line icon as the row's first child; the current entry is the primitive's active row and only it; with a non-default app theme applied through the app shell's own branding hook (a rose primary and an amber accent on the page root, the control), every theme token the hook wrote is rebound to graphite, light and dark, on an ancestor of the selected entry, with nothing in between writing one back.studio-tokens.test.ts(new): the literal class string's values equal the constants in both themes (the accent pair included), graphite is a neutral, the hover tint is faint, and the--color-*tokens are re-derived.StudioDesignSurface.accessSegment-12452.test.tsx(the shield moved from the group label to the permission-set entry).Acceptance notes
ui/packages/layout/src/NavigationRenderer.tsx(the extractedNavigationGroupSection; the app menu'sgrouparm now renders through it and must draw the same DOM),ui/packages/app-shell/src/views/studio-design/studio-tokens.ts(STUDIO_ACCENT),ui/packages/app-shell/src/views/studio-design/StudioMenu.tsx(the accent wrapper and the group sections).StudioDesignSurface.accessSegment-12452.test.tsx; its glyph assertion pinned the group-label icon this card removes, so it is updated here (test only; the component file is untouched). The seat ratified it (L1 7186198980) and extended the surface toui/packages/layout/README.md.studioMenuData.tsheader's "the two draw the same types, icons and names" is no longer true for icons. Neither file was in this card's surface. Carrier: 专题:App Studio 改版(Studio 是开发软件包的入口:左右两栏、软件包切换和概览页、列表页按前端样式、专用色和新名字) #37424.~org/~allthe closed state survives a search (pinned).Verification
Two-minute check: open any Studio page under an app with a non-default theme colour (for example a rose
primaryColor). Expected: the left menu's group headers have a chevron and collapse on click, every entry has a line icon with no tile, and the open page's entry is a grey pill with a dark graphite bar on its left (light grey in dark mode), not the app's colour.Local runs (head 803afb6)
pnpm --dir ui exec vitest run --maxWorkers=2 packages/app-shell/src/views/studio-design/StudioMenu.test.tsx packages/app-shell/src/views/studio-design/studio-tokens.test.ts packages/app-shell/src/views/studio-design/StudioDesignSurface.accessSegment-12452.test.tsx packages/layout/under the verify lock (head 453b097):Test Files 53 passed (53),Tests 448 passed (448); StudioMenu and studio-tokens on 803afb6:Tests 40 passed (40).pnpm --dir ui exec vitest run --maxWorkers=2 packages/app-shell/src/views/studio-design/ packages/app-shell/src/layout/ packages/app-shell/src/views/__tests__/(head 41fc38d):Tests 1 failed / 4659 passed; the one failure was the Access-segment glyph pin, updated in bca58d4 and green since (4 of 4).pnpm --filter @object-ui/layout type-check,pnpm --filter @object-ui/layout build,pnpm --filter @object-ui/app-shell build(on b1dc4ad),pnpm --filter @object-ui/app-shell type-check(includes the test project; re-run on 803afb6): exit 0.pnpm exec eslinton the six changed UI files: 0 errors; no new warning in the Studio files.dispatch-gates --commandsderived 38 commands for this diff; all 38 exit 0 on 803afb6;--ranreconciliation with exit codes: 38 derived, 38 run, 0 NOT-MEASURED (a derived zero).pnpm check:new-line-citations: 0 new citations.Ablations (each mutation landed and restored by `scripts/ablation-replace.mjs`, blob back to HEAD, `git diff HEAD` empty)
STUDIO_ACCENT: the graphite-under-a-non-default-theme test goes red (1 failed / 32 passed).open={open || searching}toopen={open}: the search test red (1 failed / 39 passed); back to the old shapeopen={open} forceOpen={searching}: red on the chevron'srotate-90;onOpenChangealwayssetOpen: "a click on an open group's label during a search is not taken" red;isMobile={false}: the 44 px tap-target test red; the accent pair dropped fromSTUDIO_ACCENT: the light-theme tokens test and the every-theme-token test red.Generated by Claude Code