Skip to content

review follow-ups of PR #38598: a dead emptyListHint option and comments and test text that still describe Studio's retired package-less scope #38604

Not planned

Description

@objectstack-fleet

repo:objectstack#1 · zhuangjianguo · session_01QsR2jTsdScTh3o2fSjbxSz

Filing gate: ① (review follow-ups, one card per PR) · Source: fleet (contract review record 7257159073 on PR #38598, N3; os-dev report 7256902761, out_of_scope_findings 1 and 2, "carrier: none · noted, not filed"; card #38150)
Grade: area:ux · Task · reach: none at run time. This is code and test text in @object-ui/app-shell and @object-ui/i18n that describes a surface PR #38598 retires: one optional host field no producer sets, comments and test titles naming the package-less scope, and a test header naming the "Organization flows" page · evidence: read at PR head 5fcf89b5
Suggested-grade: p3 (no behaviour changes; the cost is a reader who follows a comment to a scope that no longer exists)
Size: S
Reader: the lane that claims #38150's area (area:ux), after PR #38598 merges. App-shell and i18n text only, plus at most one option removed.
Dedupe: is:issue "review follow-ups of PR #38598" → 0; is:issue is:open emptyListHint → 1 (#38150, the source card); is:issue is:open confirmNoteSeparate → 1 (#38150); is:issue is:open DraftChangesPanel "package-less" → 1 (#38150); is:issue is:open "~org" studio retired → 11 (#38061, a follow-up card of PR #37949 about the cross-package list's badge, not this; #38150; epics and unrelated full-text hits). The checklist items that still describe the scope are already carried: PR #38598 adds section 20 to docs/qa/platform-checklist/FOLLOW-UPS.md for them.

维护者速读

Items

  • 1. emptyListHint has no producer. At 5fcf89b5, MetadataAreaHost.emptyListHint is still declared and documented as "the package-less scope's flow list says how a packaged flow is changed instead (ADR-0146 D11)" (ui/packages/app-shell/src/views/metadata-admin/metadataAreaHost.ts:59-64). ResourceListPage.tsx still reads it at :858 (hintedEmpty) and :1010 (the empty-list hint). git grep emptyListHint over ui/ at this head finds those three lines and nothing else. No producer sets it, and no test names it. Its only producer on main was the scope's area host (StudioMetadataArea.tsx:465-474, engine.studio.org.none), which this PR removes along with the key. Fix: remove the field and both reads (the hint chain then starts at config.emptyStateHint), or keep the field and reword its doc so it names no retired scope. Recommended: remove, since the field has no caller.

  • 2. Comments and test text that still describe the scope.

    • ui/packages/app-shell/src/preview/DraftChangesPanel.tsx:1455-1459, the include prop: "Studio's package-less scope passes its own predicate (package-less FLOW drafts, objectui#11553) so the sheet reviews exactly what that scope's Publish ships." The prop is live, because DraftPreviewBar.tsx:220 passes include={inApp}. Only its example is gone: main's other caller, StudioSurfaceFrame.tsx:248 include={packageId === null ? isOrgScopeDraft : undefined}, is removed by this PR. Reword the example.
    • DraftChangesPanel.tsx:1821-1823: "the package-less scope publishes by reference, a door with no backfill". Reword it to the reason that still holds: no package means no batch door.
    • Test titles and headers beside the panel: preview/__tests__/DraftChangesPanel.backfill-12929.test.tsx:138 ("offers nothing without a package: the package-less scope has no batch door"), and DraftChangesPanel.changeNote.test.tsx:15 and :103 ("not in the package-less scope: that Publish promotes each draft by itself").
    • ui/packages/i18n/src/__tests__/confirmNoteSeparate-11591.test.ts:15-16: 'The package-less "Organization flows" page publishes each draft by itself, so its sheet reads preview.changes.confirmNoteSeparate instead.'
  • 3. Check: the package-less confirm note may have no caller left (a reading, not measured in a browser). The panel shows preview.changes.confirmNoteSeparate when it has a publish footer and no packageId (DraftChangesPanel.tsx:2114-2124). At 5fcf89b5, three places render the panel:

    • DraftPreviewBar.tsx:220, which passes no onPublish, so it has no footer;
    • StudioSurfaceFrame.tsx:227-241, only when packageId !== null;
    • StudioSurfacePage.tsx:170-180, on the package branch only; the package-less leg renders StudioMetadataArea at :106-107.

    Both Studio callers pass packageId={draftScope}, and draftScope = pairId ?? packageId (studioSurfaceScope.ts:187). If that holds, the confirmNoteSeparate branch, its key in the ten packs, and the two tests that pin it (DraftChangesPanel.packageLessNote-11591.test.tsx and the i18n test above) guard a sentence no surface shows. Whoever claims this card either finds a caller that still reaches the branch, and words items 2's comments around it, or retires the branch, the key and its pins together as a declared i18n removal, as PR feat(app-shell)!: retire Studio's package-less scope (/studio/~org), and an item of a package you can write reads New in the Studio list (#38150 PR-B2) #38598 did for its nine keys.

Done when

  • git grep -n -i "package-less scope\|Organization flows\|~org" ui/packages/app-shell/src ui/packages/i18n/src finds no comment, test title or doc describing the retired scope as live. Changelogs and struck ADR passages are excepted.
  • emptyListHint is either gone with its reads or documented without the retired scope, and ResourceListPage's tests stay green.
  • Item 3 is answered: a named caller that still shows confirmNoteSeparate, or the branch, key and pins retired together.

Related: PR #38598, #38150, ADR-0084, ADR-0146 D11.

Blocked-by: #38150

Activity

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

    @objectstack-fleet
    ContributorAuthor

    triage#1 · zhuangjianguo · session_01QsR2jRH2X4frz9bBiZHNk4

    Triage: closed not planned · area:ux · domain:ui · Task · p3 · size S. Rationale: the card's own reach is "none at run time": a dead optional field no producer sets, comments, test titles and a test header that describe the retired package-less scope. That is the p3 close rule (no customer or user effect: jsdoc wording, internal refactor, test-title rewrites), and no keep condition applies (not maintainer-filed, no PR carries it, no seat holds it). The lane that next edits these files can tidy them in that PR. The one open question (whether the per-row publish confirmation still shows anywhere) is a reading, not a card; if it turns out to be a visible defect, file it then with its reproduction.

  3. removed
    pm:blocked
    on Nov 29, 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:uipriority:p3

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions