Repository navigation
feat(studio): 概览 package overview page — Info and Pending tabs, ⋯ menu in its header - #37546
objectstack-fleet[bot] wants to merge 6 commits into
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:
|
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.?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.studioPackageOverviewPathandstudioOverviewTabinstudioAddress.ts, with theoverviewfamily and thetab=pendingrow added tostudioAddressTable.ts.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.overviewPendingandengine.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 page and Pending-tab runs are on head 06830bf. The menu row, the merge of
origin/mainand the gates are on 618c0cf and ad57b70; ad57b70 only swaps the row's icon, and the menu tests andtscwere rerun on it.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.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.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 618c0cf: 449 files, 4714 passed and 13 skipped; lock VERDICT command-exit 0. The two menu test files on ad57b70: 45 passed.tsc --noEmitexits 0 on ad57b70 andtsc -p tsconfig.test.jsonexits 0 on 618c0cf.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.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.STUDIO_OVERVIEW_TAB_PARAMlives instudioAddress.tsbeside the builder that writes it, following ui AGENTS rule Convert to monorepo with scoped packages #8 on?tab=constants. The address table registers it withkeptOnRetiredInterfaces: false.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