Repository navigation
feat(console): the docs portal draws in an app-less variant of the app shell from 768 px up - #37241
Conversation
Claude-Session: https://claude.ai/code/session_01QSeKYo1Rb7aYhQiJdWshkL Co-authored-by: Claude <noreply@anthropic.com>
…rst row and the docs-page shell notices Claude-Session: https://claude.ai/code/session_01QSeKYo1Rb7aYhQiJdWshkL Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QSeKYo1Rb7aYhQiJdWshkL Co-authored-by: Claude <noreply@anthropic.com>
…evidence only, removed in the next commit) Claude-Session: https://claude.ai/code/session_01QSeKYo1Rb7aYhQiJdWshkL Co-authored-by: Claude <noreply@anthropic.com>
…eachable at the previous commit) Claude-Session: https://claude.ai/code/session_01QSeKYo1Rb7aYhQiJdWshkL Co-authored-by: Claude <noreply@anthropic.com>
…tion in the docs portal shell's suite Claude-Session: https://claude.ai/code/session_01QSeKYo1Rb7aYhQiJdWshkL Co-authored-by: Claude <noreply@anthropic.com>
…u's wrapped app switch; stub it in the lazy-portal suite Claude-Session: https://claude.ai/code/session_01QSeKYo1Rb7aYhQiJdWshkL Co-authored-by: Claude <noreply@anthropic.com>
…y back to the app; the docs-pages changeset and the app-shell doc name the portal's frame Claude-Session: https://claude.ai/code/session_01QSeKYo1Rb7aYhQiJdWshkL Co-authored-by: Claude <noreply@anthropic.com>
…er the way back (evidence only, removed in the next commit) Claude-Session: https://claude.ai/code/session_01QSeKYo1Rb7aYhQiJdWshkL Co-authored-by: Claude <noreply@anthropic.com>
…ay reachable at the previous commit) Claude-Session: https://claude.ai/code/session_01QSeKYo1Rb7aYhQiJdWshkL Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW Final green head for L1 and same-head contract review (2026-11-25T07:06Z):
|
|
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ Contract reviewServed-tier: ① Derived judgments
② Semver level
③ Boundary flags
Implemented-by: VERDICT: PASS No must-fix, no should-fix. |
|
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ 席位核对 — REWORK · L1 · head
|
| PR | Head | Shared files |
|---|---|---|
| feat(studio): remove the Studio home; /studio opens the last package or Setup > Packages #37166 | 329ddefce7 |
App.docsPortalLazy test, app-shell/src/index.ts, SidebarAppMenu-36112 test |
| feat(studio): the object designer opens full-screen on its metadata address, tabs in #36513's order #37168 | 64a5a2d733 |
SidebarAppMenu-36112 test |
| feat(studio): the flow designer opens full-screen on its metadata address; no flow rail (#36903) #37169 | 576f67d33b |
index.ts |
The hunks do not touch each other: theirs are Studio exports and the BuilderLanding stub. The modify/delete with chore: version packages (next) #35129 (Version Packages) is expected.
S1 (should-fix) — Design point 5 (default accent, no app brand) maps to code but to no test. Reverting it (handing AppShell the last or host app's branding) turns nothing red; the PR's diff has no assertion on --primary or --accent anywhere. The fix is to add a pin in DocsPortalShell-37197, which already mounts the real AppShell: open the portal after an app with branding.primaryColor, assert that document.documentElement.style carries no --primary, and add a phone control.
S2 (should-fix) — The portal's desktop frame has no content-area banner host. This was found by reading the code; I did not render it.
ConsoleLayoutmountsChromeBannerHost(andConnectionBanner) inconsole-bannersfrom 768 px up.DocsPortalShelldoes not.- So the standing banners (impersonation, read-rate, storage) stay in
ConsoleShell'sChromeBannerSlotabove the route, at full window width. - Meanwhile the shell's sidebar is
fixed inset-y-0from the window's top. The impersonation banner issticky top-0 z-50, so it covers the sidebar's head row (the 「文档」 menu and the collapse button). The in-flow storage and read-rate banners run under the sidebar's column. - The new
app-shell.mdxsentence says the portal "draws the same frame there" right after naming "the content area the standing banners" as part of that frame, which is false at head. - The fix: mount the host, inside a non-shrinking box at the top of the portal's content as
ConsoleLayoutdoes, with a 1440 pin and a phone control. Narrowing the doc sentence alone would leave the overlap.
S3 (should-fix) — The 37197 note's opening sentence is false at head. It says the portal "was the last desktop page that still drew a top bar". In fact /organizations (OrganizationsLayout, AppHeader variant="orgs") and Home's no-product-app state (HomeRoute → RootLandingRedirect home={page}, DefaultHomeLayout) still draw a top bar from 768 px up. Reword it, e.g. "was the one documentation page that still drew a top bar on a desktop".
N1 — The 37197 note says "the sidebar with search and notifications in its head". Search is drawn only while a palette is mounted (docsPortalSearch={!!hostApp}), so a workspace with no openable app gets no search field. The PR body discloses this; the note could say "search (when there is an app to search)".
N2 — The rememberApp assertions in DocsPortalShell-37197 guard a mocked hook that nothing in the portal's tree calls. The last-app-key storage check is what carries the "no app remembered" pin.
…d the connection notice at the top of its content; pin its default accent Claude-Session: https://claude.ai/code/session_01QSeKYo1Rb7aYhQiJdWshkL Co-authored-by: Claude <noreply@anthropic.com>
…an external-store subscription Claude-Session: https://claude.ai/code/session_01QSeKYo1Rb7aYhQiJdWshkL Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ Contract reviewServed-tier: ① Derived judgments
② Semver level
③ Boundary flags
Implemented-by: VERDICT: PASS No must-fix, no should-fix. |
|
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ 席位核对 — ACCEPT · L1 · head
|
| PR | Head | merge-tree | Shared files |
|---|---|---|---|
| feat(studio): remove the Studio home; /studio opens the last package or Setup > Packages #37166 | 45e4a5eb52 |
conflict | App.docsPortalLazy test, app-shell/src/index.ts, SidebarAppMenu.tsx, SidebarAppMenu-36112 test |
| feat(studio): the object designer opens full-screen on its metadata address, tabs in #36513's order #37168 | 64a5a2d733 |
clean | SidebarAppMenu-36112 test |
| feat(studio): the flow designer opens full-screen on its metadata address; no flow rail (#36903) #37169 | 3f65d38baa |
clean | index.ts |
- feat(studio): remove the Studio home; /studio opens the last package or Setup > Packages #37166 moved after the zone's overlap-check: its new head's runs started at 2026-11-25T07:43Z. It now carries
1ab7e75973e, which turnsAddAppSubmenu()intoAddAppSubmenu({ entries })and gates the menu onofferAddApp = mayAddApp && addAppEntries.length > 0. - That conflicts textually with this PR's
AppMenuListextraction inSidebarAppMenu. It is also a semantic overlap:SidebarDocsPortalMenu's{mayAddApp && <AddAppSubmenu />}would not type-check against feat(studio): remove the Studio home; /studio opens the last package or Setup > Packages #37166's signature, and would miss its empty-list rule. - Whichever of the two lands second merges main and carries the
entries/offerAddApprule intoSidebarDocsPortalMenu. This does not block the ACCEPT, because this PR merges cleanly withorigin/main. - The modify/delete with chore: version packages (next) #35129 (Version Packages) is expected.
Size and tier. 21 files, +1323/−152 (1,475 changed lines), under 3,000. No governed path: Governed Surface Queue Guard is success and the contract review is owed on the declaration face (TIER_DEFAULT). The PR is not ! and not (narrowing), so the dogfood battery is n/a. Tier S.
N3 — The S2 pin proves the banner sits in a box with that test id, but not that the box is in the content area beside the sidebar.
- Ablation: I lifted the whole
docs-portal-bannersbox out ofAppShellto just before it. That reproduces the full-width-above-the-sidebar geometry S2 was about. The result wasTests 16 passed (16). - Probe: adding
expect(box.closest('main')).not.toBeNull()to the 1440 banner test is green at head and red under that lift (1 failed | 15 passed).AppShell's content isSidebarInset, amain. ConsoleLayout.noTopBar-36112pinsconsole-bannersthe same way, so this follows precedent. It is worth one line whenever the test is next touched. It does not reopen S2: the code is right, and the pin does go red when the host is removed.
The zone lands it after measuring K. If K ≥ 15 it merges main first. A merge-only head move keeps this ACCEPT.
No must-fix, no should-fix.
|
repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW Landing (2026-11-25T08:23Z): head
Queued with the red check under SKILL.md's three conditions for a red-by-design check. All three hold:
The gate is unchanged. State change: ready for review, and auto-merge armed; the merge queue lands it.
|
…or Setup > Packages (objectstack-ai#37166) Fixes objectstack-ai#36908 Clause-②: no Metadata-protocol: none ## 维护者速读 - 管理员和开发者打开 Studio 不再看到软件包卡片页:有上次用过的软件包就直接进它;没有的话,能打开设置软件包列表的人进那个列表,打不开的开发者进「全部元数据」;已安装应用「改了什么」挪到了设置里的软件包详情;「添加应用」菜单去掉了「用 AI 搭建」,「在 Studio 中新建」改名为「新建空白应用」,凡是开放了元数据编辑的环境都会出现。 - 这是 Studio 重构专题的「去掉 Studio 首页」一步:首页的入口大多已有去处,但软件包的「管理」和「全部软件包」要等 Studio 顶栏菜单那张卡(objectstack-ai#37139)补上,一步「新建应用」要等新建软件包对话框那张卡(objectstack-ai#37134);另有三个入口没能在真实环境走过,「添加应用」菜单这一轮的变化(去掉「用 AI 搭建」、改名「新建空白应用」)也没在真实环境走过,都只有自动测试覆盖。 - 维护者已裁定统一「已定制」的口径(objectstack-ai#37236),但设置里的软件包详情和本次更新说明里的一句话目前仍把标签页等排列调整算作「已定制」;改正由那张卡完成,本 PR 不妨碍它。 - 只有 Studio 权限、没有设置权限的开发者现在没有任何页面能新建软件包,因为新建入口只在设置里;这要等 Studio 顶栏菜单(objectstack-ai#37139)和新建软件包对话框(objectstack-ai#37134)两张卡落地。 - 如果出错,用户进 Studio 会落到软件包列表或「全部元数据」页,而不是首页;这次只改界面,不改数据,可以直接撤回。 - 服务器没有报告用户权限时,这些「新建」入口按有权限处理,把人带到设置里的新建软件包;真正能否创建仍由服务器判断,席位建议保持这样。 - 本 PR 超过 3000 行(主要是删除旧首页和它的测试),请您按大 PR 流程审核后再合并。 ## What changes Epic objectstack-ai#36890 decision 9: the package-card page at bare `/studio` (`BuilderLanding`) is removed. This PR finds a new home for every entry it carried and deletes the page, the code only it used, and its tests. Every Studio exit that names no package now makes one choice, `studioEntryFallbackPath`: Setup → Packages (`/apps/setup/component/developer/packages?face=admin`) for a principal holding `setup.access` and `manage_platform_settings`, and `/studio/~all/metadata` (the All metadata area) for one who may enter Studio but not that page. The capability set is the one Studio's entry gate read: app-shell now exports `StudioEntryPermissionsProvider` and `useStudioEntryPermissions`, and the console's `RequireStudioAccess` provides the set around the `/studio` subtree. Outside that provider the set reads as holding nothing, so nobody is sent to a page they may not open. | Entry the home carried | Where it goes now | |:---|:---| | bare `/studio` | `StudioEntryRedirect` (in the lazy Studio chunk). It opens the newest remembered package (the recent `package` entries `StudioRoute` records) that `GET /api/v1/packages` still lists, else `studioEntryFallbackPath`. If the list cannot be read, it opens the newest remembered package, and Studio reports the failed read itself. | | New package (`/studio?new=package`) | `SETUP_NEW_PACKAGE_PATH`: the admin face with `?new=package`. It opens New Package on arrival and drops the param with a replace. After create it lands in Studio on the new package (objectstack-ai#36834). Callers: Home's no-agent chip, the `/ai` no-assistant screen, the 「Add app」 menu and the no-apps screen, all labelled 「New blank app」 / 「新建空白应用」 now (below); for an author who may not open Setup → Packages each of them, like the bookmark, opens the All metadata area instead (`useNewPackageDoorPath`, `newPackageDoorPath`). An old `/studio?new=package` bookmark goes there for a holder of the pair, and to the All metadata area for anyone else (`studioNewPackageEntryPath`). One-step 新建应用 is objectstack-ai#37134. | | `~all` / `~org` cards | Already in the left menu (objectstack-ai#36899). Nothing more to do here. | | Per-app "n customized, m switched off" and the "Customizations in this environment" panel | `PackageCustomizationsPanel`, shown in a read-only base's detail sheet on the admin face. It is not shown for an authored package, a `.custom` pair or a kernel package. It has a summary line, rows with tabs (adds Layouts), search, Show all, and 「Customize in Studio」. **"Customized" now counts `counts.arrangements`.** This delivers objectstack-ai#36833's requirement in the panel's new home; objectstack-ai#36833 was closed as not planned (ruling 7125820739), so this PR does not close it. | | Card Manage and the All packages link (development face) | Not this card: the door is added by objectstack-ai#37139 (card note 7146329913). The development face stays reachable by its address. | | Recently viewed | Now Studio's entry itself: `/studio` opens the newest remembered package. | | 「包不存在」 → Studio home | The button follows `studioEntryFallbackPath`: 「Open the package list」 → Setup → Packages for a holder (`engine.studio.notFound.packageList`), 「Open All metadata」 → the All metadata area otherwise (new key `engine.studio.notFound.allMetadata`). | | `AppContent` fallbacks, `packagedActionsStudioPath` fallback with no package named | `SETUP_PACKAGES_PATH`. | | `studio:builder` (the `@objectstack/studio` app's 「应用构建」) | Forwards to `/studio`. | | 「Add app」 (sidebar app menu, and the no-apps screen's buttons) | Maintainer rulings 7153161067 and 7153400210 on objectstack-ai#36908: 「Build with AI」 (to bare `/studio`) is removed, and `new-in-studio` is pushed for every admitted viewer on a deployment that offers metadata authoring, whether or not the build agent is served. It is relabelled under its existing key `home.build.inStudio`: en "New blank app", zh-Hans 「新建空白应用」, zh-Hant regenerated (「新建空白應用」), and the eight other packs translated anew, as `check:i18n-drift` requires of an en change. Home's no-agent chip and the `/ai` button read the same key; their inline `defaultValue` now matches the en value (`check:i18n-keys`); the chip's condition and target are unchanged. It stays inside `isAiStudioEnabled()`, because with `features.aiStudio` false the runtime offers no metadata authoring; a viewer `useMayAddApp` admits there gets the marketplace's two entries, so the list is never empty for an admitted viewer. `SidebarAppMenu` reads the list itself and draws neither 「Add app」 nor its separator for an empty list. Home's 「Build an app」 chip and Home's 「Build with AI」 drawer button are untouched. | Removed: `BuilderLanding.tsx`, its `BuilderLanding.*` test files, `fetchInstalledPackageRow` (only the home's Manage called it) with its pin, and the home's console frame in `StudioRoute` (header and command palette). Two deleted suites still pinned code that stays, and those halves moved (see Tests): the permission matrix's read-only hint copy, and the three new-app door cases. `LandingCustomizationsPanel` and `landingCustomizations-io` were renamed and rewritten as `PackageCustomizationsPanel` and `packageCustomizationRows`. `newAppDoor.ts`, `PackageFormDialog`'s `newApp` branch and the `engine.studio.newApp.*` strings stay for objectstack-ai#37134; the branch keeps its three cases, now mounted on `PackageFormDialog` itself. **Strings.** The home's `engine.studio.landing.*` keys and `engine.studio.landingHome` that ship in the released `@object-ui/i18n@18.6.0` (71 in each of `en` and `zh`, measured against the published tarball; 3 of them are still read by the Packages page) stay, the other 68 no longer read. Removing a published key is a narrowing, so this PR removes none. The four landing keys added after 18.6.0 and never released (`manage`, `manageTitle`, `allPackages`, `allPackagesTitle`) are removed. `engine.packages.customizations.*`, `engine.studio.notFound.packageList` and `engine.studio.notFound.allMetadata` are added (38 keys per language). The PR changes no existing value. **Changesets.** `36908-remove-studio-home.md` (app-shell, console, platform-objects) says what users see, in their words. The i18n note is in its own `@object-ui/i18n`-only changeset, `36908-studio-home-strings.md`. Both carry the two declaration lines. Checklist: `studio-authoring.package-customization-counts-and-marks` (rev 4) and `studio-authoring.org-scope-flows` (rev 5) are re-pointed. The rev 4 note now says objectstack-ai#36833 was closed as not planned and this card delivers its requirement; its `acceptance[2].verify` names `PackageCustomizationsPanel.test.tsx` as the pin. Also re-pointed off the removed home: `automation.setup-packaged-automation-board` (rev 15: title, `steps[1]`, `acceptance[0]`; the packaged-actions bookmark with no `?package=` opens Setup → Packages), `studio-authoring.first-run-loop` (rev 16, `steps[1]`: 「Build an app」 opens the last package or Setup → Packages, the other chip reads 「New blank app」), and the fixture lines of `automation.packaged-flow-clone-contract` (rev 14), `studio-authoring.held-edit-leave-guard` (rev 12) and `ux-conventions.write-feedback` (rev 18), which made their scratch package on the Studio landing. Size at `54e4586e`: +2,306 / −5,217 across 101 files rename-aware (+2,680 / −5,591 across 103 without renames), mostly deletions. Per ruling 7145880574 on objectstack-ai#36890 this lands as one PR, reviewed by the maintainer after L1. **Overlaps** (overlap-check at `54e4586e`, against `origin/main` `4fb03ebb`, exit 1 for objectstack-ai#37249 below): origin/main merges cleanly. This round merged main six times: `cf77ecb9` (K 12) was clean, and `54e4586e` (K 9, with objectstack-ai#37169) is resolved below. Resolved: - objectstack-ai#37089 (landed as `886e9707`): conflicted in `StudioDesignSurface.notFound-26708`; both sides added the same `@object-ui/plugin-detail` import, main's comment kept. The same merge brought objectstack-ai#37198's address-guard fixtures spelling the removed `STUDIO_LANDING_PATH`; they are dropped here. - objectstack-ai#37185 (landed as `ad604c10`): `PackageSwitcher.tsx` keeps this branch's side (`fetchInstalledPackageRow` and `STUDIO_LANDING_PATH`, which objectstack-ai#37185 moved onto the authenticated fetch, are deleted here); its edits to the six test files this branch deletes were stub adaptations (a `headers` field, a module-top import, the gate's fetch double) with no subject left to pin. The new customizations read goes through `packageCustomizations-io.ts`, already on the authenticated fetch; `PackageCustomizationsPanel.test.tsx`'s stub now carries `headers: new Headers()`. - objectstack-ai#37204 (landed as `bd98dd12`): `StudioRoute.test.tsx` and `StudioRoute.lazyBuilder-11798` keep this branch's removal of the home-frame cases; `StudioRoute.metadataArea-28561` keeps this branch's comment line and objectstack-ai#37204's `app-bar-product-home` test-id absence, without the old-name check. - objectstack-ai#37241 (landed as `fc216747`): `SidebarAppMenu.tsx` takes its `AppMenuList` and keeps this branch's `offerAddApp` separator; its new `SidebarDocsPortalMenu` gets the same rule (the 「Add app」 list read there, nothing drawn for an empty list, `AddAppSubmenu entries={…}`), pinned in its `SidebarAppMenu-36112` block (「New blank app」 and no 「Build with AI」 with the build agent served; a Studio-only author to `~all`; the empty-list guard). - objectstack-ai#37168 (landed as `1b91538b`): `PackageFormDialog.newAppStep-36748` keeps this branch's host and adds objectstack-ai#37168's `/studio/:packageId/metadata/*` route; `notFound-26708` keeps this branch's provider and Setup / All metadata routes and adds objectstack-ai#37168's metadata-area route (the removed home's `/studio` route stays out). Its edits to the two `BuilderLanding.*` files this branch deletes were the switched-off action's new address; that pin now lives at `PackageCustomizationsPanel.test.tsx:188`, updated here to `/studio/APP/metadata/object/opportunity?action=clone_opportunity`. - objectstack-ai#37169 (landed as `4fb03ebb`; this PR is the second lander): `BuilderLanding.orgScope-11553` stays deleted. objectstack-ai#37169 only moved the removed home's ~org card to `/studio/~org/metadata/flow?source=runtime`, and the org-scope entry is pinned by `StudioDesignSurface.packageLessFlows-11553`, which objectstack-ai#37169 updated. `notFound-26708` keeps this branch's `StudioEntryPermissionsProvider` and Setup / All metadata routes, with objectstack-ai#37169's comment naming `/automations` too. Nothing else conflicted. `AREA_DESIGNER_PAGE_TYPES` and the removed `AreaHistoryRedirect` exemption came in untouched. The 18.6.0 studio key comparison was re-run against `4fb03ebb`: the branch removes only the four never-released keys, adds 38 per language and changes 0 values; all 71 released landing keys are present. Still open; whichever lands second merges main and resolves: - objectstack-ai#37249 (objectstack-ai#37227) conflicts in `HomePage.desktopNoApps-36732` and `HomePage.noAgentsBuildChip-26614` (this branch's Studio-only chip case). Beyond the text: its first case expects the no-apps doors `[template, marketplace]` with the build agent served, and 「New blank app」 now shows there too (ruling 7153400210), so the second lander keeps `new-in-studio` first. Its HomePage filter of `build-with-ai` becomes a no-op. It touches neither `home.build.inStudio`'s values nor the chip's lines (measured by `git merge-tree` against its branch). - objectstack-ai#37226, objectstack-ai#37215, objectstack-ai#37210, objectstack-ai#37165, objectstack-ai#37282 and objectstack-ai#37284 merge cleanly. ### Read first 1. `ui/packages/app-shell/src/views/studio-design/StudioEntryRedirect.tsx`: the whole `/studio` decision, and the two capability helpers. Risk: where a non-administrator lands (the `studioEntryFallbackPath` pair), now for the bookmark too. 2. `ui/packages/app-shell/src/views/studio-design/PackageCustomizationsPanel.tsx` and the mount in `PackagesPage.tsx` (`PackageDetailSheet`). Risk: the gate `!authoring && !writable && !isKernel && !isCustomizationPackage(id)`. 3. `ui/apps/console/src/components/StudioRoute.tsx` with `studioEntryPermissions.ts`: the index route and the capability set the entry gate provides to Studio (`StudioEntryPermissionsProvider`), which the not-found exit reads. ### Two-minute verification As the seeded admin with nothing remembered, open `/_console/studio`. Expected: you land on Setup → Packages (`…/developer/packages?face=admin`). Open the ObjectStack Showcase row: its detail shows "Customizations in this environment" with a Customize in Studio link. ## Tests New pins: - `StudioEntryRedirect.test.tsx` (12 cases): the newest remembered package the list still names opens; a package the list no longer names is skipped; nothing remembered leads to Setup → Packages, read without a list request; a Studio-only principal lands on `~all`; a failed list read opens the newest remembered package; the old new-package bookmark is forwarded for an administrator (CONTROL) and sends a Studio-only principal to `~all`, never to Setup; both helpers read the same capability pair. - `StudioDesignSurface.notFound-26708`: the not-found button opens Setup → Packages for an administrator (CONTROL), and for a Studio-only principal it reads 「Open All metadata」 and opens `~all`, never Setup. The harness provides the entry gate's set through `StudioEntryPermissionsProvider`. - `PermissionMatrixEditor.readOnlyHintCopy-12171.test.ts`: the half of the deleted `BuilderLanding.environmentOverlayCopy-12171` that covered `perm.readOnly.artifact.hint`, which `PermissionMatrixEditor` still draws. No table names the organization axis; lit control that it names the environment overlay in every table; lit control that `t()` serves the value the extractor read, for every declared locale. - `PackageFormDialog.newAppStep-36748.test.tsx`: the three `BuilderLanding.newAppDoor-36748` cases, moved onto `PackageFormDialog` with `newApp={newAppStep(client, locale)}`, mounted as the home mounted it (create mode, Studio on the new package after save): the dialog worded for an app in zh; package POST, app draft, app publish, then the Studio header names the app and 「‹ Back to app」 opens it; a taken app name refuses the confirm and writes nothing. - `PackageCustomizationsPanel.test.tsx`: the rows and counts, including the **objectstack-ai#36833 arrangement-only case**; the empty and failed states (never "0"); row and switched-off-action links; tabs, search and Show all; zh words; and the moved rows and labels io. - In the `PackagesPage` administration-face harness, two describes: "the new-package deep link" (3 cases) and "a read-only base's customizations in its detail" (6 cases: a code package draws the section with arrangements counted; an authored package does not; the development face does not; a read-only `.custom` pair draws none and sends no customizations request; a kernel package's detail, opened directly because the admin face lists none, draws none and sends no request; CONTROL, the same direct render of a code package draws it and reads once). - Unreported capability set on the doors: `HomePage.noAgentsBuildChip-26614` renders Home inside the real `MePermissionsProvider` with an authenticated answer that carries no `systemPermissions`; the chip opens Setup's New Package (the fail-open). CONTROL, the same provider with a reported set holding `manage_metadata` alone: the chip opens `/studio/~all/metadata`. - Studio-only author on the doors outside Studio: `SidebarAppMenu-36112` (「New blank app」 links to `/studio/~all/metadata`) and `HomePage.noAgentsBuildChip-26614` (the chip navigates there, never to Setup); `StudioEntryRedirect.test` holds `newPackageDoorPath` to the same two answers. - `SidebarAppMenu-36112` (the shared harness, new top-level describe): with build and ask, the legacy build id, ask only, other agents only, or no agent served, 「Add app」 offers `new-in-studio` ("New blank app", to New Package), the template and the marketplace, and never 「Build with AI」; never empty for an admitted viewer with authoring but no marketplace, or a marketplace but no authoring; CONTROL, with neither the viewer is not admitted; guard, an admitted viewer handed no entries gets no 「Add app」 and no separator. `HomePage.desktopNoApps-36732`: the no-apps doors are `[new-in-studio, template, marketplace]` with the build agent served. - Converted, not deleted: the StudioRoute gate, lazy-module, recent-visit and access-notice pins; `studio:builder` registration (now a forward); `setupMetadataRedirect`; `studioAddress` and its guard (the guard no longer names the deleted `STUDIO_LANDING_PATH`); the Home, sidebar 「Add app」 and `/ai` deep-link hrefs; the vocabulary census; `consoleTopBar.height-12639`; `AppContent.setupMetadataStudio-28578`. <details><summary>Local runs at this round's heads</summary> **Rework 2, objectstack-ai#37169's merge, head `54e4586e`** (after merging `origin/main` `4fb03ebb`, K 9, and `pnpm --filter '@object-ui/console^...' build`, lock VERDICT command-exit 0): - vitest over app-shell `views/studio-design`, `console/home`, `console/ai`, `console/__tests__`, `layout/`, `hooks/`, `PackagesPage*` and `PackageFormDialog*`, plus console `components/`: Test Files 826 passed (826); Tests 6948 passed; lock VERDICT command-exit 0. - type-check `@object-ui/app-shell` (src + `tsconfig.test.json`) and `@object-ui/console`: exit 0. eslint on the two touched test files: exit 0. - Exit 0: check:test-source-alias, check:nul-bytes, check:cross-package-test-inputs, `check-platform-checklist --changed-from origin/main` (11 anchors, 0 lost), and under `ui/` check:i18n-keys, check:i18n-drift, check:unreferenced-sources and the three vi-mock gates. - The full `check:platform-checklist` exits 1 on one finding, and `origin/main` `4fb03ebb` fails the same way: `automation.json` anchors `FlowItemMoreMenu.tsx#FlowItemMoreMenu`, which objectstack-ai#37169 removed. That is main's to fix, not this PR's. **Rework 2 (delta L1 S1, N4, N5), head `cf77ecb9`** (after merging `origin/main` `4ed453dc`, K 12, clean, and `pnpm --filter '@object-ui/app-shell^...' build`, lock VERDICT command-exit 0): - vitest over `console/home`, `console/ai`, `RequireAiSurface`, `AppContent.setupMetadataStudio-28578`, `setupMetadataRedirect.test`, `PackageCustomizationsPanel.test`, `StudioEntryRedirect.test`, `SidebarAppMenu-36112` and `hooks/`: Test Files 210 passed (210); Tests 1827 passed; lock VERDICT command-exit 0. - Mutation through `scripts/ablation-replace.mjs`: `useNewPackageDoorPath` made to fail closed (`Array.isArray(systemPermissions) && hasCapabilities(…)`) → `HomePage.noAgentsBuildChip-26614` 4 failed / 12: the new unreported case, plus the three no-agent cases whose stub leaves `systemPermissions` undefined; the reported-set control stayed green. Restored to the HEAD blob, `git diff HEAD` empty. - type-check `@object-ui/app-shell` (src + `tsconfig.test.json`): lock VERDICT command-exit 0. eslint `--no-inline-config` on the 4 touched ui files: exit 0. - Exit 0: check:platform-checklist, `check-platform-checklist --changed-from origin/main` (4 anchored files, 11 anchors, 0 lost), check:test-source-alias, check:nul-bytes, check:cross-package-test-inputs, check:issue-citations, and under `ui/` check:i18n-keys, check:vi-mock-specifiers, check:vi-mock-inherit, check:vi-mock-override-shape. `git grep -n "Studio landing" docs/qa/platform-checklist/areas`: history entries only, plus `studio-authoring.json:35` and `:2290`, already stale on main (the studio-home button). - overlap-check: exit 1, only for objectstack-ai#37249 and objectstack-ai#37169 (objectstack-ai#37169 has since landed; see Overlaps). **Third part (seat answers to N1 and N3, then objectstack-ai#37241's and objectstack-ai#37168's merges), final head `1c7f29cc`:** - After merging main with objectstack-ai#37241 and objectstack-ai#37168 (`2ae0823f`) and rebuilding (VERDICT command-exit 0): `views/studio-design`, `layout/`, `console/docs`, `console/home`, `console/ai`, `console/__tests__`, `hooks/`, `PackagesPage*`, `PackageFormDialog*`, `PermissionMatrixEditor*`, console `components/` and `pages/`, `packages/i18n/src/__tests__`: Test Files 1162 passed (1162); Tests 10870 passed, 13 skipped; VERDICT command-exit 0. type-check `@object-ui/i18n`, `@object-ui/app-shell`, `@object-ui/console`: VERDICT command-exit 0. Exit 0 at this head: check:test-source-alias, check:nul-bytes, check:cross-package-test-inputs, check:i18n-stale-fill, check:keyed-text-bounds, check:platform-checklist, check:issue-citations, check-changeset-no-major, check-empty-changeset, check-adr-0087-registration, `check-platform-checklist --changed-from origin/main`, and under `ui/` check:i18n-keys, check:i18n-drift, check:unreferenced-sources, check:phantom-deps, check:vi-mock-specifiers, check:vi-mock-inherit, check:vi-mock-override-shape. - After a fresh closure build (VERDICT command-exit 0): `layout/`, `console/home`, `console/ai`, `RequireAiSurface`, `hooks/`, `StudioEntryRedirect*`, `notFound-26708`, console `StudioRoute*`: Test Files 376 passed (376); Tests 3153 passed; VERDICT command-exit 0. - Mutation through `scripts/ablation-replace.mjs`: `useNewPackageDoorPath` forced to the Setup path (`true || hasCapabilities(…)`) → 2 failed / 43, exactly the two Studio-only door cases; restored to the HEAD blob, `git diff HEAD` empty. - type-check `@object-ui/app-shell` and `@object-ui/console`: VERDICT command-exit 0. eslint on the 7 touched files: 0 errors. Exit 0: check:test-source-alias, check:nul-bytes, check:cross-package-test-inputs, and under `ui/` check:i18n-keys, check:i18n-drift, check:unreferenced-sources, check:phantom-deps, check:vi-mock-specifiers, check:vi-mock-inherit, check:vi-mock-override-shape. **Second part of the round (the 「Add app」 rulings, then three main merges), head `64e7071b`:** - At `048a5a84` (rulings + first merge): `layout/`, `console/home`, `console/ai`, `RequireAiSurface`, `hooks/`, `packages/i18n/src`, `PackageCustomizationsPanel`, console `StudioRoute*`: Test Files 486 passed (486); Tests 5161 passed, 13 skipped; lock VERDICT command-exit 0. - At `fe78cd2b` (after objectstack-ai#37185's merge), the overlap: `views/studio-design`, `layout/`, `console/home`, `console/ai`, `console/__tests__`, `PackagesPage*`, `PackageFormDialog*`, `PermissionMatrixEditor*`, `sameServerFetch*` (objectstack-ai#37185's ratchet), `apps/console/src/components`, `packages/i18n/src`: Test Files 1 failed, 888 passed (889); Tests 2 failed, 8291 passed. The failures were two cases of `layout/__tests__/designModeMenuSave-36363`, a file this branch does not touch; run alone it read 47 passed (47), and it passed again in the run below, so it was load in the big run. - At `45e4a5eb` (after objectstack-ai#37204's merge and a rebuild): `apps/console/src/components`, `layout/`, `console/home`, `console/ai`, `RequireAiSurface`, `packages/i18n/src/__tests__`: Test Files 436 passed (436); Tests 4837 passed, 13 skipped; lock VERDICT command-exit 0. (A first attempt at this run hit a 590 s cap before its verdict and is not counted.) - Mutation checks through `scripts/ablation-replace.mjs` (blob moved, restored to the HEAD blob, `git diff HEAD` empty): the hook's entry key back to `build-with-ai` → `SidebarAppMenu-36112` 7 failed / 32; the empty-list guard removed (`offerAddApp = mayAddApp`) → 1 failed / 32, the guard case. - CI on `45e4a5eb` failed `Type Check UI` at `check:i18n-keys`: Home's chip kept `defaultValue: 'New in Studio'` against the new en value. Fixed at `64e7071b` with the chip's default and the eight packs (`check:i18n-drift`); locally at `64e7071b`, exit 0: `check:i18n-keys`, `check:i18n-drift`, and the job's other static steps (`check:phantom-deps`, `check:self-import`, `check:unreferenced-sources`, `check:doc-example-readers`, `check:side-effects-array`, `check:spec-symbols`, `check:icon-record-names`, `check:designer-field-key-parity`, `check:action-forward-parity`, `check:esm-specifiers`, `check:handler-key-reads`, `check:metadata-write-doors`, `check:control-bytes`, `check:shell-escape-residue`, `check:vi-mock-specifiers`, `check:vi-mock-inherit`, `check:vi-mock-override-shape`, `check:test-path-roots`, `check:prompt-keys`), plus `check:keyed-text-bounds` and `check:i18n-stale-fill`. Vitest over `packages/i18n/src`, `console/home`, `console/ai`, `RequireAiSurface`, `SidebarAppMenu-36112`: Test Files 213 passed (213), Tests 2745 passed, 13 skipped, lock VERDICT command-exit 0. - type-check at `45e4a5eb` after `pnpm --filter '@object-ui/console^...' build` (VERDICT command-exit 0): `@object-ui/i18n`, `@object-ui/app-shell` (src + `tsconfig.test.json`), `@object-ui/console` passed, VERDICT command-exit 0. eslint `--no-inline-config` on this part's 6 ui files: 0 errors. - Gates at `45e4a5eb`, all 0: check:test-source-alias, check:nul-bytes, check:cross-package-test-inputs, check:i18n-stale-fill, check:keyed-text-bounds, check:platform-checklist, check:issue-citations, check-changeset-no-major, check-empty-changeset, check-adr-0087-registration, `check-platform-checklist --changed-from origin/main` (11 anchors, 0 lost). `pnpm --filter @object-ui/i18n gen:zh-hant` after the merges: every target already current. - 18.6.0 studio-namespace comparison at `fe78cd2b`, unchanged: 71/71 published landing keys present in `en` and `zh`; 35 missing, all already missing on main; 0 values changed vs main, 4 never-released keys removed, 38 added. **First part of the round (L1 and contract-review fixes):** - Targeted vitest at `4121473e` (after the first main merge, K 26), one locked run over `apps/console/src`, `packages/i18n/src`, `views/studio-design`, `metadata-admin/PackagesPage*`, `PackageFormDialog*`, `PermissionMatrixEditor*`, `console/__tests__/AppContent*`, `console/home/__tests__/HomePage*` and `layout/`: Test Files 1 failed, 1050 passed (1051); Tests 1 failed, 10456 passed, 13 skipped. The failure was the moved new-app pin's own harness (it navigated to the bare package path, which only the console route table expands); fixed at `4121473e` by landing on the package's Studio home as the removed home did, then 3 passed (3). - After the second main merge (`df4a65cb`) and the guard fix (`329ddefc`), the overlap re-run under the lock: `views/studio-design`, `apps/console/src/components`, `PackagesPage*`, `PackageFormDialog*`, `PermissionMatrixEditor*`, `packages/i18n/src`, `consoleTopBar*`, `AppContent*`: Test Files 594 passed (594); Tests 6016 passed, 13 skipped; lock VERDICT command-exit 0. - Mutation checks, each through `scripts/ablation-replace.mjs` (anchor 1 → 0, blob verified moved, restored to the HEAD blob with `git diff HEAD` empty), at `4121473e`: - 「组织」 written into the zh `perm.readOnly.artifact.hint`: `PermissionMatrixEditor.readOnlyHintCopy-12171` 1 failed / 3 ("no table names the organization axis"). - `!isKernel` removed from the detail gate (`PackagesPage.tsx:1271`): 1 failed / 6, the kernel case only. - `!isCustomizationPackage(id)` removed: 1 failed / 6, the `.custom` pair case only. - The bookmark forward reverted to `SETUP_NEW_PACKAGE_PATH`: `StudioEntryRedirect.test` 1 failed / 11, the Studio-only bookmark case. - The not-found exit reverted to `SETUP_PACKAGES_PATH`: `notFound-26708` 1 failed / 14, the Studio-only case. No dist leg was needed: these tests import app-shell by relative path, and the ui vitest config aliases `@object-ui/i18n` to its `src`. - type-check at `329ddefc` after `pnpm --filter '@object-ui/console^...' build` (lock VERDICT command-exit 0): `@object-ui/i18n`, `@object-ui/app-shell` (src and `tsconfig.test.json`, which lists all six new or changed test files) and `@object-ui/console` passed, lock VERDICT command-exit 0. - eslint `--no-inline-config` on this round's 11 changed ui files: 0 errors, 15 warnings. - Gates at `329ddefc`, exit captured before any pipe, all 0: check:test-source-alias, check:nul-bytes, check:cross-package-test-inputs, check:i18n-stale-fill, check:keyed-text-bounds, check:platform-checklist, `check-platform-checklist --changed-from origin/main` (11 anchors, 0 lost). At `4121473e`, also 0: check:issue-citations, check:doc-authoring, check:gitlink-declared, check-changeset-no-major, check-empty-changeset, check-adr-0087-registration (2 non-breaking changesets), check-closing-keyword-parity, check:changeset-gate-self-tests, and the edited `ui/scripts/check-eager-closure-budget.mjs`'s tests (6 files, 305 passed). `check:i18n`: PREREQUISITE NOT MET locally (the CLI build closure is not built); it reads the platform translation bundles, which this round does not touch; its evidence is CI. `dispatch-gates --ran`: 57 of 74 derived families not run locally, declared; their evidence is this head's check-runs. - **i18n against the published `@object-ui/i18n@18.6.0`** (`npm pack`, read by AST, nothing evaluated), on the merged tree: all 71 published `engine.studio.landing*` keys are present in `en` and `zh`; 35 published keys are missing at this head and all 35 are already missing on `origin/main`; against `origin/main` this PR changes 0 values, removes exactly the four never-released keys, and adds 38 per language (`engine.packages.customizations.*`, `engine.studio.notFound.packageList`, `engine.studio.notFound.allMetadata`). </details> ## Acceptance notes - The environment-wide list the home drew across all installed apps (one list, a total, grouped by app) is now shown per app only, in each read-only base's detail in Setup → Packages. - "Customized" now has two meanings. The Setup detail counts tab, field-group and action-layout arrangements with overrides and extensions; the All metadata header still draws `customizationTotal` (overrides + extensions, `customizationMarks.ts:96-97`, drawn at `DirectoryPage.tsx:246-249`), and the same total gates the list filters in `ResourceListPage` and `useListOrderedNames`. Not aligned here: adding arrangements to that total would stop the header equalling the sum of its per-type tiles and change which lists offer the customized filter. Not aligned here (seat answer A): follow-up card filed: objectstack-ai#37236. objectstack-ai#37236 has since been ruled B (7158100447): 「已定制」 stays overrides + extensions, and the Setup detail's count changes there to match. Until it lands, the Setup detail counts arrangements as described here. - The new-package doors outside Studio (Home's no-agent chip, the `/ai` screen's door, 「Add app」's 「New blank app」 and with it the no-apps screen) make the same choice as Studio's entry, through `useNewPackageDoorPath` (seat answer to N1): Setup's New Package for a holder of `setup.access` + `manage_platform_settings`, the All metadata area for an author who may enter Studio but not open that page. They sit outside the entry gate's provider, where `useStudioEntryPermissions` holds nothing, so they read the session's own `usePermissions().hasCapabilities`, which fails open on an unreported set as the doors' own authoring gate does (the Setup app still refuses a non-holder). That is the doors' doctrine, judged A in contract review 7162083002 ④: the door is only a link, and the server still refuses a package create without `manage_metadata` (`package-routes.ts:102-106`). Pinned by the unreported-set case in `HomePage.noAgentsBuildChip-26614` (the real `MePermissionsProvider`, no `systemPermissions`, the chip opens Setup's New Package; control: a reported set without the pair opens `/studio/~all/metadata`). - A Studio-only author (`studio.access` + `manage_metadata`, without the Setup pair) has no screen that creates a package at this head: 「New blank app」 opens All metadata, which has no New Package, where on main the same door opened the dialog inside Studio. The server still admits the create. This follows ruling N1 (a), and waits for objectstack-ai#37134 / objectstack-ai#37139. - Two console test files pinned only the home's frame and are deleted: `StudioRoute.landingI18n.test.tsx` (its header crumb) and `StudioRoute.searchPalette-11863.test.tsx` (⌘K on the home; ⌘K inside Studio is objectstack-ai#36900). The other StudioRoute pins now stub the entry. - Duplicate pins named for deleted tests (AGENTS.md, ruling 6120820653): the new-package deep link is pinned in the `PackagesPage` admin harness; the customization counts, rows and labels in `PackageCustomizationsPanel.test.tsx`; the org-scope entry by `StudioDesignSurface.packageLessFlows-11553` and the menu pins from objectstack-ai#36899; the permission hint copy and the new-app step moved, above. The home's own layout, ordering, Duplicate form, recent cards and Manage pins have no remaining surface to pin. - Possibly orphaned now that the frame is gone, not removed here: `AppHeader` `variant="studio"` and `CommandPalette` `scope="studio"` (objectstack-ai#36900 may reuse the scope). - 「Build with AI」 is gone from the 「Add app」 menu and the no-apps screen (ruling 7153161067). Home's 「Build an app」 chip still targets bare `/studio`, and Home's own 「Build with AI」 drawer button is untouched; objectstack-ai#37227 / objectstack-ai#37249 removes both from Home. - The kept-unread released studio keys stay as they are this round (the seat made dropping them optional under the 19.0.0 ruling); `home.buildWithAI` is still read by Home and is untouched. - Recents are read local-first, and the server copy arrives after first render (`RecentItemsProvider`). On a device with no local copy, `/studio` falls back before that copy arrives; "opens the package you were last in" holds on a device that already has it. - The 68 published landing keys are kept and unread. `check-i18n-dead-keys` (report-only, not in CI) will list them as candidates, and a later change can decide to retire them. - `docs/qa/platform-checklist/FOLLOW-UPS.md` still names `BuilderLanding` in a dated follow-up entry; it is a log and was left as written. ## Verification Walked on a live stack at `a21c7b6f` (the previous head). Server: `pnpm -C examples/app-showcase exec objectstack dev --seed-admin -p 4710` (CLI and showcase closure built in a worktree). Console: this branch's `ui/apps/console` under Vite on 4711, proxied to it. Signed in as the seeded admin and driven with Playwright; key screens confirmed by screenshot. | Entry | Observed | |:---|:---| | `/studio`, nothing remembered | → `/apps/com.objectstack.setup/component/developer/packages?face=admin` | | `/studio?new=package` (old bookmark) | → same page, `new=package` dropped, New Package dialog open | | `/apps/setup/component/automation/packaged-actions` (no package) | → Setup → Packages (admin face) | | `/studio/no_such_pkg_36908` | 「Package not found…」 with 「Open the package list」 → Setup → Packages | | ObjectStack Showcase (code) row → detail | "Customizations in this environment", "No changes in this environment yet", Customize in Studio → `/studio/com.example.showcase/data` | | `/studio` after visiting that package | → back into `/studio/com.example.showcase/data…` (remembered) | | Sidebar app menu → 「Add app」 | New in Studio (the label at `a21c7b6f`; 「New blank app」 now) → `…packages?face=admin&new=package`; clicked, it lands there with the dialog open | | `/ai` (no assistant on this stack) | 「New in Studio」 (the label at `a21c7b6f`; 「New blank app」 now) → `…packages?face=admin&new=package` | | New Package dialog → Create package | → `/studio/com.default.walk-pkg-36908/data` | | That authored package's detail | no customizations section (count 0); Open in Studio present | | `/studio/~all/metadata` | renders the All Metadata Types area | Not walked live, each pinned by unit tests: - Home's 「New blank app」 chip (「New in Studio」 at `a21c7b6f`): its condition does not hold on this seeded stack (`HomePage.noAgentsBuildChip-26614`, `HomePage.desktopNoApps-36732`). - A non-administrator's landings (bare `/studio`, the old bookmark and the not-found button for a Studio-only principal): no such principal is seeded (`StudioEntryRedirect.test.tsx`, `StudioDesignSurface.notFound-26708`); their target `~all` renders above. - `studio:builder`: the `@objectstack/studio` app does not load on a stock boot (`registerStudioComponents.builderLazy-11798`). This round's changes were not walked live: the Studio-only exits, the moved pins and the changesets change no administrator-visible entry above; the 「Add app」 menu's new contents (no 「Build with AI」, 「New blank app」 always) and the relabel are pinned in `SidebarAppMenu-36112` and `HomePage.desktopNoApps-36732`. --- _Generated by [Claude Code](https://claude.ai/code/session_01QSeKYkEULEjF814KSPBLVC)_ <!-- signed: repo:objectstack#4 · os-justin · session_01QSeKYkkwuF6UuFtu85Yd5H --> --------- Co-authored-by: Claude <noreply@anthropic.com>
repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW
Fixes #37197
Part of #37150 — this PR carries its last open item (item 2, the standalone
/docsportal's frame, ruled B in #37150 comment 7151721568); items 1, 3 and 4 landed in #37193.Clause-②: no
Metadata-protocol: none
维护者速读
What changes
From 768 px up,
/docs…now renders in an app-less variant of the app shell, as designed in stage 1 and approved on #37197 (comment 7153085446, the maintainer: 「5 处都按建议,批准设计」).DocsPortalShell(ui/packages/app-shell/src/console/docs/, exported from@object-ui/app-shell): on a phone it isHomeLayout variant="docs", unchanged; from 768 px up it mounts the realAppShellwithshowHeader={false},UnifiedSidebarin a newdocsPortalmode, the docs-navigation slot from feat(console): an app's docs pages draw in the app shell from 768 px up #37193, the page header's group and expand button (ShellPageActionsScope sidebarExpand appless), Home's AI drawer and Home's command palette (HomeCommandPalette, now exported fromHomeLayout). LikeConsoleLayout, it draws a non-shrinking box at the top of the content holdingChromeBannerHostandConnectionBanner, so the standing banners (impersonation, read rate, storage) and a lost-connection notice sit beside the fixed sidebar instead of over its head (seat L1 S2). The connection state comes from the data adapter, asAppContentreads it. It sets the navigation context tohome, as Home's frame does, and never sets the current app, remembers a last app or applies an app's branding.UnifiedSidebardocsPortal(+docsPortalSearch): the shell head and foot as in an app, a neutral 「Documentation」 head (SidebarDocsPortalMenu) instead of the app's name menu, and the docs-navigation target as the body. The search field is drawn only when a palette is mounted (Home's palette needs a host app).SidebarDocsPortalMenu(inSidebarAppMenu.tsx): the app menu's list, extracted intoAppMenuListand shared by both menus, under 「Your apps」, with no row checked and no app-scoped row (「Design layout」, 「Edit app」), plus 「Add app」 for the viewers who may build. Choosing an app opens/apps/APP.ShellPageActionsScope appless: the page header's group without an app: the assistant, andHelpMenu inApp={false}with no app package. Without it the group resolves the app from the navigation context or the URL's second segment, which on the portal would be the last app or a book slug.PortalDocsNav(consoleDocsNav.tsx): every book the portal's index lists, under its app's heading, in the index's order (groupBooksByApp, the index's own grouping). Each book is named by its index card's label, so an implicit platform book reads as its app does (「系统设置」), not as its package id's last segment (「Setup」).DocShellandDocPagehand it to the sidebar on/docs….DocsNavdraws it as the first docs entry, marked current on the portal index. In an app's docs reader and inAppDocsNavit sits directly under 「← Back to APP」 and above the filter and the books; on the portal, which has no back link, it is the column's first row. The phone guard is the slot itself: a phone mounts no docs sidebar, so the column the page draws keeps the link at its foot, unchanged..changeset/37150-docs-pages-in-app-shell.md(seat ruling on feat(console): the docs portal draws in an app-less variant of the app shell from 768 px up #37241). One sentence. It was "The/docsportal is not changed by this release." and now reads "The/docsportal draws in the same frame from 768 px up too, in a variant that belongs to no app (its own entry describes it)."check-empty-changesetis red on this by design; the dispatching seat's record confirms it.content/docs/frontend/app-shell.mdx: the stale line "the app bar … on an app's docs pages, which mount no sidebar" is corrected. An app's docs pages draw the shell from 768 px up, and the portal draws the same frame with a neutral head.App.tsx:DocsPortalRoutemountsDocsPortalShellin place ofDefaultHomeLayout variant="docs". No route, redirect or URL changes.Files to read first, by risk:
ui/packages/app-shell/src/console/docs/DocsPortalShell.tsx: the variant switch, and what it does not write.ui/packages/app-shell/src/layout/UnifiedSidebar.tsx: thedocsPortalhunks (shellChrome, the head, the body condition,hasCommandPalette).ui/apps/console/src/pages/DocsNav.tsx:inSidebar(the first-row move and its phone guard), andPortalDocsNav's labels.Tests
DocsPortalShell-37197.test.tsx: realDocsPortalShell,AppShell,ShellPageActionsScope, docs slot andNavigationProvider./docs,/docs/crmand/docs/crm/crm_introat 768 and 1440 px: noheaderelement, the sidebar indocsPortalmode with noactiveAppName, the page's tree drawn in the sidebar. PHONE CONTROL for each path at 390 px: Home's docs frame, no sidebar.home, no current app, and no last-app key is in storage; that storage check carries the pin. TherememberAppspy is only a tripwire for a future frame that would remember an app. After an app was open, on a package-named path, the head names no app, the help menu getsinApp=falseand no package, and the current app stays as it was.branding.primaryColorwas open, with--primary/--accentleft on the root, the portal's root carries neither. Phone control.ConsoleShelldoes) is drawn exactly once, inside the portal's banner box at the top of the content. A disconnected adapter shows the connection notice in that box; a connected one shows none. PHONE CONTROL: the banner stays where the shell mounts it, drawn once, with no box and no notice.docs-portal.test.tsx, new blockobjectstack#37197: the portal tree in the shell (first row,aria-currenton the index, sections in the index's order, no back link, no in-page column). A book open in the tree with the article current. The label fix (an app labelledSystem settings, so not 「Setup」). Every portal URL form in the shell: index, SLUG, book NAME, NAME/DOC, doc-name-is-also-a-book-name, canonical SLUG/DOC, implicit package book, slug-that-is-another-book's-name. In an app's reader and docs index, 「All documentation」 is the first docs row: the back link stays the column's top row, and 「All documentation」 precedes the filter and the first book. PHONE CONTROL: the in-page column of the portal and of an app keeps it last.SidebarAppMenu-36112, new block: the portal head reads 「Documentation」, lists the apps under 「Your apps」 with none checked, opens any app by its address, gives 「Add app」 to an admin who may author and no app-scoped row; member control.UnifiedSidebar.footerSlot-36739, new block: in Home's context with a remembered app,docsPortaldraws the portal head (not the app's), the page's tree as the body and the account foot; no search field without a palette; control withoutdocsPortal.ConsoleLayout.noTopBar-36112: a docs route withconnectionState: 'disconnected'showsConnectionBannerin the banners box at 1440 px. A collapsed docs route draws the expand button in the docs header (aDocShellstand-in that reads the shell's expand slot) and no corner fallback. Each has a phone control.Ablations, each via
scripts/ablation-replace.mjs: anchor 1 to 0 on disk, restored blob equal to HEAD,git diff HEADempty. The tests importsrc, so there is nodistleg.DocsPortalShellif (phone) {changed toif (phone || true) {:Tests 7 failed | 4 passed (11). Every desktop pin went red; the four phone controls stayed green.DocsNavinSidebarforced false:Tests 4 failed | 76 passed (80). The two portal-tree tests and the two app-sidebar tests went red; the PHONE CONTROL stayed green. Re-run after the reorder, at2961b4a9: the same 4 red, PHONE CONTROL green, restored blob == HEAD.{ ...resolved, label: card.label }changed toresolved: the label test went red (1 failed).applessremoved from the scope: the no-guessed-app help test went red (1 failed | 10 passed).AppShellhanded the host app'sbranding(anchornavbar={null}replaced):Tests 1 failed | 15 passed (16), the default-accent pin red, its phone control green. A first attempt put the anchor inside its own replacement; the tool refused it ("a drop of 0") and restored the file, so it measured nothing and was re-run.ChromeBannerHostdeleted:1 failed | 15 passed (16), the 1440 banner pin red.ConnectionBannerdeleted:1 failed | 15 passed (16), the notice pin red. The PHONE CONTROL stayed green in both.Local runs. Each ran under
os-verify-lockwith--maxWorkers=2; every one reportsVERDICT command-exit 0unless it says otherwise.Test readings
95a165e3, before the main merge, the five touched or new suites with--reporter=verbose(every new block listed):Test Files 5 passed (5) / Tests 140 passed (140).origin/main(0a1b69c0), the closure was rebuilt (turbo run build --filter='@object-ui/console^...',Tasks: 75 successful, 75 total). Then a NARROWED suite ran at1ffad1a4: 186 files, every app-shell and console test namingConsoleLayout,UnifiedSidebar,SidebarAppMenu,ShellPageActions,HomeLayout,DocsPortalShell,sidebarDocsNavSlot,DocsNav,DocShellorDocPage, plus every consolepages/test. Result:Test Files 3 failed | 183 passed (186) / Tests 3 failed | 1680 passed (1683). The three reds were tests that count what this change adds:App.docsPortalLazystubbed the old portal frame but not the new one, so the real shell's bell and agent reads escaped to the network;expressionUser.mountSites.ratchetcounts expression mount sites, andDocsPortalShellis a new one;unsavedEditsLeave.census-13253countsUnifiedSidebar'sonAppChangereads, and the portal head's wrapped read is a new one.All three were fixed in
7977d28b, which changes tests only, and re-run:Test Files 3 passed (3) / Tests 12 passed (12).Test UIruns them.type-checkfor@object-ui/app-shelland@object-ui/consoleat1ffad1a4:VERDICT command-exit 0(the later commit changes tests that the same programs compile). Lint on the changed files: 0 errors, and no new warning after typing the shared list's props.Rework 2 readings at fecd4e2 (seat L1 7155677032: S1 accent pin, S2 banner host, S3 + N1 note wording, N2)
Tasks: 75 successful, 75 total). ThenDocsPortalShell-37197,ConsoleLayout.noTopBar-36112,App.docsPortalLazyandexpressionUser.mountSites.ratchetran:Test Files 4 passed (4) / Tests 31 passed (31),VERDICT command-exit 0.type-checkfor app-shell and console ate78f292d:VERDICT command-exit 0. For app-shell again atfecd4e23, after the hook was moved touseSyncExternalStore: exit 0.react-hooks/set-state-in-effect; that is why it was rewritten./organizationsand Home's no-product-app state still draw one. N1: search is described "when there is an app to search". The note also names the standing notices at the top of the page's content.app-shell.mdxneeded no edit: its portal sentence ("draws the same frame there", the content area carrying the standing banners) is now true at this head.fecd4e23is unchanged (71). Of the 70 light ones, 68 exited 0 at once.check:skill-examplesexited 3 (client-reactwas not built in the fresh worktree); after building it, exit 0.check-empty-changesetexited 1: the DELIBERATE CORRECTION, confirmed by the seat's contract review. uivitest run scripts/:Test Files 172 passed | 2 skipped (174).--ran:71 derived, 71 run, 0 NOT-MEASURED (a DERIVED zero). overlap-check: clean againstmain, feat(studio): remove the Studio home; /studio opens the last package or Setup > Packages #37166, feat(studio): the object designer opens full-screen on its metadata address, tabs in #36513's order #37168 and feat(studio): the flow designer opens full-screen on its metadata address; no flow rail (#36903) #37169, and exit 1 against chore: version packages (next) #35129 only (accepted); the push was gated on that.Rework readings at 2961b4a (seat ruling: order, changeset, app-shell doc)
Tasks: 75 successful, 75 total, 74 cached). Thenapps/console/src/pages/,packages/app-shell/src/console/docs/,UnifiedSidebar.footerSlot-36739,SidebarAppMenu-36112andConsoleLayout.noTopBar-36112ran:Test Files 177 passed (177) / Tests 1656 passed (1656),VERDICT command-exit 0.dispatch-gates --commandsat2961b4a9derived 71 commands (the changeset and the doc add the docs families). Of the 70 light ones, 68 exited 0 at once.check:skill-examplesexited 3: it refused for a missing@objectstack/client-reactbuild. After building that package it ran with exit 0 (350 prose examples type-check).check-empty-changesetexited 1: the DELIBERATE CORRECTION above, red by design.pnpm --dir ui exec vitest run scripts/:Test Files 172 passed | 2 skipped (174).--ran:71 derived, 71 run, 0 NOT-MEASURED (a DERIVED zero — all 71 recorded an exit code and none of them is 3).Acceptance notes
deviceScaleFactor2, this branch's Console on Vite. They were committed at672b06ddand removed in the next commit, so the PR's file list carries no binaries:headerelement is the index's own title block, not a bar.headerelement on the page.2961b4a9and committed at0b9b8280.AppDocsNavcolumn, with the same order. Re-captured too.usePackageDocsNavBooks) still read the book's own label. For an implicit book of an app's own package that is the humanized package id. The approved scope was the portal tree, so this is noted, not changed.overlap-checkreports exit 1 against chore: version packages (next) #35129, the bot-maintained Version Packages PR (chore: version packages). That PR deletes every pending changeset, so the DELIBERATE CORRECTION above meets it as a modify/delete conflict on.changeset/37150-docs-pages-in-app-shell.md. Nothing was resolved by hand.origin/mainand every sister PR (feat(studio): remove the Studio home; /studio opens the last package or Setup > Packages #37166, feat(studio): the object designer opens full-screen on its metadata address, tabs in #36513's order #37168, feat(studio): the flow designer opens full-screen on its metadata address; no flow rail (#36903) #37169) merge cleanly.Verification
Two-minute check: run
pnpm --dir ui exec vitest run packages/app-shell/src/console/docs/__tests__/DocsPortalShell-37197.test.tsx. Expected: 16 passed, among them three per-path desktop pins and five PHONE CONTROLs. Or open/docsat 1440 px: no top bar, a 「文档」 head, and 「全部文档」 first in the sidebar.Gate readings
dispatch-gates --commands(objectstack-ai/objectstack, 16 paths against merge base93bd45957; the list is unchanged at the final head) derived 38 commands. 37 ran ate4db1f12, andpnpm --dir ui exec vitest run scripts/ran under the lock ateea1765f:Test Files 172 passed | 2 skipped (174). All exited 0 exceptcheck:test-source-alias. It asked for the palette's lazy@object-ui/plugin-detailload to be paid at collection in the new suite; fixed in1ffad1a4and green since.--ranreconciliation:38 derived, 38 run, 0 NOT-MEASURED (a DERIVED zero — all 38 recorded an exit code and none of them is 3).7977d28b, these re-ran and exited 0:check:test-source-alias,check:cross-package-test-inputs,check:nul-bytes,check:type-check-debt,check:tier-file-adoption,check-empty-changeset,check-changeset-no-major, and underui/check:new-line-citations(0 new citation(s)).overlap-checkbefore every push:VERDICT clean exit 0.origin/mainmerges cleanly, as do feat(studio): remove the Studio home; /studio opens the last package or Setup > Packages #37166, feat(studio): the object designer opens full-screen on its metadata address, tabs in #36513's order #37168 and feat(studio): the flow designer opens full-screen on its metadata address; no flow rail (#36903) #37169, which shareapp-shell/src/index.tsorSidebarAppMenu-36112.test.tsx.fecd4e23: 21 files, +1323 / -152. No governed path.Generated by Claude Code