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 #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 #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 #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 #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
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