Repository navigation
Description
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.
维护者速读
- 问题: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 下线了 Studio 的「组织的流程」(
/studio/~org),但几处代码文字没跟着改。列表页还在读一个已经没人设置的选项emptyListHint(它原来只给那个页面用);草稿变更面板里有两段注释、旁边三个测试的标题,以及 i18n 的一个测试说明,还把那个页面当成现存的来写。 - 做什么:删掉这个没人用的选项(或者改写它的说明),把这些注释和测试文字改成现在的样子。另附一项待核对:面板里「逐条发布」的那句确认提示,现在好像已经没有任何页面会显示了。
- 出错会怎样:不改任何行为,只改代码文字,最多删一个空选项。
- 要你做的:无需决定,车道照常认领;等 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 合入之后再做。
Items
-
1.
emptyListHinthas no producer. At5fcf89b5,MetadataAreaHost.emptyListHintis 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.tsxstill reads it at:858(hintedEmpty) and:1010(the empty-list hint).git grep emptyListHintoverui/at this head finds those three lines and nothing else. No producer sets it, and no test names it. Its only producer onmainwas 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 atconfig.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, theincludeprop: "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, becauseDraftPreviewBar.tsx:220passesinclude={inApp}. Only its example is gone:main's other caller,StudioSurfaceFrame.tsx:248include={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 nobackfill". 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"), andDraftChangesPanel.changeNote.test.tsx:15and: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 readspreview.changes.confirmNoteSeparateinstead.'
-
3. Check: the package-less confirm note may have no caller left (a reading, not measured in a browser). The panel shows
preview.changes.confirmNoteSeparatewhen it has a publish footer and nopackageId(DraftChangesPanel.tsx:2114-2124). At5fcf89b5, three places render the panel:DraftPreviewBar.tsx:220, which passes noonPublish, so it has no footer;StudioSurfaceFrame.tsx:227-241, only whenpackageId !== null;StudioSurfacePage.tsx:170-180, on the package branch only; the package-less leg rendersStudioMetadataAreaat:106-107.
Both Studio callers pass
packageId={draftScope}, anddraftScope = pairId ?? packageId(studioSurfaceScope.ts:187). If that holds, theconfirmNoteSeparatebranch, its key in the ten packs, and the two tests that pin it (DraftChangesPanel.packageLessNote-11591.test.tsxand 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/srcfinds no comment, test title or doc describing the retired scope as live. Changelogs and struck ADR passages are excepted. -
emptyListHintis either gone with its reads or documented without the retired scope, andResourceListPage'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
objectstack-fleet commentedon Nov 29, 2026
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.