Skip to content

feat(console): the docs portal draws in an app-less variant of the app shell from 768 px up - #37241

Merged
objectstack-fleet[bot] merged 13 commits into
mainfrom
claude/issue-37197-docs-shell
Nov 25, 2026
Merged

objectstack-fleet[bot] merged 13 commits into
mainfrom
claude/issue-37197-docs-shell

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW

Fixes #37197
Part of #37150 — this PR carries its last open item (item 2, the standalone /docs portal'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 处都按建议,批准设计」).

  • New DocsPortalShell (ui/packages/app-shell/src/console/docs/, exported from @object-ui/app-shell): on a phone it is HomeLayout variant="docs", unchanged; from 768 px up it mounts the real AppShell with showHeader={false}, UnifiedSidebar in a new docsPortal mode, 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 from HomeLayout). Like ConsoleLayout, it draws a non-shrinking box at the top of the content holding ChromeBannerHost and ConnectionBanner, 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, as AppContent reads it. It sets the navigation context to home, as Home's frame does, and never sets the current app, remembers a last app or applies an app's branding.
  • UnifiedSidebar docsPortal (+ 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 (in SidebarAppMenu.tsx): the app menu's list, extracted into AppMenuList and 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, and HelpMenu 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 (console DocsNav.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」). DocShell and DocPage hand it to the sidebar on /docs….
  • 「All documentation」 the first docs row in both docs sidebars (seat ruling on feat(console): the docs portal draws in an app-less variant of the app shell from 768 px up #37241: the back link is shell navigation, not a docs row): whenever the column is in the shell sidebar, DocsNav draws it as the first docs entry, marked current on the portal index. In an app's docs reader and in AppDocsNav it 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.
  • DELIBERATE CORRECTION of feat(console): an app's docs pages draw in the app shell from 768 px up #37193's pending changeset .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 /docs portal is not changed by this release." and now reads "The /docs portal 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-changeset is 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: DocsPortalRoute mounts DocsPortalShell in place of DefaultHomeLayout variant="docs". No route, redirect or URL changes.

Files to read first, by risk:

  1. ui/packages/app-shell/src/console/docs/DocsPortalShell.tsx: the variant switch, and what it does not write.
  2. ui/packages/app-shell/src/layout/UnifiedSidebar.tsx: the docsPortal hunks (shellChrome, the head, the body condition, hasCommandPalette).
  3. ui/apps/console/src/pages/DocsNav.tsx: inSidebar (the first-row move and its phone guard), and PortalDocsNav's labels.

Tests

  • New DocsPortalShell-37197.test.tsx: real DocsPortalShell, AppShell, ShellPageActionsScope, docs slot and NavigationProvider.
    • /docs, /docs/crm and /docs/crm/crm_intro at 768 and 1440 px: no header element, the sidebar in docsPortal mode with no activeAppName, the page's tree drawn in the sidebar. PHONE CONTROL for each path at 390 px: Home's docs frame, no sidebar.
    • No app guessed: opened cold (1440 and 390), the context is home, no current app, and no last-app key is in storage; that storage check carries the pin. The rememberApp spy 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 gets inApp=false and no package, and the current app stays as it was.
    • The app-less group, and the collapsed expand button in the docs header with no corner fallback; phone control.
    • Design point 5, the default accent (seat L1 S1): after an app whose branding.primaryColor was open, with --primary/--accent left on the root, the portal's root carries neither. Phone control.
    • The banners (seat L1 S2): at 1440 px a standing banner mounted above the routes (as ConsoleShell does) 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 block objectstack#37197: the portal tree in the shell (first row, aria-current on 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 labelled System 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, docsPortal draws 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 without docsPortal.
  • feat(console): an app's docs pages draw in the app shell from 768 px up #37193's N1, in ConsoleLayout.noTopBar-36112: a docs route with connectionState: 'disconnected' shows ConnectionBanner in the banners box at 1440 px. A collapsed docs route draws the expand button in the docs header (a DocShell stand-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 HEAD empty. The tests import src, so there is no dist leg.

  1. The variant switch, DocsPortalShell if (phone) { changed to if (phone || true) {: Tests 7 failed | 4 passed (11). Every desktop pin went red; the four phone controls stayed green.
  2. The first-row switch, DocsNav inSidebar forced 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, at 2961b4a9: the same 4 red, PHONE CONTROL green, restored blob == HEAD.
  3. The label fix, { ...resolved, label: card.label } changed to resolved: the label test went red (1 failed).
  4. The app-less group, appless removed from the scope: the no-guessed-app help test went red (1 failed | 10 passed).
  5. S1, AppShell handed the host app's branding (anchor navbar={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.
  6. S2, ChromeBannerHost deleted: 1 failed | 15 passed (16), the 1440 banner pin red. ConnectionBanner deleted: 1 failed | 15 passed (16), the notice pin red. The PHONE CONTROL stayed green in both.

Local runs. Each ran under os-verify-lock with --maxWorkers=2; every one reports VERDICT command-exit 0 unless it says otherwise.

Test readings
  • At 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).
  • After merging origin/main (0a1b69c0), the closure was rebuilt (turbo run build --filter='@object-ui/console^...', Tasks: 75 successful, 75 total). Then a NARROWED suite ran at 1ffad1a4: 186 files, every app-shell and console test naming ConsoleLayout, UnifiedSidebar, SidebarAppMenu, ShellPageActions, HomeLayout, DocsPortalShell, sidebarDocsNavSlot, DocsNav, DocShell or DocPage, plus every console pages/ 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.docsPortalLazy stubbed the old portal frame but not the new one, so the real shell's bell and agent reads escaped to the network;
    • expressionUser.mountSites.ratchet counts expression mount sites, and DocsPortalShell is a new one;
    • unsavedEditsLeave.census-13253 counts UnifiedSidebar's onAppChange reads, 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).
  • DECLARED NARROWING: the full app-shell and console suites were not run locally; CI Test UI runs them.
  • type-check for @object-ui/app-shell and @object-ui/console at 1ffad1a4: 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)
  • The closure was rebuilt (Tasks: 75 successful, 75 total). Then DocsPortalShell-37197, ConsoleLayout.noTopBar-36112, App.docsPortalLazy and expressionUser.mountSites.ratchet ran: Test Files 4 passed (4) / Tests 31 passed (31), VERDICT command-exit 0.
  • type-check for app-shell and console at e78f292d: VERDICT command-exit 0. For app-shell again at fecd4e23, after the hook was moved to useSyncExternalStore: exit 0.
  • Lint on the two changed source files: 0 errors and no warning. The first spelling of the hook drew react-hooks/set-state-in-effect; that is why it was rewritten.
  • S3: the 37197 note now opens "was the one documentation page that still drew a top bar on a desktop". /organizations and 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.mdx needed no edit: its portal sentence ("draws the same frame there", the content area carrying the standing banners) is now true at this head.
  • The derived gate list at fecd4e23 is unchanged (71). Of the 70 light ones, 68 exited 0 at once. check:skill-examples exited 3 (client-react was not built in the fresh worktree); after building it, exit 0. check-empty-changeset exited 1: the DELIBERATE CORRECTION, confirmed by the seat's contract review. ui vitest run scripts/: Test Files 172 passed | 2 skipped (174). --ran: 71 derived, 71 run, 0 NOT-MEASURED (a DERIVED zero). overlap-check: clean against main, 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)
  • The closure was rebuilt (Tasks: 75 successful, 75 total, 74 cached). Then apps/console/src/pages/, packages/app-shell/src/console/docs/, UnifiedSidebar.footerSlot-36739, SidebarAppMenu-36112 and ConsoleLayout.noTopBar-36112 ran: Test Files 177 passed (177) / Tests 1656 passed (1656), VERDICT command-exit 0.
  • dispatch-gates --commands at 2961b4a9 derived 71 commands (the changeset and the doc add the docs families). Of the 70 light ones, 68 exited 0 at once.
    • check:skill-examples exited 3: it refused for a missing @objectstack/client-react build. After building that package it ran with exit 0 (350 prose examples type-check).
    • check-empty-changeset exited 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

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 /docs at 1440 px: no top bar, a 「文档」 head, and 「全部文档」 first in the sidebar.

Gate readings

Generated by Claude Code

…rst row and the docs-page shell notices

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>
@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 25, 2026
…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>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW

Final green head for L1 and same-head contract review (2026-11-25T07:06Z): 4a5955a98df2f678c4fabb216d8f788aacc7ae43.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

Contract review

Served-tier: TIER_DEFAULT
Head-sha: 4a5955a98df2f678c4fabb216d8f788aacc7ae43
Local-runs: none
Scope: none (no reviewFace hits: no published schema, no governed path; the review is owed for the DELIBERATE CORRECTION and read on the declaration face) + .changeset/37150-docs-pages-in-app-shell.md, .changeset/37197-docs-portal-app-less-shell.md, the PR body's Clause-②: no / Metadata-protocol: none lines, and the diff files those sentences describe: ui/packages/app-shell/src/console/docs/DocsPortalShell.tsx, ui/packages/app-shell/src/layout/UnifiedSidebar.tsx, ui/packages/app-shell/src/layout/SidebarAppMenu.tsx, ui/packages/app-shell/src/layout/ShellPageActions.tsx, ui/packages/app-shell/src/index.ts, ui/apps/console/src/App.tsx, ui/apps/console/src/pages/DocsNav.tsx, ui/apps/console/src/pages/DocShell.tsx, ui/apps/console/src/pages/DocPage.tsx

① Derived judgments

  • DELIBERATE CORRECTION — confirmed. The note is .changeset/37150-docs-pages-in-app-shell.md, feat(console): an app's docs pages draw in the app shell from 768 px up #37193's pending (unreleased) changeset, its last paragraph. Before: "The /docs portal is not changed by this release." After: "The /docs portal draws in the same frame from 768 px up too, in a variant that belongs to no app (its own entry describes it)." The old sentence would be false once this PR lands: from 768 px up, App.tsx DocsPortalRoute now mounts DocsPortalShell instead of DefaultHomeLayout variant="docs". I judge the new sentence TRUE to the code at this head, clause by clause:
    • "the same frame": DesktopDocsPortalShell mounts the same AppShell (showHeader={false}, navbar={null}) and UnifiedSidebar an app's docs pages use. In docsPortal mode shellChrome is on, so the head has the collapse button, search (when a palette is mounted) and InboxBell, and the foot has AccountMenu. ShellPageActionsScope sidebarExpand appless gives the page header's assistant and help group and the expand button. Those are the parts the 37150 note itself lists as the frame: no top bar, the sidebar's head and foot, and the page header's button group.
    • "from 768 px up": usePhoneViewport is innerWidth < 768 (PHONE_BELOW_WIDTH). Below that, DocsPortalShell returns HomeLayout variant="docs", the same element the route mounted before. So the note's phone sentence ("a phone keeps its app bar…") is still true.
    • "belongs to no app": the context is set to home, nothing writes a current or last app, and AppShell gets no branding, so its effect removes --primary/--accent. The head is SidebarDocsPortalMenu, with no row checked, and the help group is HelpMenu inApp={false} with no package.
    • "(its own entry describes it)": .changeset/37197-docs-portal-app-less-shell.md is added in the same PR.
    • No other sentence in the note is made false: every docs address keeps its route (App.tsx swaps only the frame element), and the app docs column keeps its parts. The column's order is now described by the 37197 entry, and the 37150 parenthesis is a list of parts, not an order.
    • The portal's standing banners are drawn above the shell rather than in its content area. That is covered in the seat's L1 at this head. It is not part of what the 37150 note calls the frame, so it does not make the sentence false.
  • Clause-②: no holds. No packages/spec/src/** path is touched, and nothing in any package's exports is removed or narrowed. @object-ui/app-shell is private: true with exports . only, and its barrel gains DocsPortalShell and DocsPortalShellProps (additive). HomeCommandPalette and SidebarDocsPortalMenu are exported from their modules only, not from the barrel.
  • Metadata-protocol: none holds. No metadata key, value or type is added, removed or changed in meaning, and the UI reads only existing app fields (name, label, _packageId, navigation, areas).
  • i18n: no locale file is touched, so no 18.6.0 key is removed and nothing is owed under ruling 7153171432 / 7153326968. Each new t() key resolves at head in en and zh-Hans.

② Semver level

patch on @object-ui/app-shell, @object-ui/console and @objectstack/console, in both notes, is correct for a non-protocol, additive UI change. The CI check-changeset-no-major LEVEL AXIS reads no / none at patch and finds no major. The Check Changeset red on both runs at this head is the DELIBERATE CORRECTION refusal (job 139030845608: ".changeset/37150-docs-pages-in-app-shell.md exists on the merge base and was not added by this PR…"), which this record confirms. It is not a level failure.

③ Boundary flags

  • The dev flags, each answered:
    • (a) Book labels in an app's own docs column still use usePackageDocsNavBooks' label. The approved scope was the portal tree, so this is correctly left as noted.
    • (b) The overlap-check modify/delete against chore: version packages (next) #35129 (Version Packages) is the expected meeting of the correction with the bot PR. It was not resolved by hand.
    • (c) Home's palette host app is read and never written. This is search scope, as on Home and in the old portal frame, and no frame app comes from it.
  • No open questions remain on this head.
  • SQL push-down: the diff only changes client UI. It adds no id materialisation and no in-app join over server data; groupBooksByApp groups the already-served book index in memory, as the index page already does. Nothing to record.
  • The author is objectstack-fleet[bot] (relay).
  • This record covers this head only. The seat's L1 at this head asks for a rework, and any fix moves the head, so this record does not carry over to the new head.

Implemented-by: claude/issue-37197-docs-shell
Reviewed-by: session_01QSeKYpEsWWE9Y5YtSsDgqZ

VERDICT: PASS

No must-fix, no should-fix.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

席位核对 — REWORK · L1 · head 4a5955a98df2f678c4fabb216d8f788aacc7ae43 · 2026-11-25T07:15Z

  • What was read. The tree and check-runs at head (git show/diff/merge-tree, gh api GET), the rulings (7151721568, 7151737403, 7153085446), the card body of Docs portal /docs… in an app-less variant of the app shell on desktop: neutral 「文档」 head with the app switcher, docs tree in the sidebar, no top bar, every URL kept (#37150 item 2) #37197 and the stage-1 report 7152059829. The dev's narrative was not used as evidence. Local-runs: none; the PR's ablations were not re-run.

  • Shape.

  • The five approved design points (7153085446) → code → pin:

    • 1 · Collapsed sidebar, nothing in the head. Code: ShellPageActionsScope sidebarExpand plus ShellSidebarExpandFallback in DocsPortalShell. Pin: DocsPortalShell-37197, "collapsed, the header carries the expand button…" (exactly one expand button, inside the docs header, and no corner fallback). It goes red under ablation 1. Held.
    • 2 · 「全部文档」 is the first docs row in both sidebars. Code: the inSidebar row in DocsNav, drawn after AppDocsBackLink, so it sits directly under 「← 返回应用」 as the seat ruled. Pins: the docs-portal.test.tsx #37197 block.
      • Portal: first row, aria-current on the index only.
      • App reader and app docs index: the back link is the top row, and 「全部文档」 is the first docs row, before the filter and the first book.
      • Ablation 2 turns 4 red. The PHONE CONTROL pins the phone guard. Held.
    • 3 · The head menu holds only the apps and 「添加应用」. Code: SidebarDocsPortalMenu uses the shared AppMenuList with no activeAppName, and AddAppSubmenu gated by useMayAddApp. It has no Design layout row and no Studio row. Pins:
      • the new SidebarAppMenu-36112 block: no row checked, no app-scoped row, admin and member;
      • the UnifiedSidebar.footerSlot-36739 portal block: the head reads Documentation, not the remembered app.
        Held.
    • 4 · Tree grouped by app. Code: PortalDocsNav over groupBooksByApp. Pin: the treeSections() equality (Showcase / Alpha / Other documentation, in index order). Held.
    • 5 · Default accent. Code: DocsPortalShell passes no branding to AppShell, and useAppShellBranding then removes --primary, --ring, --accent and the related variables. No test pins it; see S1.
  • No app guessed.

    • setContext('home') is the portal's only navigation write; there is no setCurrentAppName and no rememberApp. The palette's host app is read the way Home reads it and is never written back.
    • Pins: cold at 1440 and 390 px (context home, no current app, no last-app key in storage), and after an app was open (help inApp=false with no package, current app unchanged). See N2.
  • Old /docs… URLs are unchanged. App.tsx swaps only the frame element; the route tree is untouched. The docs-portal it.each lands all eight portal URL forms on their canonical addresses inside the shell. Held.

  • Phone is pinned unchanged.

    • Below 768 px (PHONE_BELOW_WIDTH) the frame is HomeLayout variant="docs", the same element as before; DefaultHomeLayout is its alias.
    • The PHONE CONTROLs in DocsPortalShell-37197 (each path, plus the group and expand button) and in docs-portal (the in-page column keeps 「全部文档」 last) pin it. Held.
  • i18n against 18.6.0. No locale file is touched, so no key is removed and nothing is owed under 7153171432 / 7153326968. Every new t() key resolves at head in en and zh-Hans: help.documentation, help.allDocs, help.otherDocs, help.uncategorized and layout.appSwitcher.yourApps. Held.

  • Published exports.

    • @object-ui/app-shell is private: true, with exports . only. Its barrel gains DocsPortalShell and DocsPortalShellProps, which is additive.
    • HomeCommandPalette and SidebarDocsPortalMenu are exported from their modules only, not from the barrel.
    • The shipped bytes reach users through @objectstack/console, which both changesets bump patch. Held.
  • Clause-②: no / Metadata-protocol: none. Both are correct: no packages/spec path is touched and no metadata key changes. CI check-changeset-no-major reads no/none at patch. Held.

  • Changeset wording, sentence by sentence.

    • The 37197 note. Checked true:
      • no app is picked, coloured or remembered;
      • 「All documentation」 is placed under 「← Back to APP」, above the filter and the books;
      • the phone is unchanged, with the link at the foot;
      • no address changes;
      • books are named as the index names them.
        The exceptions are S3 and N1.
    • The 37150 DELIBERATE CORRECTION. It is judged TRUE in the same-head contract-review record.
    • content/docs/frontend/app-shell.mdx. The stale "on an app's docs pages, which mount no sidebar" is correctly removed. The new portal sentence is part of S2.
  • 维护者速读. Four lines of Chinese business prose: who/where/before→after, the topic, the risk and rollback, then 「无」. There are no code names, paths or bare card numbers. Held.

  • Check-runs at head.

    • 45 success, 12 skipped, 2 failure.
    • Both failures are Check Changeset. Job 139030845608's error is the DELIBERATE CORRECTION refusal on .changeset/37150-docs-pages-in-app-shell.md, red by design.
    • Lint & Repo Gates, TypeScript Type Check, Type Check UI and Test UI are success.
  • K = 8. Merge base 0a1b69c0b, origin/main d7f299c0b. git merge-tree with origin/main is clean.

  • Overlap. git merge-tree is clean against each sister PR at its current 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.

    • ConsoleLayout mounts ChromeBannerHost (and ConnectionBanner) in console-banners from 768 px up. DocsPortalShell does not.
    • So the standing banners (impersonation, read-rate, storage) stay in ConsoleShell's ChromeBannerSlot above the route, at full window width.
    • Meanwhile the shell's sidebar is fixed inset-y-0 from the window's top. The impersonation banner is sticky 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.mdx sentence 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 ConsoleLayout does, 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>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

Contract review

Served-tier: TIER_DEFAULT
Head-sha: fecd4e239f81101a7273cb51c0d50fa4762b9403
Local-runs: none
Scope: none (no reviewFace hits: no published schema and no governed path. record-recognisers --template --paths defers to the changesets' Clause-②: no, which is the declaration face. The review is owed for the DELIBERATE CORRECTION.) + .changeset/37150-docs-pages-in-app-shell.md, .changeset/37197-docs-portal-app-less-shell.md, the PR body's Clause-②: no / Metadata-protocol: none lines, and the diff files those sentences describe: ui/packages/app-shell/src/console/docs/DocsPortalShell.tsx, ui/packages/app-shell/src/layout/UnifiedSidebar.tsx, ui/packages/app-shell/src/layout/SidebarAppMenu.tsx, ui/packages/app-shell/src/layout/ShellPageActions.tsx, ui/packages/app-shell/src/index.ts, ui/apps/console/src/App.tsx, ui/apps/console/src/pages/DocsNav.tsx, ui/apps/console/src/pages/DocShell.tsx, ui/apps/console/src/pages/DocPage.tsx

① Derived judgments

  • DELIBERATE CORRECTION: confirmed at this head.
    • The note is .changeset/37150-docs-pages-in-app-shell.md, the pending (unreleased) changeset of feat(console): an app's docs pages draw in the app shell from 768 px up #37193. The correction is the last paragraph's second sentence.
    • Before: "The /docs portal is not changed by this release."
    • After, verbatim at fecd4e239f8: "The /docs portal draws in the same frame from 768 px up too, in a variant that belongs to no app (its own entry describes it)."
    • The delta 4a5955a98d..fecd4e239f8 does not touch this note. git diff of the note against the merge base 0a1b69c0b is still that one sentence.
    • The old sentence would be false once this PR lands: from 768 px up, App.tsx DocsPortalRoute mounts DocsPortalShell in place of DefaultHomeLayout variant="docs".
    • I judge the new sentence TRUE to the code at this head, clause by clause.
  • "the same frame":
    • DesktopDocsPortalShell mounts the same AppShell (showHeader={false}, navbar={null}) and the same UnifiedSidebar that an app's docs pages use.
    • In docsPortal mode the head has collapse, search (while a palette is mounted) and InboxBell, and the foot has AccountMenu. ShellPageActionsScope sidebarExpand appless draws the page header's assistant and help group and the expand button.
    • Those are the parts the 37150 note itself names as the frame. The new delta also brings the content-area banner box (ChromeBannerHost, ConnectionBanner, shrink-0), as ConsoleLayout draws it. So the portal now matches the app frame in that part too, which the head before did not.
  • "from 768 px up":
    • usePhoneViewport is innerWidth < 768. Below that, DocsPortalShell returns HomeLayout variant="docs", the element the route mounted before.
    • The note's own phone sentence ("a phone keeps its app bar…") therefore still holds.
  • "belongs to no app":
    • The context is set to home, and nothing writes a current app or a last app.
    • AppShell gets no branding, so useAppShellBranding removes --primary and --accent. This is now pinned in DocsPortalShell-37197, and the seat's L1 ran the ablation red.
    • The head is SidebarDocsPortalMenu, with no row checked. The help group is HelpMenu inApp={false} with no package.
  • "(its own entry describes it)": .changeset/37197-docs-portal-app-less-shell.md is in the same PR and describes it at this head.
  • No other sentence of the 37150 note is made false:
    • Every docs address keeps its route; App.tsx swaps only the frame element.
    • The app docs column keeps its parts. The parenthesis is a list of parts, not an order, and the 37197 entry states the new order.
  • Clause-②: no holds. No packages/spec/src/** path is touched, and no package's exports is removed or narrowed. @object-ui/app-shell is private: true with exports . only. Its barrel gains DocsPortalShell and DocsPortalShellProps, which is additive. The delta adds no export.
  • Metadata-protocol: none holds. No metadata key, value or type changes. The delta reads only the data adapter's existing getConnectionState / onConnectionStateChange, as AppContent does.
  • i18n: no locale file is touched, so no 18.6.0 key is removed and nothing is owed under 7153171432 / 7153326968. The delta adds no t() key.

② Semver level

patch on @object-ui/app-shell, @object-ui/console and @objectstack/console in both notes is correct for a non-protocol, additive UI change. The two Check Changeset reds at this head (jobs 139049131673 and 139058437948) are the DELIBERATE CORRECTION refusal on .changeset/37150-docs-pages-in-app-shell.md ("exists on the merge base and was not added by this PR…"), which this record confirms. They are not a level failure, and the run finds no major.

③ Boundary flags

  • The zone report 7156332196 has open_questions: [] and out_of_scope_findings: [].
  • The dev flags were answered at the previous head and are unchanged:
    • (a) An app's docs column still uses its book labels, which was the approved scope.
    • (b) The modify/delete with chore: version packages (next) #35129 (Version Packages) is expected, and nothing was resolved by hand.
    • (c) Home's palette host app is read and never written.
  • New at this head: open feat(studio): remove the Studio home; /studio opens the last package or Setup > Packages #37166 moved to 45e4a5eb52 and now conflicts with this PR in SidebarAppMenu.tsx, including the AddAppSubmenu signature. That is a landing-order matter recorded in the seat's L1 at this head, not a contract question.
  • SQL push-down: the delta adds client UI only, with no id materialisation and no in-app join over server data. Nothing to record.
  • The author is objectstack-fleet[bot] (relay).
  • This record covers this head only. The pin and ablation runs are the seat L1's evidence at this head. This record's judgments rest on reading the tree.

Implemented-by: claude/issue-37197-docs-shell
Reviewed-by: session_01QSeKYpEsWWE9Y5YtSsDgqZ

VERDICT: PASS

No must-fix, no should-fix.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

席位核对 — ACCEPT · L1 · head fecd4e239f81101a7273cb51c0d50fa4762b9403 · 2026-11-25T08:22Z

  • What was read.

    • The delta 4a5955a98df2f678c4fabb216d8f788aacc7ae43..fecd4e239f81101a7273cb51c0d50fa4762b9403: 2 commits, e78f292d2dc and fecd4e239f8, 3 files, +128/−9 (DocsPortalShell.tsx, its DocsPortalShell-37197 test, and the 37197 changeset).
    • The seat's L1 7155677032 and contract review 7155664200 at 4a5955a98d, both read as posted.
    • The zone report 7156332196, and the check-runs at head through gh api GET.
    • The dev's narrative was not used as evidence.
  • Local-runs. These ran in a throwaway worktree at head, after pnpm install --frozen-lockfile and a turbo run build --filter='@object-ui/app-shell^...' (Tasks: 68 successful, 68 total). The worktree was removed afterwards.

    • The suite: vitest run …/DocsPortalShell-37197.test.tsx --maxWorkers=1, with the result Tests 16 passed (16).
    • Each ablation was restored with git checkout. After each, the blob matched HEAD (85f82c838a3) and git status was empty.
  • S1 (default accent): closed, and the pin is confirmed red under ablation.

    • The pin is the new block "the portal takes no app's brand". It seeds --primary/--accent on the root, opens the portal after crm, which has a mocked branding.primaryColor, and expects neither variable.
    • Ablation: AppShell was handed hostApp.branding next to navbar={null}. Result: Tests 1 failed | 15 passed (16). Only the accent pin went red; its phone control stayed green.
    • The seeding is what gives the pin its power. useAppShellBranding with no branding removes the variables, so the assertion reads the shell's own clearing. It does not read a root that was never set.
  • S2 (banner host): closed, and the pins are confirmed red under ablation.

    • DesktopDocsPortalShell now draws div[data-testid=docs-portal-banners].shrink-0, holding ChromeBannerHost and ConnectionBanner, as the first child of the content. This is ConsoleLayout's console-banners pattern: a non-shrinking box with the route slot at h-full lg:min-h-0.
    • ChromeBannerSlot portals into whichever host is mounted. A host's unmount clears only its own registration, so going from an app to /docs hands over cleanly.
    • Ablation, ChromeBannerHost deleted: 1 failed | 15 passed, and the 1440 banner pin went red.
    • Ablation, ConnectionBanner deleted: 1 failed | 15 passed, and the notice pin went red.
    • The phone control stayed green in both.
    • The connection state is read through useSyncExternalStore, which subscribes to onConnectionStateChange and reads getConnectionState(). That is a string snapshot, so the snapshot is stable.
  • The banner draws once: confirmed. At 1440 the pin asserts that getAllByTestId('impersonation-banner-stub') has length 1, inside the box, not in the shell's slot, and before the page. On the phone the banner stays in the shell's slot, still once, with no box and no notice. I re-ran both: green.

  • S3 (note opening): closed. The 37197 note now opens: "was the one documentation page that still drew a top bar on a desktop".

  • N1 (search wording): closed. The note now says: "search (when there is an app to search)". This matches docsPortalSearch={!!hostApp}.

  • N2: accepted, nit. This is the seat's decision. The rememberApp mock now carries a comment saying it is a tripwire and that the last-app storage check carries the pin. N2 is not graded.

  • content/docs/frontend/app-shell.mdx is now true. The PR leaves the file unchanged in the delta. Its portal sentence says the portal "draws the same frame there". The frame it lists includes "the content area the standing banners", and at head that clause now holds for the portal. "with a neutral 「Documentation」 head in place of the app menu and the docs tree as the sidebar's body" holds too. See N3 for the search clause.

  • The 37197 changeset, sentence by sentence, at head.

    • 1, "the one documentation page…": true (see S3).
    • 2, "From 768 px up … the same frame":
      • "no top bar": true.
      • "search (when there is an app to search) and notifications in its head", "the account at its foot": true.
      • "standing notices (impersonation, usage, storage, a lost connection) at the top of the page's content, beside the sidebar rather than over it": true at head. "usage" is a fair reader's gloss for the read-volume report.
      • "assistant and help buttons": true.
    • 3, the 「Documentation」 head, the apps with none marked current, 「Add app」 and opening an app: true. 「Add app」 is gated by useMayAddApp, as in an app's own menu.
    • 4, the tree order and the books under the app's heading: true.
    • 5, book labels: true.
    • "does not pick an app: no app's colours…": true, and pinned now (S1).
    • 「All documentation」 as the first row of an app's documentation sidebar: true.
    • "Unchanged" paragraph: true. The phone keeps Home's docs bar and the in-page column, with the link at its foot.
  • The 37150 note (the DELIBERATE CORRECTION). It is not touched in the delta. It is re-judged TRUE at this head in the same-head contract-review record.

  • 维护者速读, sentence by sentence.

    • The first line is true: no top bar on a desktop, the neutral 「文档」 head with the apps and 「添加应用」, the tree grouped by app with 「全部文档」 first, the app sidebar's 「全部文档」 under 「返回应用」, and the phone unchanged.
    • The topic and card line is true.
    • The risk and rollback line is true: front end only, and no write to 「上次使用的应用」.
    • Then 「无」.
    • It has no code names, paths or bare card numbers. The new banner box is not mentioned there, which is acceptable for a summary.
  • i18n against 18.6.0. No locale file is in the PR's 21 paths, so no released key is removed and nothing is owed under 7153171432 / 7153326968. The delta adds no t() key: ConnectionBanner reuses the existing topbar.* keys. Neither the PR body nor the zone report makes an i18n declaration, and none is owed. Held.

  • Merge commits in the delta: none. Both commits are linear on 4a5955a98d. The PR's one merge, 41ce9a66b54, predates the delta and was read at the last L1. The merge base is unchanged at 0a1b69c0b.

  • Check-runs at head (final; the first poll already had none pending).

    • 59 runs: 45 success, 12 skipped, 2 failure.
    • Both failures are Check Changeset, jobs 139049131673 and 139058437948. Their error is the DELIBERATE CORRECTION refusal on .changeset/37150-docs-pages-in-app-shell.md ("exists on the merge base and was not added by this PR"). This is red by design.
    • Lint & Repo Gates, TypeScript Type Check, Type Check UI, Test UI (with every planned shard) and Governed Surface Queue Guard are success.
  • K = 11. The merge base is 0a1b69c0b and origin/main is d62f9e9c05. git merge-tree --write-tree origin/main HEAD is clean.

  • Overlap. git merge-tree was run against each sister PR at its current 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
  • 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-banners box out of AppShell to just before it. That reproduces the full-width-above-the-sidebar geometry S2 was about. The result was Tests 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 is SidebarInset, a main.
    • ConsoleLayout.noTopBar-36112 pins console-banners the 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.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW

Landing (2026-11-25T08:23Z): head fecd4e239f81101a7273cb51c0d50fa4762b9403, on L1 ACCEPT 7156954333 and the same-head contract review 7156937229. The contract review re-confirms the DELIBERATE CORRECTION.

Probe Reading
check-governed-merges.mjs --pr 37241 NOT governed: no path hits the register; +1323 / −152
Check-runs at this head (pr-state.mjs) 45 success · 12 expected skip · 0 unexpected skip · 0 pending · 2 failed: both Check Changeset, red by design
Landing K 11 behind origin/main, so no main merge

Queued with the red check under SKILL.md's three conditions for a red-by-design check. All three hold:

  1. The source says it is red by design on the pushed branch. scripts/check-empty-changeset.mjs refuses an edit to a pending note that existed on the merge base, for the DELIBERATE CORRECTION class. The remedy it names is the dispatching seat's own record, and "this gate stays red either way". Here the edit is feat(console): an app's docs pages draw in the app shell from 768 px up #37193's .changeset/37150-docs-pages-in-app-shell.md, with its one corrected sentence confirmed TRUE at this head by contract review 7156937229.
  2. It does not run on merge_group. Check Changeset lives in .github/workflows/pr-automation.yml, whose only trigger is pull_request.
  3. This comment records the gate and its cause.

The gate is unchanged.

State change: ready for review, and auto-merge armed; the merge queue lands it.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 25, 2026 08:23
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 25, 2026
Merged via the queue into main with commit fc21674 Nov 25, 2026
58 of 60 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-37197-docs-shell branch November 25, 2026 08:46
Nenzyz pushed a commit to Nenzyz/objectstack that referenced this pull request Dec 1, 2026
…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>
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