Repository navigation
feat(console): the docs portal draws in an app-less variant of the app shell from 768 px up - #37241
Conversation
Claude-Session: https://claude.ai/code/session_01QSeKYo1Rb7aYhQiJdWshkL Co-authored-by: Claude <noreply@anthropic.com>
…rst row and the docs-page shell notices Claude-Session: https://claude.ai/code/session_01QSeKYo1Rb7aYhQiJdWshkL Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QSeKYo1Rb7aYhQiJdWshkL Co-authored-by: Claude <noreply@anthropic.com>
…evidence only, removed in the next commit) Claude-Session: https://claude.ai/code/session_01QSeKYo1Rb7aYhQiJdWshkL Co-authored-by: Claude <noreply@anthropic.com>
…eachable at the previous commit) Claude-Session: https://claude.ai/code/session_01QSeKYo1Rb7aYhQiJdWshkL Co-authored-by: Claude <noreply@anthropic.com>
…tion in the docs portal shell's suite Claude-Session: https://claude.ai/code/session_01QSeKYo1Rb7aYhQiJdWshkL Co-authored-by: Claude <noreply@anthropic.com>
…u's wrapped app switch; stub it in the lazy-portal suite Claude-Session: https://claude.ai/code/session_01QSeKYo1Rb7aYhQiJdWshkL Co-authored-by: Claude <noreply@anthropic.com>
…y back to the app; the docs-pages changeset and the app-shell doc name the portal's frame Claude-Session: https://claude.ai/code/session_01QSeKYo1Rb7aYhQiJdWshkL Co-authored-by: Claude <noreply@anthropic.com>
…er the way back (evidence only, removed in the next commit) Claude-Session: https://claude.ai/code/session_01QSeKYo1Rb7aYhQiJdWshkL Co-authored-by: Claude <noreply@anthropic.com>
…ay reachable at the previous commit) Claude-Session: https://claude.ai/code/session_01QSeKYo1Rb7aYhQiJdWshkL Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW Final green head for L1 and same-head contract review (2026-11-25T07:06Z):
|
|
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ Contract reviewServed-tier: ① Derived judgments
② Semver level
③ Boundary flags
Implemented-by: VERDICT: PASS No must-fix, no should-fix. |
|
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ 席位核对 — REWORK · L1 · head
|
| PR | Head | Shared files |
|---|---|---|
| feat(studio): remove the Studio home; /studio opens the last package or Setup > Packages #37166 | 329ddefce7 |
App.docsPortalLazy test, app-shell/src/index.ts, SidebarAppMenu-36112 test |
| feat(studio): the object designer opens full-screen on its metadata address, tabs in #36513's order #37168 | 64a5a2d733 |
SidebarAppMenu-36112 test |
| feat(studio): the flow designer opens full-screen on its metadata address; no flow rail (#36903) #37169 | 576f67d33b |
index.ts |
The hunks do not touch each other: theirs are Studio exports and the BuilderLanding stub. The modify/delete with chore: version packages #35129 (Version Packages) is expected.
S1 (should-fix) — Design point 5 (default accent, no app brand) maps to code but to no test. Reverting it (handing AppShell the last or host app's branding) turns nothing red; the PR's diff has no assertion on --primary or --accent anywhere. The fix is to add a pin in DocsPortalShell-37197, which already mounts the real AppShell: open the portal after an app with branding.primaryColor, assert that document.documentElement.style carries no --primary, and add a phone control.
S2 (should-fix) — The portal's desktop frame has no content-area banner host. This was found by reading the code; I did not render it.
ConsoleLayoutmountsChromeBannerHost(andConnectionBanner) inconsole-bannersfrom 768 px up.DocsPortalShelldoes not.- So the standing banners (impersonation, read-rate, storage) stay in
ConsoleShell'sChromeBannerSlotabove the route, at full window width. - Meanwhile the shell's sidebar is
fixed inset-y-0from the window's top. The impersonation banner issticky top-0 z-50, so it covers the sidebar's head row (the 「文档」 menu and the collapse button). The in-flow storage and read-rate banners run under the sidebar's column. - The new
app-shell.mdxsentence says the portal "draws the same frame there" right after naming "the content area the standing banners" as part of that frame, which is false at head. - The fix: mount the host, inside a non-shrinking box at the top of the portal's content as
ConsoleLayoutdoes, with a 1440 pin and a phone control. Narrowing the doc sentence alone would leave the overlap.
S3 (should-fix) — The 37197 note's opening sentence is false at head. It says the portal "was the last desktop page that still drew a top bar". In fact /organizations (OrganizationsLayout, AppHeader variant="orgs") and Home's no-product-app state (HomeRoute → RootLandingRedirect home={page}, DefaultHomeLayout) still draw a top bar from 768 px up. Reword it, e.g. "was the one documentation page that still drew a top bar on a desktop".
N1 — The 37197 note says "the sidebar with search and notifications in its head". Search is drawn only while a palette is mounted (docsPortalSearch={!!hostApp}), so a workspace with no openable app gets no search field. The PR body discloses this; the note could say "search (when there is an app to search)".
N2 — The rememberApp assertions in DocsPortalShell-37197 guard a mocked hook that nothing in the portal's tree calls. The last-app-key storage check is what carries the "no app remembered" pin.
…d the connection notice at the top of its content; pin its default accent Claude-Session: https://claude.ai/code/session_01QSeKYo1Rb7aYhQiJdWshkL Co-authored-by: Claude <noreply@anthropic.com>
…an external-store subscription Claude-Session: https://claude.ai/code/session_01QSeKYo1Rb7aYhQiJdWshkL Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ Contract reviewServed-tier: ① Derived judgments
② Semver level
③ Boundary flags
Implemented-by: VERDICT: PASS No must-fix, no should-fix. |
|
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ 席位核对 — ACCEPT · L1 · head
|
| PR | Head | merge-tree | Shared files |
|---|---|---|---|
| feat(studio): remove the Studio home; /studio opens the last package or Setup > Packages #37166 | 45e4a5eb52 |
conflict | App.docsPortalLazy test, app-shell/src/index.ts, SidebarAppMenu.tsx, SidebarAppMenu-36112 test |
| feat(studio): the object designer opens full-screen on its metadata address, tabs in #36513's order #37168 | 64a5a2d733 |
clean | SidebarAppMenu-36112 test |
| feat(studio): the flow designer opens full-screen on its metadata address; no flow rail (#36903) #37169 | 3f65d38baa |
clean | index.ts |
- feat(studio): remove the Studio home; /studio opens the last package or Setup > Packages #37166 moved after the zone's overlap-check: its new head's runs started at 2026-11-25T07:43Z. It now carries
1ab7e75973e, which turnsAddAppSubmenu()intoAddAppSubmenu({ entries })and gates the menu onofferAddApp = mayAddApp && addAppEntries.length > 0. - That conflicts textually with this PR's
AppMenuListextraction inSidebarAppMenu. It is also a semantic overlap:SidebarDocsPortalMenu's{mayAddApp && <AddAppSubmenu />}would not type-check against feat(studio): remove the Studio home; /studio opens the last package or Setup > Packages #37166's signature, and would miss its empty-list rule. - Whichever of the two lands second merges main and carries the
entries/offerAddApprule intoSidebarDocsPortalMenu. This does not block the ACCEPT, because this PR merges cleanly withorigin/main. - The modify/delete with chore: version packages #35129 (Version Packages) is expected.
Size and tier. 21 files, +1323/−152 (1,475 changed lines), under 3,000. No governed path: Governed Surface Queue Guard is success and the contract review is owed on the declaration face (TIER_DEFAULT). The PR is not ! and not (narrowing), so the dogfood battery is n/a. Tier S.
N3 — The S2 pin proves the banner sits in a box with that test id, but not that the box is in the content area beside the sidebar.
- Ablation: I lifted the whole
docs-portal-bannersbox out ofAppShellto just before it. That reproduces the full-width-above-the-sidebar geometry S2 was about. The result wasTests 16 passed (16). - Probe: adding
expect(box.closest('main')).not.toBeNull()to the 1440 banner test is green at head and red under that lift (1 failed | 15 passed).AppShell's content isSidebarInset, amain. ConsoleLayout.noTopBar-36112pinsconsole-bannersthe same way, so this follows precedent. It is worth one line whenever the test is next touched. It does not reopen S2: the code is right, and the pin does go red when the host is removed.
The zone lands it after measuring K. If K ≥ 15 it merges main first. A merge-only head move keeps this ACCEPT.
No must-fix, no should-fix.
|
repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW Landing (2026-11-25T08:23Z): head
Queued with the red check under SKILL.md's three conditions for a red-by-design check. All three hold:
The gate is unchanged. State change: ready for review, and auto-merge armed; the merge queue lands it.
|
repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW
Fixes #37197
Part of #37150 — this PR carries its last open item (item 2, the standalone
/docsportal's frame, ruled B in #37150 comment 7151721568); items 1, 3 and 4 landed in #37193.Clause-②: no
Metadata-protocol: none
维护者速读
What changes
From 768 px up,
/docs…now renders in an app-less variant of the app shell, as designed in stage 1 and approved on #37197 (comment 7153085446, the maintainer: 「5 处都按建议,批准设计」).DocsPortalShell(ui/packages/app-shell/src/console/docs/, exported from@object-ui/app-shell): on a phone it isHomeLayout variant="docs", unchanged; from 768 px up it mounts the realAppShellwithshowHeader={false},UnifiedSidebarin a newdocsPortalmode, the docs-navigation slot from feat(console): an app's docs pages draw in the app shell from 768 px up #37193, the page header's group and expand button (ShellPageActionsScope sidebarExpand appless), Home's AI drawer and Home's command palette (HomeCommandPalette, now exported fromHomeLayout). LikeConsoleLayout, it draws a non-shrinking box at the top of the content holdingChromeBannerHostandConnectionBanner, so the standing banners (impersonation, read rate, storage) and a lost-connection notice sit beside the fixed sidebar instead of over its head (seat L1 S2). The connection state comes from the data adapter, asAppContentreads it. It sets the navigation context tohome, as Home's frame does, and never sets the current app, remembers a last app or applies an app's branding.UnifiedSidebardocsPortal(+docsPortalSearch): the shell head and foot as in an app, a neutral 「Documentation」 head (SidebarDocsPortalMenu) instead of the app's name menu, and the docs-navigation target as the body. The search field is drawn only when a palette is mounted (Home's palette needs a host app).SidebarDocsPortalMenu(inSidebarAppMenu.tsx): the app menu's list, extracted intoAppMenuListand shared by both menus, under 「Your apps」, with no row checked and no app-scoped row (「Design layout」, 「Edit app」), plus 「Add app」 for the viewers who may build. Choosing an app opens/apps/APP.ShellPageActionsScope appless: the page header's group without an app: the assistant, andHelpMenu inApp={false}with no app package. Without it the group resolves the app from the navigation context or the URL's second segment, which on the portal would be the last app or a book slug.PortalDocsNav(consoleDocsNav.tsx): every book the portal's index lists, under its app's heading, in the index's order (groupBooksByApp, the index's own grouping). Each book is named by its index card's label, so an implicit platform book reads as its app does (「系统设置」), not as its package id's last segment (「Setup」).DocShellandDocPagehand it to the sidebar on/docs….DocsNavdraws it as the first docs entry, marked current on the portal index. In an app's docs reader and inAppDocsNavit sits directly under 「← Back to APP」 and above the filter and the books; on the portal, which has no back link, it is the column's first row. The phone guard is the slot itself: a phone mounts no docs sidebar, so the column the page draws keeps the link at its foot, unchanged..changeset/37150-docs-pages-in-app-shell.md(seat ruling on feat(console): the docs portal draws in an app-less variant of the app shell from 768 px up #37241). One sentence. It was "The/docsportal is not changed by this release." and now reads "The/docsportal draws in the same frame from 768 px up too, in a variant that belongs to no app (its own entry describes it)."check-empty-changesetis red on this by design; the dispatching seat's record confirms it.content/docs/frontend/app-shell.mdx: the stale line "the app bar … on an app's docs pages, which mount no sidebar" is corrected. An app's docs pages draw the shell from 768 px up, and the portal draws the same frame with a neutral head.App.tsx:DocsPortalRoutemountsDocsPortalShellin place ofDefaultHomeLayout variant="docs". No route, redirect or URL changes.Files to read first, by risk:
ui/packages/app-shell/src/console/docs/DocsPortalShell.tsx: the variant switch, and what it does not write.ui/packages/app-shell/src/layout/UnifiedSidebar.tsx: thedocsPortalhunks (shellChrome, the head, the body condition,hasCommandPalette).ui/apps/console/src/pages/DocsNav.tsx:inSidebar(the first-row move and its phone guard), andPortalDocsNav's labels.Tests
DocsPortalShell-37197.test.tsx: realDocsPortalShell,AppShell,ShellPageActionsScope, docs slot andNavigationProvider./docs,/docs/crmand/docs/crm/crm_introat 768 and 1440 px: noheaderelement, the sidebar indocsPortalmode with noactiveAppName, the page's tree drawn in the sidebar. PHONE CONTROL for each path at 390 px: Home's docs frame, no sidebar.home, no current app, and no last-app key is in storage; that storage check carries the pin. TherememberAppspy is only a tripwire for a future frame that would remember an app. After an app was open, on a package-named path, the head names no app, the help menu getsinApp=falseand no package, and the current app stays as it was.branding.primaryColorwas open, with--primary/--accentleft on the root, the portal's root carries neither. Phone control.ConsoleShelldoes) is drawn exactly once, inside the portal's banner box at the top of the content. A disconnected adapter shows the connection notice in that box; a connected one shows none. PHONE CONTROL: the banner stays where the shell mounts it, drawn once, with no box and no notice.docs-portal.test.tsx, new blockobjectstack#37197: the portal tree in the shell (first row,aria-currenton the index, sections in the index's order, no back link, no in-page column). A book open in the tree with the article current. The label fix (an app labelledSystem settings, so not 「Setup」). Every portal URL form in the shell: index, SLUG, book NAME, NAME/DOC, doc-name-is-also-a-book-name, canonical SLUG/DOC, implicit package book, slug-that-is-another-book's-name. In an app's reader and docs index, 「All documentation」 is the first docs row: the back link stays the column's top row, and 「All documentation」 precedes the filter and the first book. PHONE CONTROL: the in-page column of the portal and of an app keeps it last.SidebarAppMenu-36112, new block: the portal head reads 「Documentation」, lists the apps under 「Your apps」 with none checked, opens any app by its address, gives 「Add app」 to an admin who may author and no app-scoped row; member control.UnifiedSidebar.footerSlot-36739, new block: in Home's context with a remembered app,docsPortaldraws the portal head (not the app's), the page's tree as the body and the account foot; no search field without a palette; control withoutdocsPortal.ConsoleLayout.noTopBar-36112: a docs route withconnectionState: 'disconnected'showsConnectionBannerin the banners box at 1440 px. A collapsed docs route draws the expand button in the docs header (aDocShellstand-in that reads the shell's expand slot) and no corner fallback. Each has a phone control.Ablations, each via
scripts/ablation-replace.mjs: anchor 1 to 0 on disk, restored blob equal to HEAD,git diff HEADempty. The tests importsrc, so there is nodistleg.DocsPortalShellif (phone) {changed toif (phone || true) {:Tests 7 failed | 4 passed (11). Every desktop pin went red; the four phone controls stayed green.DocsNavinSidebarforced false:Tests 4 failed | 76 passed (80). The two portal-tree tests and the two app-sidebar tests went red; the PHONE CONTROL stayed green. Re-run after the reorder, at2961b4a9: the same 4 red, PHONE CONTROL green, restored blob == HEAD.{ ...resolved, label: card.label }changed toresolved: the label test went red (1 failed).applessremoved from the scope: the no-guessed-app help test went red (1 failed | 10 passed).AppShellhanded the host app'sbranding(anchornavbar={null}replaced):Tests 1 failed | 15 passed (16), the default-accent pin red, its phone control green. A first attempt put the anchor inside its own replacement; the tool refused it ("a drop of 0") and restored the file, so it measured nothing and was re-run.ChromeBannerHostdeleted:1 failed | 15 passed (16), the 1440 banner pin red.ConnectionBannerdeleted:1 failed | 15 passed (16), the notice pin red. The PHONE CONTROL stayed green in both.Local runs. Each ran under
os-verify-lockwith--maxWorkers=2; every one reportsVERDICT command-exit 0unless it says otherwise.Test readings
95a165e3, before the main merge, the five touched or new suites with--reporter=verbose(every new block listed):Test Files 5 passed (5) / Tests 140 passed (140).origin/main(0a1b69c0), the closure was rebuilt (turbo run build --filter='@object-ui/console^...',Tasks: 75 successful, 75 total). Then a NARROWED suite ran at1ffad1a4: 186 files, every app-shell and console test namingConsoleLayout,UnifiedSidebar,SidebarAppMenu,ShellPageActions,HomeLayout,DocsPortalShell,sidebarDocsNavSlot,DocsNav,DocShellorDocPage, plus every consolepages/test. Result:Test Files 3 failed | 183 passed (186) / Tests 3 failed | 1680 passed (1683). The three reds were tests that count what this change adds:App.docsPortalLazystubbed the old portal frame but not the new one, so the real shell's bell and agent reads escaped to the network;expressionUser.mountSites.ratchetcounts expression mount sites, andDocsPortalShellis a new one;unsavedEditsLeave.census-13253countsUnifiedSidebar'sonAppChangereads, and the portal head's wrapped read is a new one.All three were fixed in
7977d28b, which changes tests only, and re-run:Test Files 3 passed (3) / Tests 12 passed (12).Test UIruns them.type-checkfor@object-ui/app-shelland@object-ui/consoleat1ffad1a4:VERDICT command-exit 0(the later commit changes tests that the same programs compile). Lint on the changed files: 0 errors, and no new warning after typing the shared list's props.Rework 2 readings at fecd4e2 (seat L1 7155677032: S1 accent pin, S2 banner host, S3 + N1 note wording, N2)
Tasks: 75 successful, 75 total). ThenDocsPortalShell-37197,ConsoleLayout.noTopBar-36112,App.docsPortalLazyandexpressionUser.mountSites.ratchetran:Test Files 4 passed (4) / Tests 31 passed (31),VERDICT command-exit 0.type-checkfor app-shell and console ate78f292d:VERDICT command-exit 0. For app-shell again atfecd4e23, after the hook was moved touseSyncExternalStore: exit 0.react-hooks/set-state-in-effect; that is why it was rewritten./organizationsand Home's no-product-app state still draw one. N1: search is described "when there is an app to search". The note also names the standing notices at the top of the page's content.app-shell.mdxneeded no edit: its portal sentence ("draws the same frame there", the content area carrying the standing banners) is now true at this head.fecd4e23is unchanged (71). Of the 70 light ones, 68 exited 0 at once.check:skill-examplesexited 3 (client-reactwas not built in the fresh worktree); after building it, exit 0.check-empty-changesetexited 1: the DELIBERATE CORRECTION, confirmed by the seat's contract review. uivitest run scripts/:Test Files 172 passed | 2 skipped (174).--ran:71 derived, 71 run, 0 NOT-MEASURED (a DERIVED zero). overlap-check: clean againstmain, feat(studio): remove the Studio home; /studio opens the last package or Setup > Packages #37166, feat(studio): the object designer opens full-screen on its metadata address, tabs in #36513's order #37168 and feat(studio): the flow designer opens full-screen on its metadata address; no flow rail (#36903) #37169, and exit 1 against chore: version packages #35129 only (accepted); the push was gated on that.Rework readings at 2961b4a (seat ruling: order, changeset, app-shell doc)
Tasks: 75 successful, 75 total, 74 cached). Thenapps/console/src/pages/,packages/app-shell/src/console/docs/,UnifiedSidebar.footerSlot-36739,SidebarAppMenu-36112andConsoleLayout.noTopBar-36112ran:Test Files 177 passed (177) / Tests 1656 passed (1656),VERDICT command-exit 0.dispatch-gates --commandsat2961b4a9derived 71 commands (the changeset and the doc add the docs families). Of the 70 light ones, 68 exited 0 at once.check:skill-examplesexited 3: it refused for a missing@objectstack/client-reactbuild. After building that package it ran with exit 0 (350 prose examples type-check).check-empty-changesetexited 1: the DELIBERATE CORRECTION above, red by design.pnpm --dir ui exec vitest run scripts/:Test Files 172 passed | 2 skipped (174).--ran:71 derived, 71 run, 0 NOT-MEASURED (a DERIVED zero — all 71 recorded an exit code and none of them is 3).Acceptance notes
deviceScaleFactor2, this branch's Console on Vite. They were committed at672b06ddand removed in the next commit, so the PR's file list carries no binaries:headerelement is the index's own title block, not a bar.headerelement on the page.2961b4a9and committed at0b9b8280.AppDocsNavcolumn, with the same order. Re-captured too.usePackageDocsNavBooks) still read the book's own label. For an implicit book of an app's own package that is the humanized package id. The approved scope was the portal tree, so this is noted, not changed.overlap-checkreports exit 1 against chore: version packages #35129, the bot-maintained Version Packages PR (chore: version packages). That PR deletes every pending changeset, so the DELIBERATE CORRECTION above meets it as a modify/delete conflict on.changeset/37150-docs-pages-in-app-shell.md. Nothing was resolved by hand.origin/mainand every sister PR (feat(studio): remove the Studio home; /studio opens the last package or Setup > Packages #37166, feat(studio): the object designer opens full-screen on its metadata address, tabs in #36513's order #37168, feat(studio): the flow designer opens full-screen on its metadata address; no flow rail (#36903) #37169) merge cleanly.Verification
Two-minute check: run
pnpm --dir ui exec vitest run packages/app-shell/src/console/docs/__tests__/DocsPortalShell-37197.test.tsx. Expected: 16 passed, among them three per-path desktop pins and five PHONE CONTROLs. Or open/docsat 1440 px: no top bar, a 「文档」 head, and 「全部文档」 first in the sidebar.Gate readings
dispatch-gates --commands(objectstack-ai/objectstack, 16 paths against merge base93bd45957; the list is unchanged at the final head) derived 38 commands. 37 ran ate4db1f12, andpnpm --dir ui exec vitest run scripts/ran under the lock ateea1765f:Test Files 172 passed | 2 skipped (174). All exited 0 exceptcheck:test-source-alias. It asked for the palette's lazy@object-ui/plugin-detailload to be paid at collection in the new suite; fixed in1ffad1a4and green since.--ranreconciliation:38 derived, 38 run, 0 NOT-MEASURED (a DERIVED zero — all 38 recorded an exit code and none of them is 3).7977d28b, these re-ran and exited 0:check:test-source-alias,check:cross-package-test-inputs,check:nul-bytes,check:type-check-debt,check:tier-file-adoption,check-empty-changeset,check-changeset-no-major, and underui/check:new-line-citations(0 new citation(s)).overlap-checkbefore every push:VERDICT clean exit 0.origin/mainmerges cleanly, as do feat(studio): remove the Studio home; /studio opens the last package or Setup > Packages #37166, feat(studio): the object designer opens full-screen on its metadata address, tabs in #36513's order #37168 and feat(studio): the flow designer opens full-screen on its metadata address; no flow rail (#36903) #37169, which shareapp-shell/src/index.tsorSidebarAppMenu-36112.test.tsx.fecd4e23: 21 files, +1323 / -152. No governed path.Generated by Claude Code