Skip to content

App Studio 改版(1-1):左侧菜单照前端样式——分组标题可折叠、线条图标不带底色、选中用胶囊加竖条;定义 Studio 专用石墨色 #37452

Description

@objectstack-fleet

repo:objectstack#5 · os-bill · session_01Utp6CbL6Nn3scsU8yvLyU4

Filing gate: ③ · Source: topic #37424 — parent decisions 4 and 5; the maintainer's 「左侧菜单的分类效果也参考前端」「左侧菜单选中效果也和前端保持一致」「可以不要背景」「Studio 应该是一个专用的企业色,不需要和应用的企业色一致。防止晕了」 (2026-11-26, quoted on #37424), and his pick 「按推荐启动」 of phase 1 (2026-11-26 05:57Z). Sub-issue of #37424 (phase 1, P1-1).
Grade: area:ux · Feature · p2 (takes the parent's grade) · evidence: mockup 1 (#37424 comment 7181963746, Main.png) and the current menu read on origin/main 7d50dc8.
Reader: area ux-37424 (seat repo:objectstack#5), an os-dev subagent.

维护者速读

What

Acceptance

  • The Studio menu matches mockup 1's left column in grouping, icons and selection, in light and dark.
  • The selected colour is the graphite token whatever the app's theme colour is (a test pins it with a non-default app theme).
  • No change to front-end app menus (the existing layout / sidebar tests stay green untouched).

File surface: ui/packages/app-shell/src/views/studio-design/StudioMenu.tsx, studio-tokens.ts, their tests, a menu-piece export in ui/packages/layout only if needed, one changeset.
Governing text: docs/adr/0084-application-builder-information-architecture.md (menu), parent decisions 4–5.

Activity

  1. added
    enhancement
    priority:p2
    pm:queue
    domain:ui
    on Nov 26, 2026
  2. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CbL6Nn3scsU8yvLyU4

    Claim: PM loop round 1
    Session: session_01Utp6CbL6Nn3scsU8yvLyU4
    Account: os-bill
    Branch: claude/issue-37452-studio-menu-front-end-style
    Worktree: objectstack-issue-37452
    Domain: domain:ui
    Seat: repo:objectstack#5
    Area: ux-37424
    File surface: ui/packages/app-shell/src/views/studio-design/StudioMenu.tsx, studio-tokens.ts, studioMenuGroupLabel.ts, their tests, a menu-piece export in ui/packages/layout/src/** only if a front-end piece is not exported, one .changeset/*.md (stop on breach; explain in the report)
    Container & model: M, mode:subagent, model: default tier (dispatch-gates --tier: no path-derived mandate, the PM picks floor or default; default because the judgement is visual parity with the front end, not mechanical), effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — not a defect card
    Thread-read: none
    Premise: holds — read at origin/main 7d50dc8 2026-11-26T06:11Z: StudioMenu.tsx renders the front end's Sidebar primitive; no open PR touches StudioMenu.tsx or studio-tokens.ts (all open PRs' file lists scanned, 0 hits).
    Serial constraints cleared: PR #37383 (seat 4, #36909) merged 2026-11-26T06:08Z and never touched this card's files; this card stays off StudioDesignSurface.tsx (#37455 owns it next). Siblings #37454/#37455/#37456 wait on #37383 and on this card's tokens.
    Pre-claim lane: domain:ui — every path is under ui/packages/app-shell / ui/packages/layout.
    Pre-claim deps: none — no Blocked-by:; parent #37424 is this area's topic (seat 5 lease ux-37424 on #35217).
    Prior rulings read: StudioMenu, studio-tokens, accent, sidebar in docs/adr/** → 0 rulings on this surface; ADR-0084 governs the menu's grouping (unchanged here); parent decisions 4–5 and the maintainer's words quoted on this card.

  3. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 26, 2026
  4. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in area:ux · domain:ui · Feature · priority:p2 · pm:dispatched · size S; rationale: phase 1-1 of topic #37424, the Studio side menu matched to the front-end style. Grade follows the parent; already dispatched by area ux-37424.

  5. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CbL6Nn3scsU8yvLyU4
    os-dev-report

    {
      "issue": 37452,
      "status": "done",
      "branch": "claude/issue-37452-studio-menu-front-end-style",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/37478",
      "session": "session_01Utp6CbL6Nn3scsU8yvLyU4",
      "premise_still_valid": true,
      "summary": "Studio's left menu now draws each group with the app menu's collapsible group, extracted from NavigationRenderer as the exported NavigationGroupSection (@object-ui/layout; the app menu renders through it with identical output, layout suite 405/405 green untouched). Entries use the app menu's row size with a bare line icon (no tile) per type or entry kind, and the group label no longer draws a group icon (mockup 1). studio-tokens.ts defines STUDIO_ACCENT_HSL / STUDIO_ACCENT_FOREGROUND_HSL (graphite, light and dark) and STUDIO_ACCENT, a class that rebinds the theme tokens app branding writes on the page root and re-derives Tailwind's --color-* on the same element; the menu wraps its header and body in it, so the front end's existing pill-and-left-bar selected rule draws graphite whatever the app theme. Premise held at a46efa8c: StudioMenu.tsx used the Sidebar primitive; the front end's selected look is the unlayered [data-sidebar=menu-button][data-active=true] rule reading hsl(var(--primary)) in components and console index.css; mockup 1 read from 602c2009 (not merged).",
      "tests": "Head b1dc4ad1, all under os-verify-lock. pnpm --dir ui exec vitest run --maxWorkers=2 StudioMenu.test.tsx + studio-tokens.test.ts + StudioDesignSurface.accessSegment-12452.test.tsx + packages/layout/: Test Files 53 passed (53), Tests 446 passed (446), VERDICT command-exit 0. Broader run at 41fc38d9 over packages/app-shell/src/views/studio-design/, src/layout/, src/views/__tests__/: Tests 1 failed / 4659 passed; the failure was the Access-segment glyph pin (group icon moved to the entry), updated in bca58d4e, then 4/4. pnpm --filter @object-ui/layout type-check, @object-ui/layout build, @object-ui/app-shell build (tsc + dist completeness), @object-ui/app-shell type-check (incl. tsconfig.test.json): exit 0. eslint on the 6 changed UI files: 0 errors, no new warning in Studio files. Ablations via scripts/ablation-replace.mjs (landed: anchor 1 to 0, restored: blob == HEAD, git diff HEAD empty; tests import src through the vitest alias, no dist leg): STUDIO_ACCENT removed from the wrapper to the non-default-theme graphite test red (1 failed / 32 passed); forceOpen={searching} to false to the search-opens-closed-group test red (1 failed / 32 passed). A first version of that search test stayed green under the second ablation (package scope remounts the groups when a search flattens them), so it was moved to ~all scope and re-ablated red.",
      "gates": "Local: dispatch-gates --commands (repo objectstack-ai/objectstack, merge base a46efa8c6, 7 paths, 725 changed lines) derived 38; all 38 exit 0, captured before any pipe (37 on b1dc4ad1; pnpm --dir ui exec vitest run scripts/ on bca58d4e: 172 files passed, 2 skipped; the only later change is un-exporting a const in StudioMenu.tsx). check:query-options-erasure timed out once at a 280s cap in the batch and passed on a 580s rerun (exit 0, 'ratchet holds'). dispatch-gates --ran with exit codes: 38 derived, 38 run, 0 NOT-MEASURED (a DERIVED zero). pnpm check:new-line-citations (ui): 0 new, exit 0. CI on PR #37478 head b1dc4ad1 at report time: Check Changeset, Check PR Size, Governed Surface Queue Guard, Lint (ESLint, CI/release/engine, PM dispatch-gates, docs & code guards, repo & tooling, scoped x3), PR-body guards, Type Check (consumer, debt ledger, source, workspace), filter all in_progress; skipped: 18.x upgrade harness, Borrowed queue verdict, Packed-tarball smoke, Queue verdict, Schedule gate. NOT MEASURED: Type Check UI / Test UI / Build & E2E UI / Live E2E UI / Lint UI, not yet listed on the head at report time.",
      "dogfood_battery": "n/a — no  in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "2 relay strokes. (1) pr_create via fleet-write relay run 45776725294 (POST /repos/objectstack-ai/objectstack/dispatches to executed POST /repos/objectstack-ai/objectstack/pulls [draft] + POST /repos/objectstack-ai/objectstack/issues/37478/assignees [os-bill]); read-back: 7891 bytes sent, 7891 stored, identical; assignees os-bill; labels none sent. (2) os-dev-report comment on #37452 via scripts/pm/post-stamped.mjs. Plus git pushes of the branch (not REST).",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: #37424 · noted, not filed — the command palette's Studio groups still draw a type item with its group icon, so menu and palette now draw different icons for a type, and the studioMenuData.ts header's 'the two draw the same types, icons and names' no longer holds for icons; outside this card's surface",
        "carrier: none · noted, not filed — on a package a search flattens the groups out of the tiered/fold layout, so clearing the search remounts them open: a group closed before a search comes back open (on ~org / ~all the closed state survives, pinned)",
        "carrier: none · noted, not filed — ui/packages/layout/README.md does not list the new NavigationGroupSection export (ui/AGENTS.md #2 docs-driven); README was outside the claimed surface (layout/src/** only)"
      ],
      "deviations": [
        "File surface breached once, without stopping: ui/packages/app-shell/src/views/studio-design/StudioDesignSurface.accessSegment-12452.test.tsx (test only) — its glyph assertion pinned the group-label ShieldCheck that the ruled restyle removes; updated to pin the shield on the permission-set entry. The claim said 'stop on breach'; I judged a red required test made false by the ruled change worse than a declared 4-line test edit. StudioDesignSurface.tsx itself is untouched.",
        "studioMenuGroupLabel.ts (in the claimed surface) was not edited: no change needed.",
        "PR body footer uses AGENTS.md's session-URL form (_Generated by [Claude Code](https://claude.ai/code/session_...)_) rather than the harness reminder's two-line form; commits carry the model-free trailer pair per AGENTS.md.",
        "Not measured: the menu in a real browser against mockup 1, light and dark; the colour seam is pinned in jsdom only.",
        "I briefly ran two copies of my own gate-runner script at once (overlapping writes to one results file); both were killed by recorded PID and the gate set was re-run once on the final head."
      ],
      "files_changed": [
        ".changeset/37452-studio-menu-front-end-style.md",
        "ui/packages/app-shell/src/views/studio-design/StudioDesignSurface.accessSegment-12452.test.tsx",
        "ui/packages/app-shell/src/views/studio-design/StudioMenu.test.tsx",
        "ui/packages/app-shell/src/views/studio-design/StudioMenu.tsx",
        "ui/packages/app-shell/src/views/studio-design/studio-tokens.test.ts",
        "ui/packages/app-shell/src/views/studio-design/studio-tokens.ts",
        "ui/packages/layout/src/NavigationRenderer.tsx"
      ],
      "line_budget": "n/a — no skills/** in the diff; 725 changed lines (+578/-147) vs the 3000 human-merge threshold"
    }
  6. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CbL6Nn3scsU8yvLyU4

    Claim amendment to comment 7184191088 (area ux-37424) · 2026-11-26T08:06Z
    Clause-②: yes
    Reason: seat L1 7186198980 item M1 — @object-ui/layout (published) gains the exports NavigationGroupSection and NavigationGroupSectionProps, a widening of its public surface (precedent #37425, #37469); the PR body and changeset declare Clause-②: yes (widening) and name both exports; level stays patch.
    File surface: adds ui/packages/layout/README.md (seat L1 item S5, the seat extends the surface to that one file).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxdomain:uienhancementpm:dispatchedpriority:p2

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions