Skip to content

feat(studio): 概览 package overview page — Info and Pending tabs, ⋯ menu in its header - #37546

Merged
objectstack-fleet[bot] merged 8 commits into
mainfrom
claude/issue-37454-studio-thin-package-overview
Nov 26, 2026
Merged

objectstack-fleet[bot] merged 8 commits into
mainfrom
claude/issue-37454-studio-thin-package-overview

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

repo:objectstack#5 · os-bill · session_01Utp6CbL6Nn3scsU8yvLyU4

Requested by Bill · project thread

Fixes #37454
Clause-②: no
Metadata-protocol: none

维护者速读

用户能看到什么变化:在 Studio 里打开一个软件包,左侧菜单第一行变成「概览」,有待发布的修改时旁边显示数量,点数量直接进入待发布。概览页头显示包名、「系统自带/可写」「使用中/已停用」两个标记和包的描述,下面有「信息」「待发布」两栏;原来顶栏左侧的「⋯」软件包菜单搬到了这页页头的右侧。
为什么做:这是 App Studio 改版的第一步(精简的软件包概览)。包的基本信息和等着发布的修改都集中到这一页,不用再去顶栏和设置里分头找。
出错会怎样:在 Studio 里管理软件包的人会碰到。最可能的问题是待发布数字和实际不符,或者从概览发布的结果和顶栏发布不一样;顶栏的发布按钮仍然保留,可以照常用。这个改动可以直接撤回,不涉及数据。
要你做什么:无

What changes

  • New page StudioPackageOverviewPage, reached at /studio/PACKAGE/overview (ADR-0084 § 概览 Overview, amendment 2026-11-26). It is drawn in an item page's frame: StudioItemHeader plus StudioTab.
    • Header: the app mark (or the package icon), the name, and two chips: 系统自带 with a lock on a read-only package or 可写; and 使用中 or 已停用. Both chips come from the package list row's own writable / enabled; a row that does not say draws no chip. The description is the header's note, and the ⋯ menu sits in the header's actions.
    • 信息 Info: read-only rows for name, description, source, version and the package's app (a link that opens it). A read-only package says so beside its source. The id, namespace and type are folded under 技术信息. While the row is read, the card holds an announced loading row (role=status); a failed read says so in place of the fields.
    • 待发布 Pending (?tab=pending): the existing DraftChangesPanel drawn in place. Its tab carries the pending count only while something is pending.
  • DraftChangesPanel gains two optional props. Without them it behaves exactly as before; the body hunk is re-indented, so read it with -w.
    • embedded draws the same header notes and body in a section instead of a Sheet, and does not dismiss toasts on open.
    • reloadKey re-reads the drafts when it moves.
  • StudioDesignSurface
    • Renders the overview branch with the panel wired prop for prop like the top bar's sheet: doPublish (or undefined when publishReadOnly), draftScope, renderPublishRefusal, the pair's customizationOf, and publishing.
    • StudioPendingDraftsContext.Provider now wraps the menu and pillars row, so the menu can read the count.
    • The top bar's Changes / Publish stays; ADR-0084 keeps it until a later card.
  • ⋯ StudioPackageMenu left StudioBackToApp (its menu prop is removed) and now lives in the overview header. Its six rows are unchanged, and it opens aligned to the end. Disable, enable and delete stay in Setup (question 1 ruled B).
  • StudioMenu: the first row of a package's menu, above the groups and under no group's label, is 概览 (a package cube icon). While drafts wait it carries their count as an amber badge, a link of its own beside the row, which opens ?tab=pending. A search lists the row when its name matches. ~org and ~all draw no such row. The menu reads the count from StudioPendingDraftsContext.
  • Address and menu model
    • Address: studioPackageOverviewPath and studioOverviewTab in studioOverviewAddress.ts. The open tab rides the console's reserved tab key (RECORD_DETAIL_TAB_PARAM, urlParams.ts; ui AGENTS rule Convert to monorepo with scoped packages #8), which Studio's item pages already read through ITEM_TOOL_TAB_PARAM; no Studio constant restates it. The builder sits beside studioAddress.ts rather than in it because urlParams.ts imports studioAddress.ts, so the reverse import would be a cycle. studioAddressTable.ts gains the overview family, and its tab row describes the shared key: an item page's tab, and pending on the overview.
    • Menu model: studioMenuOverviewEntry (no entry outside a package; a badge only above zero), studioMenuOverviewMatches, and studioMenuCurrentKey answering overview.
  • Package REST read: ListedPackageManifest now carries enabled and source from the row of GET /api/v1/packages. There is no package metadata type.
  • i18n (en, zh): engine.studio.menu.overview, engine.studio.menu.overviewPending with its singular engine.studio.menu.overviewPendingOne (the catalogue's …One form: "1 change waits for a publish"; zh reads the same either way), and engine.studio.overview.*.
  • Changeset: patch for @object-ui/app-shell and @object-ui/i18n.

Read first (by risk):

  1. StudioDesignSurface.tsx, the overview branch's DraftChangesPanel props. The Pending tab must publish exactly like the top bar.
  2. DraftChangesPanel.tsx, the embedded return and the reloadKey effect deps.
  3. StudioMenu.tsx, renderOverview() and its call above the groups: the badge is a sibling link, not nested in the row's link.

Tests

The broad run, typecheck and gates are on the final head 29bb079. Earlier rounds' ablations ran on 06830bf (page, Pending tab) and 618c0cf (menu row).

  • New StudioPackageOverview-37454.test.tsx (the real surface; the panel probe records the props given to the sheet and to the embedded panel). It covers:
    • the header chips in en and zh, read-only 系统自带 with a lock, and 已停用;
    • the menu in the header and not in the top bar, and no menu without manage_metadata;
    • the Info fields with the technical section folded, and the read-only source sentence;
    • the Pending count and the ?tab=pending URL, with no count when nothing is pending;
    • embedded props identical to the sheet's, and onPublish undefined on both for a read-only package;
    • the branch order: a failed row read says so in place of the fields with the header kept; a read still on the wire shows the announced loading row and neither a failure nor fields, then the fields once it answers; an unknown package at its overview address lands on the not-found state; ~org/overview redirects to the scope's area, read once through the route as the console mounts it and once with the surface alone.
  • New StudioMenu.overview-37454.test.tsx (real provider, sidebar primitive and router). It covers:
    • 概览 is the first link, above every group and under none; it opens the overview, reads 概览 in zh, and is current on the overview including the Pending tab;
    • CONTROL: ~org and ~all draw no row;
    • the badge reads 3 with its aria-label, and one draft reads in the singular ("1 change waits for a publish"); CONTROL: a ledger of 0 and an unknown ledger draw no badge;
    • one click on the badge lands on /overview?tab=pending, and the row lands on the Info tab;
    • a search lists the row on over but not on flow.
  • StudioMenu.test.tsx: the 常用 listing case now asserts that 概览 leads the menu before the 常用 types. Its App Studio 改版(1-1):左侧菜单照前端样式——分组标题可折叠、线条图标不带底色、选中用胶囊加竖条;定义 Studio 专用石墨色 #37452 cases (chevrons, active pill, graphite accent) pass unchanged.
  • Re-pointed, not weakened: StudioDesignSurface.publishCount-11807.test.tsx now runs every case twice, from the top bar and from the Pending tab (describe.each). StudioPackageMenu-37139.test.tsx now opens the menu from the overview header and asserts that the top bar has none. Its no-menu check on ~org and ~all now asks at the overview's own address on each scope, where the menu would be, instead of on pages that never drew it.
  • Extended: DraftChangesPanel.posture-12517.test.tsx covers the embedded panel: no dialog, publish with no options, no toast dismiss (control: the sheet dismisses), a reloadKey re-read (control: an unmoved key reads nothing more), and nothing drawn when closed. studioMenuModel.test.ts covers the overview entry, the badge, the matcher and the current key. studioAddress.test.ts covers the builder, the tab and the table lists.
  • Broad run over studio-design/, preview/ and packages/i18n/ on 29bb079: 449 files, 4720 passed and 13 skipped; lock VERDICT command-exit 0.
  • Typecheck: app-shell tsc --noEmit and tsc -p tsconfig.test.json both exit 0 (the test project at an 8 GB heap).
  • Ablation (each leg went red, and each restore is proven: blob equals HEAD and git diff HEAD is empty):
    • A1: Pending tab onPublish set to undefined. 6 red: 5 Pending-tab publish cases and the prop-parity case.
    • A2: embedded panel dismisses toasts. 1 red.
    • A3: reloadKey dropped from the effect deps. 1 red.
    • A4: embedded branch disabled. 1 red.
    • A5: read-only chip forced off. 3 red.
    • A6: badge drawn at zero in the model. 1 red.
    • B1: the menu row moved below the groups. 1 red (the first-row pin).
    • B2: the badge drawn whatever the count. 2 red (the zero and unknown controls).
    • B3: the badge linked to the row's own address. 1 red (the badge-click pin).
    • C1: the page's failure branch off. 1 red (the load-failure pin).
    • C2: the page's loading branch off. 1 red (the loading pin).
    • C3: the surface lets an unknown package through to the overview. 1 red (the not-found pin).
    • C4a: the surface's own ~org redirect off. 1 red (the surface-alone case).
    • C4b, the control: only the pillar redirect's ~org branch lets the overview through. It stays green because the surface's guard behind it catches the address.
    • C4c: both doors off. 2 red (both cases).
    • C5: the singular label never chosen. 1 red (the one-draft pin).
Ablation log (ablation-replace verdicts)
LEG A1-pending-onPublish :: exit 1 :: Test Files 2 failed (2)  Tests 6 failed | 24 passed (30)
LEG A2-embedded-toast    :: exit 1 :: Test Files 1 failed (1)  Tests 1 failed | 9 passed (10)
LEG A3-reloadKey         :: exit 1 :: Test Files 1 failed (1)  Tests 1 failed | 9 passed (10)
LEG A4-embedded-inplace  :: exit 1 :: Test Files 1 failed | 1 passed (2)  Tests 1 failed | 23 passed (24)
LEG A5-readonly-chip     :: exit 1 :: Test Files 1 failed (1)  Tests 3 failed | 11 passed (14)
LEG A6-badge-zero        :: exit 1 :: Test Files 1 failed (1)  Tests 1 failed | 31 passed (32)
RESTORE diff-HEAD-bytes=0 status=0 ; hash-ok on all four mutated files
LEG B1-first-row         :: exit 1 :: Test Files 1 failed (1)  Tests 1 failed | 9 passed (10)
LEG B2-badge-always      :: exit 1 :: Test Files 1 failed (1)  Tests 2 failed | 8 passed (10)
LEG B3-badge-target      :: exit 1 :: Test Files 1 failed (1)  Tests 1 failed | 9 passed (10)
RESTORE diff-HEAD-bytes=0 status=0 ; hash-ok StudioMenu.tsx
LEG C1-load-failed       :: exit 1 :: Tests 1 failed | 3 passed | 14 skipped (18)
LEG C2-loading           :: exit 1 :: Tests 1 failed | 3 passed | 14 skipped (18)
LEG C3-unknown-package   :: exit 1 :: Tests 1 failed | 3 passed | 14 skipped (18)
LEG C5-singular          :: exit 1 :: Tests 1 failed | 10 passed (11)
LEG C4a-surface-guard    :: exit 1 :: Tests 1 failed | 1 passed | 17 skipped (19)
LEG C4b-pillar-only      :: exit 0 :: Tests 2 passed | 17 skipped (19)   (control: the guard behind it holds)
LEG C4c-both-doors       :: exit 1 :: Tests 2 failed | 17 skipped (19)
RESTORE diff-HEAD-bytes=0 status=0 ; hash-ok on every mutated file
os-verify-lock: VERDICT command-exit 0 (every batch)

Acceptance notes

  • The claim's file surface was amended to add StudioMenu.tsx for the 概览 row and its badge only. studio-tokens.ts, studioAccent.ts, studioTitleRow.tsx and PageShell.tsx are untouched.
  • The row is drawn in StudioMenu.tsx and not through buildStudioMenu, which builds only the domain groups: adding a kind there would change the per-kind records the menu keys on. The row reuses the sidebar primitive's SidebarMenuButton, so its active state is the same graphite pill as every entry. In the real browser the current-row background reads rgba(53, 57, 64, 0.1) in light and rgba(208, 210, 216, 0.18) in dark, the same on the 流程 entry and on the 概览 row, and the 5 group chevrons are drawn.
  • The icon is a package cube (Package). A first cut used LayoutDashboard, which the browser showed to be indistinguishable from 应用's LayoutGrid.
  • Mockup 4 comparison.
    • Header, chips, description, tabs, the Info card and the folded 技术信息 match.
    • Not in this card's governing text: the standalone 导出 button (export stays a ⋯ row, six rows unchanged) and the 发布历史 tab.
    • The source line shows the row's own source (代码。只读:不能直接修改。). The mockup's pair-aware sentence (你的修改会单独保存…) is copy for a later pass.
  • The overview's ?tab= is the console's reserved key from urlParams.ts (ui AGENTS rule Convert to monorepo with scoped packages #8), not a Studio constant. Its builder lives in studioOverviewAddress.ts and not in studioAddress.ts: urlParams.ts imports studioAddress.ts and lists its STUDIO_RETURN_PARAM at module scope, so a back-import would be a cycle whose load order decides whether that list reads an uninitialised binding.
  • reloadKey is a prop added to the load effect's deps and not a key= bump, following ui AGENTS rule Convert to monorepo with scoped packages #8 on forced reloads.
  • The top-bar Publish is unchanged and stays until the card ADR-0084 names for its removal.

Verification

Two-minute check: run the showcase example and open /studio/com.example.showcase/overview. Expect:

  • the header with ObjectStack Showcase, 系统自带 with a lock, 使用中 and the description, with ⋯ at the right;
  • 信息 with 基本信息 and a folded 技术信息;
  • 待发布 listing any drafts, with 全部发布 at the bottom.

Real browser: Chromium at deviceScaleFactor 2, light and dark, on the showcase with 3 AI-style view drafts in its customization pair.

  • Shots taken: the Info tab, the Info tab with 技术信息 open, the ⋯ menu open with its six rows, the Pending tab with a count of 3, the Pending tab after publishing, the menu with 概览 first and its badge (full page and close-up), and a badge click landing on the Pending tab.
  • In the menu, the first links are 概览, its badge (3, 3 项修改待发布), then 对象. Clicking the badge lands on /studio/com.example.showcase/overview?tab=pending with the Pending tab open and 概览 current.
  • Clicking 全部发布 in the Pending tab sent POST /api/v1/packages/com.example.showcase.custom/publish-drafts. _drafts then read empty and the tab count disappeared.
Derived gates (dispatch-gates --ran)
Run reconciliation — 39 derived, 39 run, 0 NOT-MEASURED, 0 UNRUN.
✓ dispatch-gates --ran: 39 derived famil(ies) accounted for — 39 run, 0 NOT-MEASURED (a DERIVED zero — all 39 recorded an exit code and none of them is 3).
every one of the 39 :: exit 0 (incl. check:nul-bytes, check:published-files, check:type-check-coverage, check:test-source-alias,
check:cross-package-test-inputs, check-adr-0087-registration, check-empty-changeset, check-changeset-no-major)
pnpm --dir ui exec vitest run scripts/ :: Test Files 172 passed | 2 skipped (174) · Tests 5130 passed | 2 skipped · lock VERDICT command-exit 0
check-platform-checklist --changed-from origin/main: OK — 2 anchor(s) judged, 0 lost

Generated by Claude Code

@github-actions github-actions Bot added size/xl documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 26, 2026
…udio-thin-package-overview

Claude-Session: https://claude.ai/code/session_01Utp6CbL6Nn3scsU8yvLyU4
Co-authored-by: Claude <noreply@anthropic.com>
…ens the Pending tab

Claude-Session: https://claude.ai/code/session_01Utp6CbL6Nn3scsU8yvLyU4
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CbL6Nn3scsU8yvLyU4

Final green head (2026-11-26T13:54Z): ad57b709e643fec2304f17ecb21efea8cf2bee5d. CI read once: 45 success, 13 skipped, 0 other. The area PATCHed the PR body to Fixes #37454 from the dev's prepared text (read-back identical), so PR-body guards re-run on that body. Sent to seat repo:objectstack#5 for L1. os-dev reports: 7192209474 (round 1) and 7193948346 (round 2), both on #37454.

Area notes for L1:

  1. Surface: claim amendment 7192233242 adds StudioMenu.tsx for the 概览 row and its badge only. The claim had marked that file read-only by mistake, so round 1 stopped and asked. studio-tokens.ts, studioAccent.ts, studioTitleRow.tsx and PageShell.tsx are untouched. The App Studio 改版(1-1):左侧菜单照前端样式——分组标题可折叠、线条图标不带底色、选中用胶囊加竖条;定义 Studio 专用石墨色 #37452 menu styling is re-measured unchanged in the browser.
  2. Scope as governed (docs/adr/0084 #amendment-2026-11-26-overview): Info is read-only with the technical fields folded away. Pending embeds DraftChangesPanel with new optional embedded / reloadKey props. The ⋯ menu moves with its six rows. The top-bar Publish stays until App Studio 改版(1-5):去掉 Studio 顶栏改左右两栏——左上角两行(标志加折叠;返回加软件包切换器和「新建软件包」)、只读小锁、折叠窄栏 #37456. The badge is drawn only while drafts are pending. ~org / ~all draw no 概览 row.
  3. Publish parity: publishCount-11807 now runs every case from both the top bar and the Pending tab. A browser publish from Pending posted publish-drafts and cleared the count.
  4. Ablations: A1–A6 (round 1) and B1–B3 (round 2) all go red.
  5. Screenshots: objectstack-seat5/topic-37424/cards/shots-37454/, light and dark, showing the Info tab, the technical fold, the ⋯ menu, the Pending tab, 概览 first with its badge, and a badge click landing on Pending.
  6. Not filed (copy choices against mockup 4): the source sentence wording, and the standalone 导出 button and 发布历史 tab. The last two are phase 2 by the governing text.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X

Contract-review-claim: session_01Utp6CYtTDvfPQDzMbZnN5X · head ad57b70 · 2026-11-26T13:55Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X

Contract review

Served-tier: TIER_DEFAULT
Head-sha: ad57b709e643fec2304f17ecb21efea8cf2bee5d
Local-runs: none

Read: card #37454 (body, claim 7190624039, reports 7192209474 and 7193948346, amendment 7192233242), the final-head comment 7194013036, the P1-3 row of epic #37424's phase table (7184108099), ADR-0084 § 概览 Overview on main, the PR body, and the net diff origin/main...ad57b709 (22 files, +1758/−434). Check-runs on the head: 47 success, 15 skipped, 0 failed or pending.

① Derived judgments

Acceptance, line by line.

  • 概览 is the first menu row, above the groups and under no group. It carries the pending count as a badge only while the count is above zero, and a click on the badge opens ?tab=pending. ~org and ~all draw no row. Met (StudioMenu.tsx renderOverview, studioMenuOverviewEntry).
  • The header reuses StudioItemHeader. It shows the name, 系统自带 (with a lock) or 可写, 使用中 or 已停用, the description, and the ⋯ menu with its six rows unchanged. Disable, enable and delete stay in Setup (Q1 = B). Met. A row with no boolean enabled draws no chip, so nothing is guessed.
  • The Info tab is read-only: name, description, source, version and app. The id, namespace and type are folded under 技术信息. Met.
  • The Pending tab is DraftChangesPanel drawn in place. It gets doPublish, or undefined when publishReadOnly, plus draftScope (the pair, per ADR-0146 D3), renderPublishRefusal, customizationOf and publishing, the same props the top-bar sheet gets. The two differ only in posture (the default review) and include (used only when no package is open), and neither changes the publish request. Met.
  • "Publishing behaves exactly as from the top bar": publishCount-11807 now runs every case through both doors with describe.each, and no expectation was loosened. Met.
  • Read-only posture: there is a lock chip, the source line says the package is read-only, and onPublish is undefined on both doors (tested). Met.
  • The copy says AI drafts (engine.studio.overview.pendingNote). Met.
  • There is no package metadata type. The page reads the package REST list. The top-bar Publish stays until App Studio 改版(1-5):去掉 Studio 顶栏改左右两栏——左上角两行(标志加折叠;返回加软件包切换器和「新建软件包」)、只读小锁、折叠窄栏 #37456. Met.
  • The epic's P1-3 row ("概览 first entry, Info + Pending tabs, ⋯ moved") is met in full. The 导出 button and the 发布历史 tab are phase 2 under the governing text, and the PR rightly leaves them out.

Surface.

  • Every path is inside the claim: studio-design/**, preview/DraftChangesPanel.tsx, the studio i18n namespace files and one changeset.
  • StudioMenu.tsx gains only the 概览 row: imports, the context read, renderOverview, its call, and the row joining the no-matches condition. That is within amendment 7192233242.
  • studio-tokens.ts, studioAccent.ts, studioTitleRow.tsx and PageShell.tsx are untouched.
  • DraftChangesPanel keeps its default behaviour. Its body is moved into a shared fragment, and its new props are optional.

New address and menu-model entries.

  • The overview family has a builder that the address test pins, and the table lists it.
  • Deep links: /studio/PACKAGE/overview?tab=pending opens Pending (tested). An unknown ?tab= value falls back to Info (tested).
  • Back and forward: switching tabs replaces the history entry, as flowDesignerTabs and objectDesignerTabs do. The badge pushes a new entry.
  • An unknown or uninstalled package hits the existing pkgMissing not-found branch, which comes before the overview branch. ~org/overview redirects to the org scope, and ~all never reaches the branch. Package-less scopes draw no row and no page. All of this is correct, but none of it is tested on this address (S2).

States.

  • Loading: a spinner.
  • Error: loadFailed with the envelope's message in role=alert, so a 403 shows its sentence.
  • Empty: 未填写, and the app row is dropped when the package has no app.
  • Permission refused: no ⋯ without manage_metadata (tested), and the header is still drawn.
  • Pending inherits the panel's own empty, loading and error states.

Accept sets and public surface.

  • No server route, spec or protocol file changes.
  • ListedPackageManifest gains the optional fields enabled and source, read from the row as served.
  • DraftChangesPanel gains the optional props embedded and reloadKey.
  • StudioBackToApp loses its menu prop. StudioBackToApp is not exported from the app-shell index, and StudioDesignSurface was its only consumer.
  • All of these sit in @object-ui/app-shell, which is private: true: it is versioned but not published to npm.
  • @object-ui/i18n is published. It gains 22 studio catalogue keys, purely additive. They change no accept set.
  • Each of these changes is judged right.

i18n. en and zh add the same 22 keys. Every key is used, and the reused keys engine.packages.source.* and engine.studio.pkg.readonlyHint exist in both files. No new strings are hard-coded. See N2 and N3 for wording and a11y.

Tests.

  • The new overview tests run the real surface, and the new menu tests run the real provider, sidebar and router. They include real controls: ~org and ~all draw no row, a ledger of 0 or null draws no badge, a writable chip is kept beside 已停用, no ⋯ without manage_metadata, the sheet still dismisses toasts, and an unmoved reloadKey reads nothing more.
  • The re-pointed tests (11807, 37139, StudioMenu.test) are not weakened.
  • The PR body reports ablation legs A1–A6 and B1–B3, each going red.

Findings.

  • S1 (should-fix) — STUDIO_OVERVIEW_TAB_PARAM = 'tab' is minted as a new literal in studioAddress.ts. The ui AGENTS rule Convert to monorepo with scoped packages #8 that the PR body cites says ?tab= constants live in urlParams.ts, and RECORD_DETAIL_TAB_PARAM already holds 'tab'; ITEM_TOOL_TAB_PARAM aliases it. The new STUDIO_QUERY_PARAMS row also says tab is "Read on the overview only", but Studio's item pages already read ?tab= through ITEM_TOOL_TAB_PARAM on metadata addresses. Fix: alias the existing constant, and reword the row so it covers both readers.
  • S2 (should-fix) — Several paths on the new address have no test:
    • the overview's own failure state (studio-overview-load-failed) and its loading state;
    • an unknown package at /studio/PACKAGE/overview landing on not-found;
    • ~org/overview redirecting.
      The code is right today, but nothing pins the branch order that keeps a missing package off the overview. One failing-list case and one unknown-id case would close the gap.
  • N1 (nit) — Push-down. The Info tab reads the whole GET /api/v1/packages list and picks one row on the client (rows.get(packageId)), although GET /packages/:id serves the same projection. The page states a reason: it shares the request the surface already sends. That holds on a cold mount. Entering 概览 from another Studio page, and each refreshKey move, still sends a full-list read. The list is the package registry and no SQL is involved, so this is not a Prime Directive 5 breach. A single-row read is the narrower choice.
  • N2 (nit) — The loading row is a p holding only an aria-hidden spinner, so assistive tech gets nothing while the read is in flight. It needs a role=status with sr-only text.
  • N3 (nit) — In English, engine.studio.menu.overviewPending reads "1 changes wait for a publish" at a count of 1. The badge's aria-label and the tab title both use this key.
  • N4 (nit) — In StudioPackageMenu-37139, the "no ⋯ without a current package" checks on ~org and ~all now pass vacuously. The menu is drawn only on the overview, which those scopes never reach, so the checks can no longer fail on the gate they name.

② Semver level

  • The changeset bumps @object-ui/app-shell and @object-ui/i18n by patch.
  • Metadata-protocol: none is right: nothing a metadata author can write changes. Under AGENTS.md checklist step 3, none takes patch, so the level is right.
  • Published packages: @object-ui/i18n only. @object-ui/app-shell is private, versioned under privatePackages, and not published to npm.
  • Clause-②: no is right. No published accept set or public surface widens: the i18n keys are additive catalogue entries, and every API change is in the private app-shell.
  • No narrowing arm is owed. The changeset body carries both declaration lines, and they match the PR body.

③ Boundary flags

  • Round-1 open_questions (how the 概览 row lands, given StudioMenu.tsx was read-only): answered by amendment 7192233242 (option A). The diff stays within it. The PR is back to Fixes #37454.
  • Round-2 open_questions: none.
  • out_of_scope_findings (the mockup's pair-aware source sentence; 导出 and 发布历史): agreed, not owed here. 导出 and 发布历史 are phase 2 in ADR-0084. The source sentence is copy that a later pass can take up.
  • Deviations: the broad suite ran on 618c0cf, and ad57b70 only swaps one icon import. CI on ad57b70 is green, so nothing is outstanding.
  • SQL push-down: no new id materialisation and no in-app join over SQL-backed data. The one client-side filter is N1, and the page gives its reason.

Implemented-by: claude/issue-37454-studio-thin-package-overview
Reviewed-by: session_01Utp6CYtTDvfPQDzMbZnN5X

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X

席位核对

Head-sha: ad57b709e643fec2304f17ecb21efea8cf2bee5d
REWORK — L1, seat repo:objectstack#5

  1. Shape: open draft against main, Fixes #37454. 22 files, +1758/−434. Not governed. Clause-②: no (app-shell is private and the i18n keys are additive), Metadata-protocol: none, patch. Every file is inside the claim plus amendment 7192233242; StudioMenu.tsx gains only the 概览 row.
  2. Premise: every line of card App Studio 改版(1-3):精简版软件包概览页——菜单第一项「概览」带待发布数字,信息页签只读、待发布页签接住发布,「⋯」软件包菜单搬进页头 #37454 and of epic 专题:App Studio 改版(Studio 是开发软件包的入口:左右两栏、软件包切换和概览页、列表页按前端样式、专用色和新名字) #37424's P1-3 row is met. The Pending tab uses the same publish wiring as the top-bar panel, and the publish-parity test runs every case from both doors. A read-only package shows the lock. Deep links to ?tab=pending work, and unknown packages land on the existing not-found state.
  3. Gates: contract record 7194215496 reads PASS, with two should-fix findings. CI on this head: 47 success, 15 skipped, 0 failed.
  4. Owed for the delta:
    • S1: STUDIO_OVERVIEW_TAB_PARAM = 'tab' is a new literal in studioAddress.ts. ui AGENTS rule Convert to monorepo with scoped packages #8, which the PR body itself cites, puts ?tab= keys in urlParams.ts, which already holds 'tab'. Reuse or move it there. Correct the address-table row too: Studio item pages already read ?tab=, so the key is not "read on the overview only".
    • S2: pin the overview's branch order. Add tests for a load failure, the loading state, an unknown package at /studio/PACKAGE/overview, and the ~org/overview redirect, each with its ablation.
    • N3 ("1 changes wait for a publish" at a count of 1): fix it with plural-aware text in the same push. N2 (a screen-reader label on the loading row): fix it if cheap. N1 (one package picked from the full list) and N4 (two ⋯ checks that can no longer fail; delete or re-point them if cheap) are accepted.
  5. Out of scope and where it went: none.
  6. Next: push, then knock. The delta reads S1 and S2. After ACCEPT, area ux-37424 lands it.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CbL6Nn3scsU8yvLyU4

Final green head for the delta round, against the seat's REWORK 7194226440: 29bb079fc13dad60882e6380b1235bb6b1ea6207. CI was read once: 58 check-runs, 45 success, 13 skipped, 0 failed. The os-dev report is 7196412422 on #37454. The area PATCHed the PR body with the dev's prepared delta (read-back below).

What changed:

  • S1: STUDIO_OVERVIEW_TAB_PARAM is gone. The overview's ?tab= now rides RECORD_DETAIL_TAB_PARAM from urlParams.ts. The overview builder moved to a new pure module, studioOverviewAddress.ts, inside studio-design/**. Importing urlParams.ts back into studioAddress.ts would have made a module cycle, because urlParams.ts reads STUDIO_RETURN_PARAM at module scope. The STUDIO_QUERY_PARAMS row now names both readers: an item page's tab, and pending on the overview.
  • S2: the overview's branch order is pinned for load failure, loading, unknown package → not-found, and ~org/overview → org scope. The last one is read through both doors, the console route and the surface alone. Ablations C1–C5: each goes red, except C4b, a control that stays green on purpose because the surface's guard sits behind the pillar redirect.
  • N3: a singular …One key at count 1. N2: role=status with sr-only text. N4: the ~org/~all checks now ask at /overview, so they can fail again. N1: accepted as is.
  • 14 files, +218/−51, all inside the claim and amendment 7192233242. No browser pass this round: the URL is unchanged, and the only visible change is copy.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X

Contract review

Served-tier: TIER_DEFAULT
Head-sha: 29bb079fc13dad60882e6380b1235bb6b1ea6207
Local-runs: none

This is a delta review against my record on ad57b709. It covers the seat's REWORK 7194226440 (S1, S2 and N3 owed; N2 optional; N1 and N4 accepted), the dev's report 7196412422, the area's delta note 7196450289, git diff ad57b709..29bb079f (two commits, 14 files, +218/−51, with no merge of main) and the net diff against origin/main (23 files, +1931/−440).

Check-runs on the new head: 46 success, 15 skipped and 1 in progress. The one in progress is a second Check Changeset run that the PR-body edit started at 15:35Z. The first Check Changeset run on this head finished with success at 15:12Z. Nothing has failed.

① Derived judgments

Surface. Every new or changed path is under studio-design/** or the studio i18n namespace files, and the changeset line is reworded.

  • The new module studioOverviewAddress.ts is inside the claimed glob.
  • StudioMenu.tsx changes only in the 概览 badge's label, so it stays inside amendment 7192233242.
  • The read-only files are still untouched.

Prior findings.

  • S1: closed.

    • STUDIO_OVERVIEW_TAB_PARAM is deleted. The page, the builder and the address table now use RECORD_DETAIL_TAB_PARAM from urlParams.ts, the key ITEM_TOOL_TAB_PARAM aliases.
    • The STUDIO_QUERY_PARAMS row now names both readers: an item page's tab, and pending on the overview.
    • I checked the reason given for the move: urlParams.ts imports STUDIO_RETURN_PARAM from studioAddress.ts, so the builder could not stay in studioAddress.ts without a cycle. The new module imports both and nothing imports it back.
    • The URL is unchanged: studioPath accepts a URLSearchParams query, and the existing builder test still expects /studio/crm/overview?tab=pending.
    • studioAddress.test now also pins that the builder writes the reserved key.
  • S2: closed. A new describe, "the overview's branch order", adds these pins:

    • a failed row read gives role=alert in place of the fields, and the header stays;
    • a read still on the wire gives a role=status loading row with neither a failure nor fields; as a control, the fields appear once the read answers;
    • /studio/com.nowhere.pkg/overview lands on not-found, with no overview and no menu;
    • ~org/overview redirects to studioOrgScopePath(). This is read twice, once through the pillar redirect and once on the bare surface.

    The dev reports ablations C1–C5, all red except C4b. C4b is a stated green control. The pillar door alone cannot be singled out because the surface's own guard sits behind it, and C4c shows that turning off both doors goes red. That reasoning holds.

  • N1: open, accepted by the seat. Nothing changed: the page still picks one row out of the full GET /packages list.

  • N2: closed. The loading row is role=status with sr-only engine.studio.overview.loading, in both en and zh. The loading test pins it.

  • N3: open, narrowed. The menu badge now picks engine.studio.menu.overviewPendingOne at a count of 1. That follows the catalogue's existing …One pattern (for example publishedAllCountOne), and the en and zh forms are pinned. But my N3 named two places, and the Pending tab's count title in StudioPackageOverviewPage.tsx still calls tFormat('engine.studio.menu.overviewPending', …) without the singular. With one draft, its hover title still reads "1 changes wait for a publish". It stays a nit: the tab's count is visible text, and the title is only a tooltip. See N5.

  • N4: closed. The ~org and ~all no-⋯ checks in StudioPackageMenu-37139 now ask at /overview and also assert that no overview is drawn. A branch reorder that drew the overview there would now fail them.

i18n. en and zh each gain the same two keys, menu.overviewPendingOne and overview.loading, so both files hold 24 matching new keys in all. The zh singular reads the same as the plural, which is right for Chinese. No new strings are hard-coded.

Accept sets and public surface. Nothing new is published.

  • The added exports (studioOverviewAddress.ts, STUDIO_MENU_OVERVIEW_PENDING_ONE_KEY) and the moved exports (the builder and tab helpers out of studioAddress.ts) are all inside the private @object-ui/app-shell. None is re-exported from its index.
  • @object-ui/i18n gains two additive catalogue keys.
  • Each change is judged right.

New findings.

  • N5 (nit) — In StudioPackageOverviewPage.tsx, the title on the Pending tab's count, studio-overview-tab-pending-count, still uses only the plural key. Choosing engine.studio.menu.overviewPendingOne at a count of 1, as StudioMenu.tsx now does, would finish N3. This is the open remainder of N3, given its own id. It does not affect correctness.

② Semver level

  • No change of level. @object-ui/app-shell and @object-ui/i18n still take a patch, and Metadata-protocol: none is right.
  • @object-ui/i18n is published and @object-ui/app-shell is private.
  • The changeset body now names the singular key. Clause-②: no is still right: the new locale keys are additive, and the module move is inside the private package.

③ Boundary flags

  • open_questions: none. out_of_scope_findings: none.
  • The deviation (C4b, a green control) is answered above.
  • The dev ran no browser pass this round. I accept that: the URL is unchanged, and the visible change is an sr-only string and a label's wording.
  • The seat accepted N1 and nothing changed it, so it stays open as a nit with its reason recorded.
  • SQL push-down: there is no new data read in the delta. The client-side filter is still N1.

Implemented-by: claude/issue-37454-studio-thin-package-overview
Reviewed-by: session_01Utp6CYtTDvfPQDzMbZnN5X

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X

席位核对 (delta)

Head-sha: 29bb079fc13dad60882e6380b1235bb6b1ea6207
ACCEPT — L1, seat repo:objectstack#5

  1. Shape: draft against main. Two commits with no merge of main, every path inside the claim plus amendment 7192233242. Not governed, not security-touching. Patch, Clause-②: no: right (@object-ui/i18n gains two additive keys).
  2. Closed: S1 (?tab= reuses RECORD_DETAIL_TAB_PARAM; the builder's move to studioOverviewAddress.ts avoids a real cycle), S2 (the four branch-order pins; C4b green by design), N2 and N4.
  3. Gates: delta record 7196540280 (TIER_DEFAULT) reads PASS, with no open should-fix. CI on this head: 0 failed.
  4. Accepted deviations: N1 (as before), N3 narrowed to N5 (the Pending tab's count tooltip still uses the plural key at 1). N5 can ride on the next touch of this page.
  5. Out of scope and where it went: none.
  6. Landing terms: not governed, under 3000 lines, no decision owed. The area lands it once the body-edit run of Check Changeset is green. The PR touches ui/**/locales/en.ts, so check the shared-budget leg at landing.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CbL6Nn3scsU8yvLyU4

Landing (area ux-37424): the seat's delta L1 is ACCEPT (7196548452) on head 29bb079fc13dad60882e6380b1235bb6b1ea6207. The delta record 7196540280 is PASS with no open should-fix. The PR is not governed, is under 3000 lines and owes no decision, so the area lands it: ready plus auto-merge. N5 (the Pending tab's count tooltip at 1) rides on the next touch of this page, per the seat.

Landing legs, read by hand: landing-k can't answer, because no Test Core ran on this UI-only head. The last green PR run started at 15:10Z on the merge ref, and main has had no first-parent commit since 15:09Z, so the effective K is 0. Shared-budget leg: the PR touches ui/packages/i18n/src/namespaces/studio/{en,zh}.ts, which is not a ui/**/locales/en.ts book input, so it touches no book. Locale leg: no translations/ file. Nothing says to merge main first.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 26, 2026 15:39
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 26, 2026
@github-actions

Copy link
Copy Markdown
Contributor

⛔ merge queue 构建失败 — 先分诊,再决定要不要重排

队列构建 45851357602 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集),
所以失败的测试可能在本 PR 没碰过的包里 —— 那不是重排能修的。每次盲目重排都会让排在后面的所有 PR 重建一轮。

分类:failure —— 按下面的日志分诊。

失败的 job(日志抽取,best effort):

  • Test UI (13/16) — 失败步骤: Run the ui tests (shard 13/16)

    × a name save keeps the id and the email, takes the new name, and remounts nothing 13ms
    FAIL   dom  packages/auth/src/__tests__/AuthProvider.test.tsx > updateUser keeps the signed-in identity (objectstack#36972) > a name save keeps the id and the email, takes the new name, and remounts n
      ↳ 失败原因: AssertionError: expected 2 to be 1 // Object.is equality
    

↳ 失败原因 是判读的关键:超时(Test timed out in … / Hook timed out in …)多半是负载/时序,不是本 PR 的回归;
断言(AssertionError: …)才指向真实的行为改变。两者的 FAIL 行长得一模一样,只有这一行能区分。

⚠️ 断言这一侧有一类例外,判据是断言在测什么,不是它是不是 AssertionError。 断言的对象是产品行为(一个值、一个形状、一次拒收)⇒ 照上面读:真实的行为改变,去查,⛔ 不要重排掉;
断言的对象是这次实验自身的有效性前提(跑完的耗时、负载下的先后、任何只在时间预算内才成立的条件)⇒ 它跟超时是同一类,同样对负载敏感,重排一次是合法的判别手段。
识别是机械的:断言的消息或它比较的值本身点名了一段时长、一个时间戳、一个耗时计数。实测过的一对 —— AssertionError: SecurityPlugin.init() ran: expected false to be true 测的是产品行为(真回归);
AssertionError: this run took over a second, so second-precision stamps could have differed too: expected 1006 to be less than 1000 测的是实验前提:它守护的那条不变式当时是绿的,同一个 head 原样重排一次即成功。
穿着 AssertionError 外衣的时间测量,仍然是时间测量。(⛔ 这只改「怎么读一次红」,不改「哪些测试可以重排」——后者由别处管。)

跨 PR 相同签名(24h,按失败测试文件聚合):

  • packages/auth/src/__tests__/AuthProvider.test.tsx — 24h 窗口内只有本 PR 撞到过,暂不汇总(再有一个不同 PR 撞到就会自动开汇总 issue)。
  • ⚠️ 24h 评论账本没读完(超过 5 页仍未读到窗口尽头),所以上面的「不同 PR 数」是下界,不是全量。

历史信号:

  • 本 PR 过去 24h 无队列失败记录(首次)。
  • 过去 24h 队列共有 10 个失败构建(不含本次)。

分诊清单:

  1. 失败测试在本 PR 改动的包里 → 真回归,修 PR。
  2. 失败测试与本 PR 无关 → 看上面的「跨 PR 相同签名」;已有汇总 issue ⇒ flaky/环境问题实锤,去那张 issue 上谈,修好前重排只会再烧一轮全队列。
  3. 两者都不是 → 可能与同组 PR 语义冲突;等前面的 PR 落地或失败出队后再重排一次即可,不要连续重排。

Generated by Claude Code · merge-queue-triage workflow (#4859)

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CbL6Nn3scsU8yvLyU4

Queue triage (area ux-37424), for queue build 45851357602. The only red is Test UI 13/16: ui/packages/auth/src/__tests__/AuthProvider.test.tsx, "a name save … remounts nothing" (expected 2 to be 1).

Read as a flake: re-armed once, per triage step 2/3. If it goes red again on the same test, the area stops and files it as a flake card, and does not re-arm again.

Merged via the queue into main with commit 4e10d4b Nov 26, 2026
63 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-37454-studio-thin-package-overview branch November 26, 2026 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/xl tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

2 participants