Repository navigation
feat(studio): 概览 package overview page — Info and Pending tabs, ⋯ menu in its header - #37546
Conversation
Claude-Session: https://claude.ai/code/session_01Utp6CbL6Nn3scsU8yvLyU4 Co-authored-by: Claude <noreply@anthropic.com>
…eset Claude-Session: https://claude.ai/code/session_01Utp6CbL6Nn3scsU8yvLyU4 Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Utp6CbL6Nn3scsU8yvLyU4 Co-authored-by: Claude <noreply@anthropic.com>
…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>
Claude-Session: https://claude.ai/code/session_01Utp6CbL6Nn3scsU8yvLyU4 Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#5 · os-bill · session_01Utp6CbL6Nn3scsU8yvLyU4 Final green head (2026-11-26T13:54Z): Area notes for L1:
|
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X Contract-review-claim: session_01Utp6CYtTDvfPQDzMbZnN5X · head ad57b70 · 2026-11-26T13:55Z |
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X Contract reviewServed-tier: 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 ① Derived judgmentsAcceptance, line by line.
Surface.
New address and menu-model entries.
States.
Accept sets and public surface.
i18n. en and zh add the same 22 keys. Every key is used, and the reused keys Tests.
Findings.
② Semver level
③ Boundary flags
Implemented-by: VERDICT: PASS |
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X 席位核对Head-sha:
|
…rder pinned; singular badge label Claude-Session: https://claude.ai/code/session_01Utp6CbL6Nn3scsU8yvLyU4 Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Utp6CbL6Nn3scsU8yvLyU4 Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#5 · os-bill · session_01Utp6CbL6Nn3scsU8yvLyU4 Final green head for the delta round, against the seat's REWORK 7194226440: What changed:
|
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X Contract reviewServed-tier: This is a delta review against my record on Check-runs on the new head: 46 success, 15 skipped and 1 in progress. The one in progress is a second ① Derived judgmentsSurface. Every new or changed path is under
Prior findings.
i18n. en and zh each gain the same two keys, Accept sets and public surface. Nothing new is published.
New findings.
② Semver level
③ Boundary flags
Implemented-by: VERDICT: PASS |
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X 席位核对 (delta)Head-sha:
|
|
repo:objectstack#5 · os-bill · session_01Utp6CbL6Nn3scsU8yvLyU4 Landing (area ux-37424): the seat's delta L1 is ACCEPT (7196548452) on head Landing legs, read by hand: |
⛔ merge queue 构建失败 — 先分诊,再决定要不要重排队列构建 45851357602 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集), 分类: 失败的 job(日志抽取,best effort):
跨 PR 相同签名(24h,按失败测试文件聚合):
历史信号:
分诊清单:
Generated by Claude Code · merge-queue-triage workflow (#4859) |
|
repo:objectstack#5 · os-bill · session_01Utp6CbL6Nn3scsU8yvLyU4 Queue triage (area ux-37424), for queue build 45851357602. The only red is Test UI 13/16:
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. |
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
StudioPackageOverviewPage, reached at/studio/PACKAGE/overview(ADR-0084 § 概览 Overview, amendment 2026-11-26). It is drawn in an item page's frame:StudioItemHeaderplusStudioTab.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.role=status); a failed read says so in place of the fields.?tab=pending): the existingDraftChangesPaneldrawn in place. Its tab carries the pending count only while something is pending.DraftChangesPanelgains two optional props. Without them it behaves exactly as before; the body hunk is re-indented, so read it with-w.embeddeddraws the same header notes and body in asectioninstead of aSheet, and does not dismiss toasts on open.reloadKeyre-reads the drafts when it moves.StudioDesignSurfacedoPublish(orundefinedwhenpublishReadOnly),draftScope,renderPublishRefusal, the pair'scustomizationOf, andpublishing.StudioPendingDraftsContext.Providernow wraps the menu and pillars row, so the menu can read the count.StudioPackageMenuleftStudioBackToApp(itsmenuprop 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.~organd~alldraw no such row. The menu reads the count fromStudioPendingDraftsContext.studioPackageOverviewPathandstudioOverviewTabinstudioOverviewAddress.ts. The open tab rides the console's reservedtabkey (RECORD_DETAIL_TAB_PARAM,urlParams.ts; ui AGENTS rule Convert to monorepo with scoped packages #8), which Studio's item pages already read throughITEM_TOOL_TAB_PARAM; no Studio constant restates it. The builder sits besidestudioAddress.tsrather than in it becauseurlParams.tsimportsstudioAddress.ts, so the reverse import would be a cycle.studioAddressTable.tsgains theoverviewfamily, and itstabrow describes the shared key: an item page's tab, andpendingon the overview.studioMenuOverviewEntry(no entry outside a package; a badge only above zero),studioMenuOverviewMatches, andstudioMenuCurrentKeyansweringoverview.ListedPackageManifestnow carriesenabledandsourcefrom the row ofGET /api/v1/packages. There is nopackagemetadata type.engine.studio.menu.overview,engine.studio.menu.overviewPendingwith its singularengine.studio.menu.overviewPendingOne(the catalogue's…Oneform: "1 change waits for a publish"; zh reads the same either way), andengine.studio.overview.*.@object-ui/app-shelland@object-ui/i18n.Read first (by risk):
StudioDesignSurface.tsx, the overview branch'sDraftChangesPanelprops. The Pending tab must publish exactly like the top bar.DraftChangesPanel.tsx, theembeddedreturn and thereloadKeyeffect deps.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).
StudioPackageOverview-37454.test.tsx(the real surface; the panel probe records the props given to the sheet and to the embedded panel). It covers:manage_metadata;?tab=pendingURL, with no count when nothing is pending;onPublishundefined on both for a read-only package;~org/overviewredirects to the scope's area, read once through the route as the console mounts it and once with the surface alone.StudioMenu.overview-37454.test.tsx(real provider, sidebar primitive and router). It covers:~organd~alldraw no row;/overview?tab=pending, and the row lands on the Info tab;overbut not onflow.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.StudioDesignSurface.publishCount-11807.test.tsxnow runs every case twice, from the top bar and from the Pending tab (describe.each).StudioPackageMenu-37139.test.tsxnow opens the menu from the overview header and asserts that the top bar has none. Its no-menu check on~organd~allnow asks at the overview's own address on each scope, where the menu would be, instead of on pages that never drew it.DraftChangesPanel.posture-12517.test.tsxcovers the embedded panel: no dialog, publish with no options, no toast dismiss (control: the sheet dismisses), areloadKeyre-read (control: an unmoved key reads nothing more), and nothing drawn when closed.studioMenuModel.test.tscovers the overview entry, the badge, the matcher and the current key.studioAddress.test.tscovers the builder, the tab and the table lists.studio-design/,preview/andpackages/i18n/on 29bb079: 449 files, 4720 passed and 13 skipped; lock VERDICT command-exit 0.tsc --noEmitandtsc -p tsconfig.test.jsonboth exit 0 (the test project at an 8 GB heap).git diff HEADis empty):onPublishset to undefined. 6 red: 5 Pending-tab publish cases and the prop-parity case.reloadKeydropped from the effect deps. 1 red.embeddedbranch disabled. 1 red.~orgredirect off. 1 red (the surface-alone case).~orgbranch lets the overview through. It stays green because the surface's guard behind it catches the address.Ablation log (ablation-replace verdicts)
Acceptance notes
StudioMenu.tsxfor the 概览 row and its badge only.studio-tokens.ts,studioAccent.ts,studioTitleRow.tsxandPageShell.tsxare untouched.StudioMenu.tsxand not throughbuildStudioMenu, 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'sSidebarMenuButton, so its active state is the same graphite pill as every entry. In the real browser the current-row background readsrgba(53, 57, 64, 0.1)in light andrgba(208, 210, 216, 0.18)in dark, the same on the 流程 entry and on the 概览 row, and the 5 group chevrons are drawn.Package). A first cut usedLayoutDashboard, which the browser showed to be indistinguishable from 应用'sLayoutGrid.source(代码。只读:不能直接修改。). The mockup's pair-aware sentence (你的修改会单独保存…) is copy for a later pass.?tab=is the console's reserved key fromurlParams.ts(ui AGENTS rule Convert to monorepo with scoped packages #8), not a Studio constant. Its builder lives instudioOverviewAddress.tsand not instudioAddress.ts:urlParams.tsimportsstudioAddress.tsand lists itsSTUDIO_RETURN_PARAMat module scope, so a back-import would be a cycle whose load order decides whether that list reads an uninitialised binding.reloadKeyis a prop added to the load effect's deps and not akey=bump, following ui AGENTS rule Convert to monorepo with scoped packages #8 on forced reloads.Verification
Two-minute check: run the showcase example and open
/studio/com.example.showcase/overview. Expect:Real browser: Chromium at deviceScaleFactor 2, light and dark, on the showcase with 3 AI-style view drafts in its customization pair.
3 项修改待发布), then 对象. Clicking the badge lands on/studio/com.example.showcase/overview?tab=pendingwith the Pending tab open and 概览 current.POST /api/v1/packages/com.example.showcase.custom/publish-drafts._draftsthen read empty and the tab count disappeared.Derived gates (dispatch-gates --ran)
Generated by Claude Code