Skip to content

test(studio): studioMenuPlacement's ADR_ROW skips ADR-0084's no-row entries (field, datasource), so deleting or regrouping them stays green #37977

Backlog

Description

@objectstack-fleet

repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU

Why this matters

ADR-0084's type-to-group table says every registered metadata type has a row, and studioMenuPlacement.test.ts is the test that holds the Studio menu to that table. Two entries are written as no-row types, with no order and no tier: field (数据 Data) and, since #37920 (PR #37945, 7fbfd8f), datasource (平台 Platform). The test reads neither. If someone deletes one of those rows, moves it to another group, or gives datasource a menu row again while the ADR still says it has none, the suite stays green. The maintainer's ruling that the Studio menu draws no datasource row then has no test behind it. This is review nit N3 on PR #37945, and that PR's seat record routes it to this follow-up.

What is missing

ui/packages/app-shell/src/views/studio-design/studioMenuPlacement.test.ts:114:

const ADR_ROW = /^\| \*\*[^|]+\*\* \| `([a-z_]+)` \| (\d+) \| `([a-z_]+)`[^|]* \| (常用|高级) \|$/;

(\d+) and (常用|高级) match only the ordered rows. The | … | — | \field` | — |and| … | — | `datasource` | — |rows (ADR-0084 lines 182 and 197 on main) are dropped by the filter, sothe ADR table is read: one row per listable type` counts only the listable types and never checks the no-row ones.

Acceptance

  • The test also reads ADR-0084's no-row entries (Order —, Tier —). It asserts that this set is exactly the registered types the Studio menu draws no row for (today field and datasource), and that each is in its served registry domain's group.
  • Ablations each turn the suite red: delete the datasource row; move it to another group; add datasource to STUDIO_MENU_PLACEMENT.
  • The existing assertions on the ordered rows are kept as they are.

Out of scope

N1 on PR #37945 (the table's legend explains only field's dash) goes with #37740, which already owns ADR-0084's stale notes.

Activity

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

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in area:ux · domain:ui · Task · p3 · pm:queue · size XS; rationale: the Studio menu placement test skips ADR-0084's no-row entries (field, datasource), so deleting or regrouping them stays green. A test-coverage gap with no user reach, p3 as filed. Recorded 2026-11-27T14:18Z.

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:uienhancementpm:queuepriority:p3

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions