Skip to content

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

Backlog

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:uxdomain:uipm:blockedpriority:p2

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions