Skip to content

Studio 菜单(M3):左侧菜单读顺序表——分组标题变小号灰字、默认只显示常用、其余收进「高级」 #37201

Description

@objectstack-fleet

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

Part of #36890. Ruling: #37192, comment 7151834490. Proposal: 7151777190 §3.3, §3.5–§3.9, §6 risks. The maintainer asked for this to be dispatched first.

What

  1. buildStudioMenu orders each group by the M2 placement table and stamps tier on each entry.
    • The four non-type entries get their tier and position in the same function: 组织级流程, 诊断, 默认共享 and 环境 all go to 高级.
  2. 常用 types are always listed on a package, whether they hold items or not. The always list becomes the 常用 types.
    • This also fixes a gap: today a new package shows no 应用, 页面, 仪表盘 or 报表 entry.
  3. StudioMenu.tsx changes how the menu is drawn:
    • Group labels become small and muted, with no count and no link.
    • Entry counts are muted and mean items only.
    • An empty 常用 type is dimmed, shows no number, and stays a link.
    • A group label is drawn only where the group has an entry in that tier.
  4. The 「高级」 fold sits below a divider:
    • Closed by default.
    • Remembers its state per browser, in the cookie studio_menu_advanced.
    • Opens itself when the current page is one of its entries, without writing the cookie.
    • Search ignores the fold.
    • It is a button with aria-expanded and aria-controls.
  5. ~org and ~all have no fold: the same labels, muted counts and table order, drawn flat.
  6. ⌘K follows with no change to its model. It reads buildStudioMenu's output and ignores the fold.
  7. New i18n keys go in ui/packages/i18n/src/namespaces/studio/{en,zh}.ts. Add keys only; remove none.

Done when

  • Every point above is pinned by a test that goes red on revert. That includes the self-opening fold on a bookmark to a 高级 type, and the always-listed empty 常用 types.
  • studioMenuModel.test.ts:64 ("all six groups, an empty one included") is rewritten on purpose.
  • No route, address, entry key or entry test id changes. Only the group-count test id goes.
  • "Empty" means the sweep answered with none, not that the sweep has not answered yet (settled).
  • A browser walk-through on showcase covers:
    • package scope, with 高级 closed and open;
    • a bookmark to 钩子;
    • a new empty package;
    • ~org.

Notes

Blocked-by: #37168

Activity

  1. added
    priority:p2
    pm:blocked
    domain:ui
    on Nov 25, 2026
  2. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE

    Unlocked 2026-11-25T09:32Z. PR #37168 (the object designer at its metadata address) merged. pm:blocked → pm:queue. Goes to seat 4 (ux, #36890). #37211 (the 「自动化」 header showing 0) closes with this card.

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYkkwuF6UuFtu85Yd5H

    Back to blocked · 2026-11-25T09:36Z · zone a4-S

    Blocked-by: #37169

  5. added
    pm:blocked
    and removed
    pm:queue
    on Nov 25, 2026
  6. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE

    Triage: unblocked 2026-11-25T13:39Z

  7. added
    pm:queue
    and removed
    pm:blocked
    on Nov 25, 2026
  8. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYkkwuF6UuFtu85Yd5H

    Claim: PM loop round 3
    Session: session_01QSeKYkkwuF6UuFtu85Yd5H
    Account: os-justin
    Branch: claude/issue-37201-studio-menu-tiers
    Worktree: cloud session (its own container)
    Domain: domain:ui
    Seat: repo:objectstack#4
    Area: a4-S
    File surface: ui/packages/app-shell/src/views/studio-design/studioMenuModel.ts + studioMenuModel.test.ts, StudioMenu.tsx and its tests, studioMenuPlacement.ts (doc comment only: the #37232 L1 N1 carry), ui/packages/i18n/src/namespaces/studio/{en,zh}.ts (additive keys only), the ⌘K reader if it reads buildStudioMenu, a changeset. ⛔ No route, address, entry key or entry test id change; no released key removed (stop on breach; explain in the report)
    Container & model: M, mode:cloud, model: default — dispatch-gates.mjs --tier: "Model tier — no path-derived mandate", effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — not a defect card
    Thread-read: 7164108321
    Premise: holds (read on origin/main 2d18ba82). #37168, #37169 and #37089 have all landed, so studioMenuModel.ts is stable. STUDIO_MENU_PLACEMENT (#37232) is on main. The ADR-0084 tier table (#37219) is on main.
    Pre-claim lane: repo:objectstack seat 4 zone a4-S (sub-issue of epic #36890; the zone is back on duty, per the maintainer's 「Studio 专区 重新上班」; cap 3)
    Pre-claim deps: none open. #37166 overlaps only on the studio i18n files, and the second lander merges main.
    Prior rulings read: #37192 ruling 7151834490 + 7151811337 (the tiers), ADR-0084's tier table, #37232 L1 7154317361 N1.
    Serial constraints cleared: no open zone PR touches studioMenuModel.ts or StudioMenu.tsx. #37166 touches the studio en/zh catalogues; additive keys, and the second lander merges main.
    Size: M.

  9. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 25, 2026
  10. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYniqTW93usTV1hShjE
    os-dev-report

    {
      "issue": 37201,
      "status": "blocked",
      "branch": "claude/issue-37201-studio-menu-tiers",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/37341",
      "session": "session_01QSeKYniqTW93usTV1hShjE",
      "premise_still_valid": true,
      "summary": "Implemented in full; the only open item is one red PR-body guard that a dev cannot clear by rule. buildStudioMenu orders each group by STUDIO_MENU_PLACEMENT, stamps tier (unplaced types and the four non-type entries are advanced), the always-listed set is the table's ten 常用 rows, and empty = the sweep answered (settled and not failed) with no item; StudioMenu draws muted count-less labels, muted item counts, dimmed numberless empty 常用 links, and one 「高级」 button (aria-expanded/aria-controls) closed by default, remembered in the studio_menu_advanced cookie, self-opening on a 高级 page without writing it, ignored by search, absent on ~org/~all; ⌘K model untouched; two i18n keys added, none removed; studioMenuModel.test.ts:64 rewritten on purpose; #37232 L1 N1 carried in studioMenuPlacement.ts. Browser walk-through done on a live showcase stack (all four scenes, recorded in the PR body). BLOCKER: I added `Fixes #37211` (that card says it closes when #37201 lands), and check:closing-target-claim refuses it because #37211 carries no Claim: naming this branch. Remedy is a seat act, no push needed: either post a Claim on #37211 naming claude/issue-37201-studio-menu-tiers and re-run the 'PR-body guards' job, or edit the PR body line `Fixes #37211` to `Part of #37211` (the body-edit event re-runs it). A dev may not PATCH the PR body (os-dev rule 3), so I did neither.",
      "tests": "Head ff794532. ui vitest studio-design + metadata-admin dirs: Test Files 1 failed | 1078 passed (1079), the one a stale six-groups expectation in StudioDesignSurface.notFound-26708 fixed in ba3afa16 and re-run green (2 files, 18 passed). Menu/palette/surface files: 6 files, 97/97 passed. app-shell type-check (both tsc programs): exit 0 (first run red TS2345 x4 on the search fixture missing tier, fixed in ff794532). ui/e2e/studio-left-menu-36899.spec.ts Chromium (web server off; the spec serves its own page): 4 passed. pnpm --dir ui exec vitest run scripts/: 172 files passed, 2 skipped; 5130 tests passed. eslint on the 11 changed ui files: exit 0. Ablations at b5b0f6ad via scripts/ablation-replace.mjs (anchor 1->0, restored blob == HEAD, git diff HEAD empty), 45 menu tests green unmutated: 17/17 red (A1 table sort 4 failed, A2 tier all common 8, A3 orgFlows common 4, A4 always = old three 8, A5 empty without settled 3, A6 failed sweep as answered 1, A7 empty tier groups drawn 2, A8 label not muted 3, A9 empty shows number 1, A10 empty not dimmed 1, A11 fold open by default 4, A12 click writes no cookie 2, A13 no self-open 2, A14 self-open writes cookie 1, A15 search honours fold 2, A16 fold on ~org/~all 2, A17 no aria-controls 1). A first pass is discarded: A6/A12/A14 were refused by ablation-replace (replacement a substring of the anchor) and A9 stayed green, which added the count-0 pin; the whole table was re-run. No dist leg: the suites resolve app-shell from ui source.",
      "gates": "Local: dispatch-gates --commands derived 38 families; all 38 run, each exit 0; --ran reconciliation: '38 run, 0 NOT-MEASURED (a DERIVED zero)'. Before each of 4 pushes: check:test-source-alias exit 0, ui check:i18n-keys exit 0, overlap-check 'VERDICT clean exit 0' (vs origin/main and #37315, which shares the studio en/zh files and merges cleanly). PR #37341 check-runs on ff794532: Lint & Repo Gates success, TypeScript Type Check success, Test Core success, Governed Surface Queue Guard success, Lint UI success, Type Check UI success, Test UI success (16/16 shards), Build & E2E UI success, Live E2E UI success, Dogfood Regression Gate success, Check Changeset success, Check PR Size success; Build Core skipped by its selector. FAILURE: 'PR-body guards (claim · duplicate · Part-of · single-writer path)' — check:closing-target-claim, `Fixes #37211` with no Claim on #37211 naming this branch (see summary).",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "9 — reads only: issue_read x4 (37201 get + comments, 37192 comments, 37211 get), pull_request_read get_check_runs x3, get_job_logs x2. No write tool.",
      "api_writes": "2 relay strokes — fleet-write pr_create (POST /repos/objectstack-ai/objectstack/pulls draft + POST /repos/objectstack-ai/objectstack/issues/37341/assignees os-justin; read-back 13410 bytes sent = stored), and this report comment via post-stamped (POST /repos/objectstack-ai/objectstack/issues/37201/comments). Plus 4 git pushes (not REST).",
      "open_questions": [
        {
          "question": "How should #37211 close with this PR? I wrote `Fixes #37211` because that card says it closes when #37201 lands and this PR adds the ~org pin it asks for; the claim guard refuses it.",
          "options": [
            "A: seat posts a Claim on #37211 naming claude/issue-37201-studio-menu-tiers, then re-runs the PR-body guards job (no push)",
            "B: seat edits the PR body line to `Part of #37211` and closes #37211 by hand after the merge",
            "C: seat drops the line; #37211 is closed by the card's own sweep"
          ],
          "recommendation": "A, because #37211's own text names this card as its fix and the PR carries its pin; it keeps the closing link mechanical."
        },
        {
          "question": "Empty uses `countsAnswered` (settled and the sweep did not fail) rather than the bare `settled`. On a failed sweep `settled` is true with no counts, which would dim every 常用 type. Keep?",
          "options": [
            "A: keep countsAnswered",
            "B: bare settled as the card spelled it"
          ],
          "recommendation": "A, because the card's own definition is 'the sweep answered none', and a failed sweep answered nothing; pinned by ablation A6."
        },
        {
          "question": "engine.studio.menu.typeCount has no reader now (check:i18n-dead-keys lists it). It ships in the released catalogue and the card is additive-only, so it stays. Retire it later?",
          "options": [
            "A: leave it",
            "B: a later card retires it with the released-key process"
          ],
          "recommendation": "A for this PR; B is the seat's call."
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted, not filed — F1–F3 follow-up decision cards from proposal §3.10 are the seat's to file when this lands (card Notes); not a finding of this run"
      ]
    }
  11. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYkkwuF6UuFtu85Yd5H

    Finalized head for L1 · 2026-11-25T19:45Z · ff794532 · zone a4-S (#37201, and #37211 by the same PR)

  12. removed
    pm:dispatched
    on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxdomain:uipriority:p2

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions