Skip to content

feat(console): an app's docs page has one navigation — the docs column — with the path to its book and the previous and next article - #36000

Merged
objectstack-fleet[bot] merged 8 commits into
mainfrom
claude/project-thread-6fmf9m
Nov 21, 2026
Merged

objectstack-fleet[bot] merged 8 commits into
mainfrom
claude/project-thread-6fmf9m

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Requested by Sales · project thread

Part of #35424

repo:objectstack#1 · os-sales · session_01L6bhgWcCSnzHX9bYADvAVH · Area: b1-CX

维护者速读

  • 用户看到的变化:在应用里打开一篇文档,左边不再有应用菜单,只剩文档自己的一栏(顶部「← 返回〈应用〉」、搜索、这个应用的全部手册、底部「全部文档 →」);只有一条顶栏「〈应用〉 / 文档」;正文 720 px、15 px;「本页目录」随滚动高亮;文末有上一篇和下一篇;流程图可放大。应用的文档首页、空手册和找不到的页面顶部也有「← 返回〈应用〉」。
  • 为什么:文档页:看文档时不显示应用菜单,只留一栏文档导航;「全部文档」页带上顶栏(附效果图) #35424 指出同屏三套导航、两条顶栏、标题被截断、没有上一篇和下一篇、正文太窄。
  • 最坏情况:只影响显示。某个文档页如果漏了返回入口,读者只能用顶栏的应用切换器或浏览器后退;撤回这个 PR 即恢复原样。
  • 需要 Sales 做的:无。「全部文档」页(第 6–9 项)是下一个 PR。

What changes

The reading page half of #35424 (its items 1–5, design figure 25). The "All docs" page (items 6–9, figure 26) is the next PR.

Inside an app, a documentation page (/apps/<app>/docs/…):

  1. No app menu beside the docs. ConsoleLayout mounts no UnifiedSidebar on an app's docs routes (isAppDocsPath, beside isRecordPagePath), and the app bar draws no sidebar toggle there (its slot is held empty, as off an app). The left column is the docs' own (DocsNav), headed by 「← Back to 」 (the app the route segment addresses, by the label the app bar shows). Every other docs page inside an app (the app's docs index, a book with no articles, a book or doc not found) carries the same link at its top (DocShell draws AppDocsBackLink; the reader turns it off because its column has it), so no docs page is left without a way back.
  2. One bar. The app bar stays and reads 「 / Documentation」 (a docs crumb in AppHeader, from help.documentation). DocShell draws no bar of its own inside an app, so the separate 「Documentation / <title>」 strip is gone. Above the article, the path names the book: Documentation › , both links.
  3. Every book of the package in the column. The current book open, the others folded, each with its article count; long titles wrap instead of truncating (BookSidebar); a 「Search docs」 field filters the column by article title and summary; 「All documentation →」 at its foot (the existing help.allDocs key). (The full-text search of all docs is item 9, the next PR.)
  4. 「On this page」 marks the section being read as the page scrolls (useActiveHeading: the last heading at or above the bar plus the headings' scroll margin; the last one once the page is scrolled to its end), and the article ends with its book's previous / next article cards; at either end of the book the empty side says so.
  5. Article 720 px wide at 15 px (was ~590 px at 14 px). A Mermaid diagram gets an 「Enlarge」 control that opens it full size in a dialog: @object-ui/plugin-markdown adds MermaidEnlargeContext, which the reader provides; with no provider (every other markdown surface) a diagram renders exactly as before. The dialog's copy renames the render-id prefix (root id, scoped styles, markers), so no id appears twice while it is open.

The portal reader (/docs/<book>/<doc>) gets the same column, path and pager; its own header bar stays until the next PR gives that page the top bar.

@object-ui/app-shell exports matchAppBySegment and useServedAppLabel for the back link. Twelve new help.* keys in all 11 shipped locales (real text in each).

Why

The maintainer's topic #34571, card #35424: three navigations side by side on one screen (the app's 30-odd menu entries, the book's contents, "On this page"), a second bar under the app bar, the other books of the app reachable only through the app menu, truncated titles, no previous / next, no current section, a narrow 14 px body.

Verification

  • Browser, against the showcase app (objectstack dev --fresh, console on vite), zh-CN, 1440 × 900, /apps/com.example.showcase/docs/manual/showcase_tour_ui:
    • before: app menu drawn, two bars, article 592 px, body 14 px, no current section;
    • after: no app menu ([data-sidebar=sidebar] absent), one bar reading 「功能展示 / 文档」, article 720 px, body 15 px; scrolled to the end, 「本页目录」 marks 「Branding」 and the pager shows 上一篇 Tour · Data / 下一篇 Tour · Automation; 32 px below the pager at the end of the scroll (no blank screen; it was 24 px on main here too, so the hosted environment's blank screen was not reproduced on main).
    • At 900 px the column folds into the disclosure above the path, as the book sidebar did.
    • Screenshots (before / after) are kept with the card's evidence for the reviewer.
  • Tests (new pins in the existing harnesses):
    • docs-portal.test.tsx — the in-app reader: no bar of its own; back link and 「All documentation」; the path's two links; the pager at the first and last article; the search narrowing the column and its no-match line; a package with two books lists both (current open, other folded, unfolds on click) and no other package's book. The app's docs index and a not-found book lead back to the app; the reader carries the link once.
    • docs-reading.test.ts — reading order (a doc placed twice counted once, links and separators skipped), neighbours, the filter (title, summary, case, non-Latin), pickActiveHeading.
    • ConsoleLayout.phoneRecordOneBar-28483.test.tsx — docs routes draw no app menu and keep the app bar; other routes keep the menu; isAppDocsPath table.
    • AppHeader.systemBreadcrumbs-10969.test.tsx — 文档 / Documentation crumb on the docs routes; the empty toggle slot there, the toggle elsewhere.
    • Mermaid.enlarge-35424.test.tsx — the control and dialog with a provider (the dialog's copy under its own ids), nothing without one.
    • DocPage.docLinkBasename-12686.test.tsx — its portal control now reads every 「Documentation」 link (the header's and the path's); both name the portal.
  • vitest: apps/console, packages/plugin-markdown, packages/i18n in full: 1,399 files, 5,458 tests passed (one red on the first run, zh-hant-generated.test.ts: two zh-Hant strings were hand-written; regenerated with gen:zh-hant, now green). packages/app-shell: the 165 test files that import AppHeader, ConsoleLayout, the new exports or the package index, 1,458 tests passed (its full 2,356 files outran a 50-minute local budget; CI runs them). tsc for the four packages and eslint over the changed files: 0 errors, no new warnings.
  • overlap-check.mjs: clean against origin/main and the four open PRs sharing the locale files (feat(list): a two-row list toolbar — View settings beside the view name, a resident condition row, ⋮ More at the far right #35918, feat(app-shell): connect your Slack account on the notification settings page, and an admin Slack page in Setup (Part of #34730) #35968, fix(form): new master-detail form lines start on the child's defaults and skip an untouched line with a notice (#35940) #35984, feat(list,detail): a change that makes other fields required asks for them in place #35994).

Clause-②: yes (widening) — @object-ui/plugin-markdown exports MermaidEnlargeContext and MermaidEnlargeText; @object-ui/i18n adds 12 help.* keys; nothing removed
Metadata-protocol: none

Follow-ups (not in this PR): items 6–9 of #35424 (the "All docs" page: top bar, grouped by app, localized subtitle and counts, system packages named and shown to admins only, search all docs) — next PR, new thread.

Human Minimum

  • 1. Schemas start as Zod; packages/spec holds no runtime logic. (No spec change.)
  • 2. Every name I added uses the casing for its kind.
  • 3. No formatter ran; pnpm lint passes.
  • 4. One issue, one branch off an up-to-date main, one pull request.
  • 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset.
  • 6. packages/spec touched: n/a.
  • 7. No hand edits to content/docs/references/, packages/*/CHANGELOG.md or content/docs/releases/.
  • 8. Title, body and comments are in English.
  • The Before Submitting list in CONTRIBUTING.md is done.

🤖 Generated with Claude Code

https://claude.ai/code/session_01L6bhgWcCSnzHX9bYADvAVH

Claude-Session: https://claude.ai/code/session_01L6bhgWcCSnzHX9bYADvAVH
Co-authored-by: Claude <noreply@anthropic.com>
repo:objectstack#1 · os-sales · session_01L6bhgWcCSnzHX9bYADvAVH

The two help.* strings written by hand are now what gen:zh-hant writes
from zh-Hans (zh-hant-generated.test.ts).

Claude-Session: https://claude.ai/code/session_01L6bhgWcCSnzHX9bYADvAVH
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet
objectstack-fleet Bot requested a review from os-sales November 21, 2026 05:22
@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 21, 2026
repo:objectstack#1 · os-sales · session_01L6bhgWcCSnzHX9bYADvAVH

@object-ui/plugin-markdown is published and its entry now exports
MermaidEnlargeContext and MermaidEnlargeText, so the Clause-② line reads
yes (widening). Nothing is removed.

Claude-Session: https://claude.ai/code/session_01L6bhgWcCSnzHX9bYADvAVH
Co-authored-by: Claude <noreply@anthropic.com>
repo:objectstack#1 · os-sales · session_01L6bhgWcCSnzHX9bYADvAVH

help.allDocs already exists and renders "All documentation"; the call
site's defaultValue said "All docs" (check:i18n-keys default-value-drift).

Claude-Session: https://claude.ai/code/session_01L6bhgWcCSnzHX9bYADvAVH
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Posted 2026-11-21T05:53Z. The brief handed to the isolated declaration-face reviewer for PR #36000 (owed by the changeset's Clause-②: yes (widening) line, claim amendment on #35424). The record follows as its own comment.

Contract review brief — PR #36000 @ 06b8d69dd9404056bc1e2a15c6118e8c223edb23 (card #35424)

You review at TIER_DEFAULT. Render ONE ## Contract review record on this head — its shape is
node scripts/pm/record-recognisers.mjs --template --face declaration — with a PASS or FAIL verdict, and post it as ONE comment
on the PR or its card.

Inputs — these and nothing else:
· card #35424: its body and EVERY comment (rulings and earlier records included)
· PR #36000: its body, its file list, and the net diff against main at 06b8d69dd9404056bc1e2a15c6118e8c223edb23
· the check-runs on 06b8d69dd9404056bc1e2a15c6118e8c223edb23: their conclusions ARE the gate verdicts
⛔ Not the dispatch order, ⛔ not the dispatching seat's own conclusions — this brief is adversarial by design.

⛔ READ-ONLY. No worktree, no checkout, no build, no test run, no gate re-run, no ablation: the check-runs
on the head already answered every derived gate family, and a local run costs more than it returns.
If ONE probe is unavoidable, the record's Local-runs: line says probe — REASON; otherwise none.
Scratch space is /tmp/claude-0/-home-user/3d3cbaf6-4903-5fed-92d4-c2b94a45e868/scratchpad/pr-36000/ alone; nothing there you did not write this round is read.

Judge, in the record's own sections:
① Derived judgments — every accept-set and public-surface change the diff implies, each named right or wrong.
② Semver level — the changeset (or skip-changeset) matches what the diff publishes, and the Clause-②: line.
③ Boundary flags — every dev flag and every open_questions entry answered, or escalated.
On every face, SQL push-down: a new id materialisation or in-app join where SQL could push down is a
finding unless a reason is given (AGENTS.md, Prime Directive 5: SQL first).
Sign Implemented-by: with the dev's branch and Reviewed-by: with your session id — the value is the FIRST
thing after each colon.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUmopshYqDCrYekUj4

席位核对 — REWORK (L1-b)

Head-sha: 06b8d69 · read 2026-11-21T05:55Z

维护者速读

  • 文章页本身按效果图 25 做到了:不再显示应用菜单,左边只有一栏文档导航,顶部有「← 返回〈应用名〉」;顶栏写「〈应用名〉 / 文档」;标题上方的路径带手册名;本页目录会随滚动高亮;页尾有上一篇和下一篇;正文 720px、15px;流程图可以放大。
  • 要返工一处:应用菜单在所有文档页上都去掉了,但「返回应用」的入口只加在文章页上。应用的文档首页(文章路径里「文档」这个链接点进去就是它),以及空手册或找不到的手册页,现在既没有应用菜单、也没有返回入口,只能用顶栏的应用切换器或浏览器后退才能回去。
  • 改完后可以合。所有改动只影响显示,可以直接撤回。

Must-fix

  • M1 — the app's docs index and the empty / unknown book page lose every way back to the app. isAppDocsPath matches /apps/APP/docs and everything under it, so ConsoleLayout drops UnifiedSidebar on all of those routes. Inside an app, DocShell now returns its children bare, so its bar is gone too. Only DocPage gains DocsNav with 「← Back to APP」:

    • /apps/APP/docs renders AppDocsIndex (AppContent's index route). It has a link to /docs and no link to the app. This PR's own path above every article links here (<Link to={base}> "Documentation"), so a reader one click away from the article lands on a page with no app menu and no back link.
    • BookPage's "This book has no documents yet" / "Book not found" branch is the same.

    The way back that remains is the app switcher in the bar (open it, pick the same app) or the browser's Back. That is the "回不来" the maintainer named on 文档页:看文档时不显示应用菜单,只留一栏文档导航;「全部文档」页带上顶栏(附效果图) #35424. Fix: give those pages the same 「← Back to APP」 link, for example the backTo block from DocsNav or a small shared piece. Alternatively, keep the app menu off only on the article route. Pin it in docs-portal.test.tsx for the index and the not-found book. If you choose to leave this to PR-b, say so in the body and on 文档页:看文档时不显示应用菜单,只留一栏文档导航;「全部文档」页带上顶栏(附效果图) #35424. Either way the gap should not ship silently.

Should-fix

  • S1 — the body has no 维护者速读 section. The fleet's PRs carry one for Sales, in Chinese and at business level (standing rule 11-19 22:04Z). Add four lines: what the reader sees, why, the worst case, and what is needed from Sales.
  • S2 (wording, zh-Hans/zh-Hant): help.diagram = 「流程图」, but the dialog title is used for every Mermaid diagram (sequence, ER, state and others), not only flowcharts. 「图示」 or 「图表」 matches the en "Diagram". help.searchDocs 「搜索文档」 labels a field that filters titles and summaries in the column. The body says the full-text search is item 9. The label is acceptable, but the item-9 search will need a different label so the two don't read the same.

Nits

  • N1: the enlarged dialog re-inserts the same SVG string, so the inline copy and the dialog copy share id="os-mermaid-N" and its marker ids while the dialog is open. Browsers resolve both copies to the same definitions, so it renders fine. It is still a duplicate id; renaming the dialog copy's root id would avoid it.
  • N2: the pager's ← / → glyphs and the ArrowLeft / ArrowRight icons do not flip in ar. Check whether the console mirrors elsewhere; if it doesn't, leave it.

Checked

  • l1-face at 06b8d69d: every item ok. Part of #35424 is right: items 6–9 go to the next PR. All four touched packages are in the changeset (console, app-shell, plugin-markdown, i18n). The declaration is Clause-②: yes (widening). all-checks was not measured at read time: 45 success, 2 pending (Check Changeset, PR-body guards), 0 failed.
  • ConsoleLayout.isAppDocsPath: ^/apps/[^/]+/docs(?:/|$), so it does not catch /apps/x/docsfoo. It is pinned in a table test.
  • AppHeader: a docs crumb from help.documentation. The toggle slot is held empty when routeType === 'docs', so the mark does not jump.
  • DocPage:
    • packageBooks is every book whose pkgOfBook equals the current book's package, so no other package's book is listed (pinned).
    • The back link uses matchAppBySegment + useServedAppLabel, the same label the bar shows.
    • articleNeighbours walks bookArticles, which drops separators and link-only entries and counts a doc placed twice once (pinned).
    • At lg and below, the column folds into a <details>.
  • useActiveHeading:
    • It listens in the capture phase on document, passive, rAF-throttled with one frame in flight, and resize is covered too.
    • The listener is cleaned up, and the effect re-keys on the joined ids, not on array identity.
    • The "at end" arm only trusts a scroll container that contains the first heading.
  • Mermaid enlarge: with no provider, EnlargeableDiagram returns the inline element unchanged, with no wrapper (pinned). With a provider, the dialog has an sr-only DialogTitle.
  • Exports: @object-ui/plugin-markdown adds MermaidEnlargeContext / MermaidEnlargeText, an additive widening. The seat runs the TIER_DEFAULT declaration L2. @object-ui/app-shell (private) adds matchAppBySegment and useServedAppLabel.
  • Locales: 12 keys in all 11 packs with real text (read in zh-Hans, ja and ar). zh-Hant is regenerated, and its earlier red run is disclosed in the body. 「全部文档」 reuses help.allDocs.

Owed

  • A new head for M1. I'll read only the delta.
  • L2 (declaration, TIER_DEFAULT) is the seat's; this L1 does not replace it.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Posted 2026-11-21T05:57Z.

Contract review

Served-tier: TIER_DEFAULT
Head-sha: 06b8d69dd9404056bc1e2a15c6118e8c223edb23
Local-runs: none

Inputs: card #35424 (body, the triage comment, the claim and its Clause-② amendment), the PR body, its 30-file list, and the net diff against main on this head. Gates are taken from the head's check-runs: every PR-side run concluded success or was skipped by design. Both Check Changeset runs (jobs 136745966805 and 136751223960) succeeded. UI Published Artifacts is push-only by its if:, so its skip here is expected.

① Derived judgments

  • @object-ui/plugin-markdown: public surface widened, right.
    • The entry adds export { MermaidEnlargeContext, type MermaidEnlargeText }. That is a React context, null by default, and a two-field text interface (enlarge, title).
    • Nothing is removed or renamed. Mermaid keeps its signature ({ chart }: { chart: string }).
    • With no provider, EnlargeableDiagram returns the diagram element itself. There is no wrapper and no control, so every existing markdown surface renders the same DOM as before. Mermaid.enlarge-35424.test.tsx pins both arms.
    • The new runtime import (Dialog, DialogContent, DialogTitle) comes from @object-ui/components. The package already depends on it (workspace:*, already imported by index.tsx), so no dependency is added.
    • The enlarged view uses the same strict-mode SVG string the inline diagram already trusts. No new HTML enters the page.
  • @object-ui/i18n: public surface widened, right, but not named on the declaration line (N1).
  • @object-ui/app-shell: no published surface. private: true is confirmed in its package.json. The new index exports matchAppBySegment and useServedAppLabel, and the module export isAppDocsPath, publish nothing. The claim amendment says so, and it is right.
  • @object-ui/console: published surface unchanged, right. The package's exports is ./plugin.js and plugin.d.ts, which this diff does not touch. DocsNav, docs-reading, useActiveHeading and ArticlePager are app-internal modules.
  • Accept set of the routes: unchanged, right. No route, API, doc metadata or spec key changes.
    • isAppDocsPath (^/apps/[^/]+/docs(?:/|$)) only decides whether the app menu is mounted. It is read on the router-relative location.pathname, the same way as the existing isRecordPagePath.
    • Its table pins the two near misses: /apps/crm/docsearch and /apps/crm/crm_lead/docs.
  • Behaviour at the shell boundary: right, and within the card's scope.
    • On every /apps/APP/docs route, DocShell now draws no bar of its own. That covers the app docs index and the empty or refused states, not only the article.
    • Those pages keep the app bar, which now reads 「APP / Documentation」, so the way back stays one step.
    • The article page adds the DocsNav column. The card's acceptance names the article page, and the all-docs index is PR-b's items 6–9.
  • Previous / next pager: N3.
    • articleNeighbours answers null on both sides when the routed doc is not in the slug's book.
    • DocPage does not redirect such a URL: only a book-name segment is redirected (bookNamedBy).
    • So a hand-typed /docs/BOOK_A/DOC_OF_BOOK_B draws both "first article" and "last article" cards.

② Semver level

  • Changeset .changeset/35424-docs-reader-one-column.md: right. It bumps @object-ui/console, @object-ui/app-shell, @object-ui/plugin-markdown and @object-ui/i18n, each as patch.
    • Each of the four has moved source.
    • The three published packages are all owed an entry, and none is missed. @object-ui/components is only consumed.
    • The private app-shell entry is harmless, and Check Changeset accepted it.
  • Metadata-protocol: none: right. A UI string pack, a React context and console layout are not the metadata protocol an author writes against. Under AGENTS.md (Post-Task Checklist 3; maintainer ruling A on changeset levels: minor only when the metadata protocol changes (added / narrowed / semantic), patch otherwise; release notes grouped by what the reader must do (maintainer ruling A, 2026-10-21) #25105) the level follows that line alone, and none takes patch.
  • Clause-②: yes (widening): right.
    • The diff widens two published surfaces (plugin-markdown's entry and i18n's packs) and narrows none. Nothing is removed, so no BREAKING banner or ADR-0087 disposition is owed.
    • The line reads byte-identically in the PR body and the changeset body, and the claim's amendment carries the same value.
    • Its description names only the plugin-markdown exports (N1).

③ Boundary flags

  • Dev flag: app-shell's full suite was not run locally ("outran a 50-minute local budget; CI runs them"). Answered. Test UI and all 16 of its shards succeeded on this head.
  • Dev flag: card item 5's "no blank screen at the end of the page" was not reproduced.
    • The PR reports 32 px below the pager at the end of the scroll, against 24 px on main.
    • The card's observation was made on the hosted preview, whose console the card itself says predates main.
    • Answered as measured, not fixed: nothing in this diff could cause it. It is owed one re-check on the hosted environment once this deploys. If it recurs there, it belongs to the card, not to this PR.
  • Dev flag: the zh-Hant packs were hand-written and then regenerated. Answered. 69823f040 regenerates them with gen:zh-hant, and the generated-pack test is in the green Test UI run.
  • open_questions: none raised. The claim's scope note (the column's search filters titles and summaries, because the list endpoint carries no full text) is a stated scope, and it holds in filterBookArticles. Full-text search is PR-b item 9.
  • SQL push-down: no finding.
    • The diff adds no request. The package filter (pkgOfBook(b) === pkg), the title filter and the reading order all run over the books and docs lists that useBookData already loads for the reader's book resolution.
    • useMetadata().apps is the shell's cached app list.
    • There is no new id materialisation and no in-app join over data a query could have narrowed.

Findings

  • N1 · nit. The Clause-②: line's description, in the PR body and the changeset, names only @object-ui/plugin-markdown. The 12 additive help.* keys in the published @object-ui/i18n packs are a public-surface widening as well. The value yes (widening) is right, so nothing is re-declared. Naming i18n in the description would make the line's enumeration complete.
  • N2 · nit. The changeset body, which ships as the CHANGELOG, names the column's foot link 「All docs →」. The shipped en value of help.allDocs is 'All documentation', as the PR body says. The CHANGELOG text should match.
  • N3 · nit. When the routed doc is not in the slug's book, the pager draws "This is the first article in this book" and "This is the last article in this book" together. Both statements are false. Drawing no pager, for example when bookArticles(resolvedBook) does not hold name, would be accurate. This is a rare, hand-typed URL. It has no contract effect.

Implemented-by: claude/project-thread-6fmf9m
Reviewed-by: session_01L6bhgUkbQqRUUFSiu2HGob

VERDICT: PASS

repo:objectstack#1 · os-sales · session_01L6bhgWcCSnzHX9bYADvAVH

An app's docs routes draw no app menu, but only the reader carried
「← Back to APP」. DocShell now draws it at the top of every other docs page
inside an app (the docs index, a book with no articles, a book or doc not
found); the reader turns it off, its column has it. The link and its
target are shared (AppDocsBackLink, useAppDocsBackTo).

Also from review: the enlarged diagram's copy renames the render-id prefix
so no id appears twice; zh help.diagram reads 图示 (every Mermaid diagram,
not only flowcharts); the changeset's Clause-② line names the i18n keys.

Claude-Session: https://claude.ai/code/session_01L6bhgWcCSnzHX9bYADvAVH
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUmopshYqDCrYekUj4

席位核对 — delta ACCEPT (L1-b)

Head-sha: 0bbda2d · read 2026-11-21T06:32Z · delta from 06b8d69d (REWORK 7058267060)

维护者速读

  • 可以合:应用内的每个文档页现在都有「← 返回〈应用名〉」,包括文档首页、空手册页和找不到的页面;阅读页上只出现一次(在左栏里)。上一轮要返工的那处已经修好。
  • 另外:中文「流程图」改成了「图示」,PR 正文补上了维护者速读。

Delta

  • M1 done:
    • Inside an app, DocShell now draws a docs-back-bar with the shared AppDocsBackLink. The target comes from useAppDocsBackTo: matchAppBySegment + useServedAppLabel, the same answer the column had, moved out of DocPage.
    • Every DocShell user gets the bar: AppDocsIndex, BookPage (empty and not found), DocsSlug not found, DocRefusal, and DocPage's missing, conflict and error branches. Only the reader passes backLink={false}, because its column carries the link.
    • DocsNav renders the same component, so there is one link markup and one data-testid.
    • New pins:
      • the docs index (multi-book, no redirect, where stays on /docs) leads back to /apps/com.example.showcase;
      • /apps/crm/docs/nonesuch leads back to /apps/crm;
      • the reader has no docs-back-bar.
  • S1 done: the body has a four-line 维护者速读.
  • S2: zh-Hans help.diagram is now 「图示」, and zh-Hant is regenerated as 「圖示」. The search label is kept, with a note to PR-b; that answers it.
  • N1 done: the dialog copy renames the render-id prefix (os-mermaid-N → os-mermaid-N-enlarged) everywhere in its SVG string: the root id, the style selectors, the markers and their references. No duplicate ids remain while the dialog is open. The pin is reported red with the rename removed. The match takes this SVG's own root id, so the split cannot reach another diagram's id.
  • N2: left as is, since nothing else in the console mirrors. Agreed.
  • The seat's L2 text points are in the changeset: the Clause-② line names the i18n keys, and the foot link reads 「All documentation →」, matching help.allDocs.
  • l1-face at 0bbda2d5: clean (47 success, 15 expected skip, 0 failed, 0 pending, mergeable clean).

Must-fix / Should-fix

None.

Nit (optional)

  • N3: the reader passes backLink={false} unconditionally, but its column (docsNav) is drawn only when packageBooks is non-empty. A reader page whose book cannot be placed in a package would draw neither the column nor the bar. backLink={!docsNav} covers that case with no change elsewhere. No route reaches it today that I could find, so this is optional.

Owed

  • L1 is final on this green head.
  • L2 (declaration, TIER_DEFAULT) is the seat's. This L1 does not replace it.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Posted 2026-11-21T06:32Z. The delta brief handed to the same isolated declaration-face reviewer for PR #36000, on the head after L1-b's rework round. The record follows as its own comment.

Contract review brief — PR #36000 @ 0bbda2d50d881b91df60ed5b76c257088c814ceb (card #35424)

You review at TIER_DEFAULT. Render ONE ## Contract review record on this head — its shape is
node scripts/pm/record-recognisers.mjs --template --face declaration — with a PASS or FAIL verdict, and post it as ONE comment
on the PR or its card.

Inputs — these and nothing else:
· card #35424: its body and EVERY comment (rulings and earlier records included)
· PR #36000: its body, its file list, and the net diff against main at 0bbda2d50d881b91df60ed5b76c257088c814ceb
· the check-runs on 0bbda2d50d881b91df60ed5b76c257088c814ceb: their conclusions ARE the gate verdicts
⛔ Not the dispatch order, ⛔ not the dispatching seat's own conclusions — this brief is adversarial by design.

⛔ READ-ONLY. No worktree, no checkout, no build, no test run, no gate re-run, no ablation: the check-runs
on the head already answered every derived gate family, and a local run costs more than it returns.
If ONE probe is unavoidable, the record's Local-runs: line says probe — REASON; otherwise none.
Scratch space is /tmp/claude-0/-home-user/3d3cbaf6-4903-5fed-92d4-c2b94a45e868/scratchpad/pr-36000/ alone; nothing there you did not write this round is read.

Judge, in the record's own sections:
① Derived judgments — every accept-set and public-surface change the diff implies, each named right or wrong.
② Semver level — the changeset (or skip-changeset) matches what the diff publishes, and the Clause-②: line.
③ Boundary flags — every dev flag and every open_questions entry answered, or escalated.
On every face, SQL push-down: a new id materialisation or in-app join where SQL could push down is a
finding unless a reason is given (AGENTS.md, Prime Directive 5: SQL first).
Sign Implemented-by: with the dev's branch and Reviewed-by: with your session id — the value is the FIRST
thing after each colon.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Posted 2026-11-21T06:34Z.

Contract review

Served-tier: TIER_DEFAULT
Head-sha: 0bbda2d50d881b91df60ed5b76c257088c814ceb
Local-runs: none

This record replaces the earlier one on 06b8d69dd9404056bc1e2a15c6118e8c223edb23.

Inputs:

Gates, from this head's check-runs:

  • 47 succeeded and 15 were skipped; none failed or is in progress.
  • Both Check Changeset runs succeeded (jobs 136755203229 and 136755412405), and all 16 Test UI shards succeeded.
  • The skipped runs are the same set as on the earlier head: core-only, opt-in, merge-queue-only and push-only lanes. UI Published Artifacts is push-only by its if:.

① Derived judgments

  • @object-ui/plugin-markdown: the public surface is unchanged by the delta, and the net widening is right.
    • The net entry still adds exactly MermaidEnlargeContext and type MermaidEnlargeText. Mermaid keeps ({ chart }: { chart: string }).
    • The delta adds one module-private function, enlargedSvg, and exports nothing new.
    • enlargedSvg renames the render-id prefix (os-mermaid-N, the id Mermaid.tsx passes to mermaid.render) to os-mermaid-N-enlarged in the dialog's copy only. That covers the root id, the scoped style selectors and the marker ids together, so the open dialog no longer duplicates ids.
    • The transform only appends text to an existing token of the same strict-mode SVG. It cannot introduce markup.
    • With no provider the component still returns the inline element unchanged. The new useMemo runs before that early return, so the hook order is stable.
    • The test now pins the root id, the marker id, the marker-end reference and that no os-mermaid- id appears twice.
  • @object-ui/i18n: right.
    • The net change is still 12 additive help.* keys in each of the 11 packs, with nothing removed.
    • The delta changes one value in two packs: help.diagram becomes 「图示」 in zh-Hans and 「圖示」 in zh-Hant, replacing 「流程图」 / 「流程圖」.
    • No key is added, removed or renamed. The new word fits every Mermaid diagram type, not only flowcharts.
  • @object-ui/app-shell: no published surface. It is private: true, and the delta does not touch it.
  • @object-ui/console: the published surface is unchanged, right. exports is ./plugin.js and plugin.d.ts, which the diff does not touch.
    • The new AppDocsBackLink.tsx and useAppDocsBackTo.ts are app-internal.
    • useAppDocsBackTo is the earlier inline back-link logic from DocPage, moved out unchanged: matchAppBySegment plus useServedAppLabel, undefined off an app.
  • Behaviour at the shell boundary: right, and L1-b's M1 is closed.
    • Inside an app, DocShell now draws docs-back-bar with the shared AppDocsBackLink on every docs page: the app's docs index, an empty book, and an unknown book or doc. On the portal, backTo is undefined and the old header is kept.
    • The reader passes backLink={false}, so its column carries the link once. DocPage's loading, not-found and refused states keep the default and do get the bar.
    • docs-portal.test.tsx pins the docs index, a not-found entry, and the reader drawing no second bar.
    • The accept set of the routes is unchanged. isAppDocsPath is untouched since the earlier head.
  • Previous / next pager: N3 carried forward. The delta does not touch articleNeighbours or the pager. A doc addressed under a book slug that does not hold it still draws "first article" and "last article" together.

② Semver level

  • Changeset .changeset/35424-docs-reader-one-column.md: right.
    • It bumps @object-ui/console, @object-ui/app-shell, @object-ui/plugin-markdown and @object-ui/i18n, each as patch.
    • The delta adds no package: all four still move, and the three published ones are each owed their entry.
  • Metadata-protocol: none: right. Under AGENTS.md (Post-Task Checklist 3; maintainer ruling A on changeset levels: minor only when the metadata protocol changes (added / narrowed / semantic), patch otherwise; release notes grouped by what the reader must do (maintainer ruling A, 2026-10-21) #25105), none takes patch.
  • Clause-②: yes (widening): right, and N1 is closed.
    • The line now reads @object-ui/plugin-markdown exports MermaidEnlargeContext and MermaidEnlargeText; @object-ui/i18n adds 12 help.* keys; nothing removed. That names both published widenings.
    • It reads byte-identically in the PR body and the changeset body.
    • Nothing narrows, so no BREAKING banner or ADR-0087 disposition is owed.
  • N2 is closed. The changeset body now names the foot link 「All documentation →」, which matches help.allDocs. It also describes the new back link on the other docs pages.

③ Boundary flags

  • Dev flag: card item 5's "no blank screen at the end of the page". It is unchanged since the earlier head and still answered as measured, not reproduced: 32 px against 24 px on main, with the hosted preview predating main. It is owed one re-check on the hosted environment after this deploys.
  • Dev flag: app-shell's full suite was not run locally. Answered: all 16 Test UI shards succeeded on this head.
  • Dev flag: zh-Hant was regenerated. Answered: the help.diagram value changed in the same way in both Chinese packs, and the generated-pack test is in the green Test UI run.
  • L1-b REWORK M1 (no way back from the app's docs index or an empty or unknown book). Answered by 0bbda2d50, as read in ① above.
  • open_questions: none raised. The search scope note (titles and summaries only, because the list endpoint carries no full text) still holds. Full-text search is PR-b item 9.
  • SQL push-down: no finding. The delta adds no request. useAppDocsBackTo reads the shell's cached useMetadata().apps, which DocShell and DocPage already read. The net filters still run over the lists useBookData already loads. There is no new id materialisation and no in-app join.

Findings

  • N1 · nit: closed. The Clause-②: description now names the i18n keys.
  • N2 · nit: closed. The changeset text now reads 「All documentation →」.
  • N3 · nit: open, carried forward.
    • When the doc in the URL is not in the slug's book, the pager draws "This is the first article in this book" and "This is the last article in this book" together. Both are false.
    • A fix: draw no pager when bookArticles(resolvedBook) does not hold name.
    • This is a rare, hand-typed URL with no contract effect, so it does not hold the PR.

Implemented-by: claude/project-thread-6fmf9m
Reviewed-by: session_01L6bhgUkbQqRUUFSiu2HGob

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Regen-provenance: declaration-face record 7058702325 (delta PASS) · 0bbda2d50 → a8d388a60 · diff <(git diff MB_OLD 0bbda2d50 -- . ':!.changeset') <(git diff MAINPARENT a8d388a60 -- . ':!.changeset') → empty once index and @@ offset lines are set aside (only line offsets moved, in the 9 locale files main also edited outside help.*) · 2026-11-21T06:59Z

a8d388a60 is a merge of main with an empty --remerge-diff, so the PR's own change is byte-identical to the reviewed head and the record carries over (contract-review.md L49). Check-runs on a8d388a60: 45 success, 13 skipped, none failed.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUmopshYqDCrYekUj4

席位核对 — merge-only delta ACCEPT (L1-b)

Head-sha: a8d388a · read 2026-11-21T06:59Z · delta from 0bbda2d5 (ACCEPT 7058671336)

维护者速读

  • 只是把最新的 main 合进来,没有新改动;可以合。

Delta

  • One merge commit, 0bbda2d5 + main ec243639. git merge-tree --write-tree of the two parents gives tree 178bace8, which equals the head's tree, so there is no hand resolution.
  • The PR's net diff against its new base matches the one before: identical numstat per file and identical added/removed lines. Only the hunk offsets moved.
  • Main and this PR both touch the 11 locale packs only, so I checked that each of the 12 new help.* keys appears exactly once in en.ts after the merge.
  • l1-face at a8d388a6: clean (45 success, 13 expected skip, 0 failed, 0 pending, mergeable clean).

Must-fix / Should-fix

None.

Owed

  • L1 final on this head. L2 (declaration) is the seat's.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Seat landing · 2026-11-21T07:00Z · #35424 PR-a (items 1–5): an app's docs page has one navigation, the docs column, with the path to its book and the previous and next article. Clause-②: yes (widening) (two @object-ui/plugin-markdown exports and 12 help.* keys in @object-ui/i18n, nothing removed). The seat's declaration-face L2 at TIER_DEFAULT read PASS 7058292153 and delta PASS 7058702325 on 0bbda2d50; the PR then merged main (K was 19) at a8d388a60 with an empty remerge-diff, carried by Regen-provenance on this PR. L1-b merge-only ACCEPT 7058962852 on a8d388a60 (this head). check-governed-merges --pr 36000 reads NOT governed (+1210/−74). K read by hand: 4 since the merge base, and main since then touches neither translations/ nor skills/. On this head, 45 check-runs are success, 13 are skipped and none failed; mergeable clean. The seat readies this PR and arms auto-merge in the same step. The PR carries Part of #35424; items 6–9 go to PR-b in a new session.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 21, 2026 07:00
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 21, 2026
Merged via the queue into main with commit 141a826 Nov 21, 2026
59 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-6fmf9m branch November 21, 2026 07:21
247257110 pushed a commit to 247257110/objectstack that referenced this pull request Nov 22, 2026
… session read, and the chrome no longer waits for the route's reads (objectstack-ai#36014)

<!-- claude-projects-attribution: {"github_login":"os-sales"} -->
_Requested by **Sales** · [project
thread](https://claude.ai/code/project/chan_01D5bWFY3rFzgJcytD5gD4Uu?thread=cmsg_01D5bWFY3rFzgJcytD5gD4UuXu8529KKMpkikFhpmiBwMt)_

Part of objectstack-ai#35981

Clause-②: no
Metadata-protocol: none
Skills-docs: none — no authorable metadata changes (Metadata-protocol:
none)

repo:objectstack#1 · os-sales · session_01L6bhgWwKdjqiYQSujUXhn7

## 维护者速读

-
用链接或刷新整页打开任何应用页(记录页、列表页等)时,登录状态一确认,整屏的「正在打开你的控制台…」就换成控制台的空框架:顶栏、侧栏(宽度和用户上次留下的一样)、和页面形状一样的灰色骨架。本地测量:整屏启动画面从约
1.1 秒提前到约 0.4 秒消失;把权限接口模拟成托管环境的 3 秒时,从约 3.8 秒提前到约 0.4 秒。
-
骨架里不出现应用名称、图标、任何菜单项或按钮:这些要等应用列表、权限和管理员判定回来才知道,所以「闪一下别的应用」「闪一下没权限的菜单」「误跳转」都不会发生,判定的输入和时机与改动前完全相同。
- 记录内容出现的时间不变(本地约 1.5 秒,模拟 3 秒权限时约 4.2 秒),没有变慢;本 PR
只改「等待时看到什么」。数据本身更早发出要动权限前置读取,另议。
- 出错时最坏情况是骨架和真实框架之间有一次位置跳动,可直接撤回;不改任何接口和返回格式。托管环境前后对比要等部署后才能测,卡片保持打开(本
PR 写 Part of),由座位安排。

## What changes

- New `ui/packages/app-shell/src/console/ConsoleBootShell.tsx`:
- `ConsoleBootShell`: the console chrome's frame with nothing in it. The
real `AppShell` from `@object-ui/layout` (same sidebar primitive and
route-slot classes as `ConsoleLayout`; since objectstack-ai#36187, no top bar from 768
px up and grey blocks where the sidebar's head puts the app menu, the
search and the bell and its foot the account; the 48 px top bar on a
phone and on a docs page), `primeConsoleSidebarOpen` run before the
sidebar provider reads its cookie (as `ConsoleLayout` does), grey blocks
in the bar and the sidebar, and in the slot the skeleton of the route
the URL names (`metadataReadsForAppRoute`). No text, no link, no button.
It draws the shape the chrome will have on the route and width, from the
same predicates `ConsoleLayout` reads (`showHeader={(phone || docsPage)
&& !recordPageOwnsTopBar}`) (moved to `layout/consoleRoutePaths.ts`,
re-exported from `ConsoleLayout`): no sidebar on an app's docs pages
(`isAppDocsPath`, objectstack-ai#36000) and no top bar on a phone record page
(`isRecordPagePath`, objectstack#28483). It carries `data-boot-splash`
(it is still the boot wait) and `data-boot-shell`.
- `ConsoleBootFallback`: the frame on an `/apps/:app/*` route once
`useAuth()` has answered with a user; `LoadingScreen` while the session
read is out, with no user, on every other route (`/home`, auth surfaces,
`/forms/…`), and outside a router.
- `RouteMetadataSkeleton` moved here from `AppContent.tsx`, with a
`boot` flag that adds `data-boot-splash`.
- `ConsoleShell.tsx` `LoadingFallback` renders `ConsoleBootFallback`.
That covers the gates between the session read and `AppContent`:
`ConnectedShellInner` (adapter), `RequireOrganization` (organization
list) and the console host's `ConsolePermissionsScope`
(`ui/apps/console/src/AppContent.tsx`, now
`loadingFallback={<LoadingFallback />}`; its error fallback is
unchanged).
- `AppContent.tsx`:
- The readiness gate draws `ConsoleBootShell` instead of
`LoadingScreen`, and holds only on the adapter, the app list, the admin
verdict (objectui#5619) and the deployment flags (`/auth/config`). The
flags are new to the gate: the chrome's navigation gates read them, and
a navigation predicate naming a flag (`features.cloudManaged != true`)
faults and withholds its entry while none are bound (objectui#12700).
Before, the route's own reads made the chrome mount after that answer by
timing only; with them off the gate, Live E2E UI caught the fault
(`list-row-action-cel`), reproduced locally by holding `/auth/config` 2
s. The first-paint wait on the route's own buckets (`!firstPaintDone &&
!routeReadsSettled`, objectui#12809) is gone: the chrome mounts, and the
route slot shows `RouteMetadataSkeleton` until `routeReadsSettled`, the
path a later navigation already took.
- The two access-verdict waits before the chrome
(`appSurfaceAwaitsVerdict`, `requestedAppMissing`) draw the frame too.
- The route slot's `Suspense` fallback is `RouteMetadataSkeleton … boot`
instead of the full-screen `LoadingScreen` inside the chrome (measured
locally: 0.2 s of logo splash inside the chrome while the record page's
chunk resolved).
- `firstRouteDrawn` (replaces `firstPaintDone`) keeps the first route
skeleton's `data-boot-splash` until the route's reads have landed once.
- `RedirectWithSplash` paints `ConsoleBootFallback` instead of
`LoadingScreen`, so a boot redirect out of a gate that was drawing the
frame (`RequireOrganization` → `/organizations`, `AppContent` → home)
still changes no pixels during its hand-off (objectui#6378).

Read first (risk order):
1. `AppContent.tsx`, the readiness gate and the route slot
(`RouteMetadataSkeleton`, the `Suspense` fallback).
2. `ConsoleBootShell.tsx`, `RoutedBootFallback`'s conditions.
3. `ConsoleShell.tsx` `LoadingFallback`, `RedirectWithSplash.tsx`.

## Why

An `/apps/:app/*` open passed five gates in a row, each drawing the
full-screen splash: `AuthGuard` (`get-session`), `ConnectedShellInner`
(adapter), `RequireOrganization` (`organization/list`),
`ConsolePermissionsScope` (`/auth/me/permissions`, more than 3 s
server-side on the hosted environment, objectstack-ai#35987), then `AppContent`'s gate
(app list, admin verdict, the route's own reads until the first paint).
Only the first decides whether there is a session. The others decide
which app this is, which navigation exists and where to redirect, and
the frame shows none of those.

What each guarantee rests on, unchanged:
- **No wrong-app flash**: the frame names no app. The chrome still
mounts only once the app list is in and the URL's app is matched;
`requestedAppMissing` and the access-verdict screens are unchanged.
- **No unauthorised-menu flash**: navigation entries come only from the
real chrome (`UnifiedSidebar`, `AppHeader`), which still mounts after
the permission answer and the admin verdict.
- **No redirect loop or wrong redirect**: the frame never navigates; the
no-active-app redirect still waits for the admin verdict, and the
organization redirects for their own inputs.
- **Boot-paint semantics** (objectui#12980, readiness waits): the frame
and the first route skeleton carry `data-boot-splash`, so the chrome's
deferred feeds (`sharedUserFeeds`), the locale list (`loadLocales`) and
the e2e/smoke waits keyed on that marker wait for exactly what they
waited for before.

What the chrome reads before the route's buckets land:
`ConsoleLayout`/`AppHeader`/`CommandPalette` get the object list the
route has so far (the scope's or none). The header's object crumb is
absent until the object lands, as on any later navigation today. Nothing
in the chrome decides from it.

## Verification

### Before/after, the same record page (local and throttled, not hosted)

`examples/app-showcase` (`pnpm dev -- --fresh`, seeded admin), behind a
local HTTP/2 TLS proxy (objectstack-ai#35987's recipe), Chromium 1280×800, zh-CN, JS
cached, DevTools throttling 300 ms RTT / 6 Mbps, 3 runs per row,
full-page open of
`/_console/apps/com.example.showcase/showcase_project/record/<id>`.
Seconds from navigation start. Paint milestones from a MutationObserver:
full-screen splash gone (no `LoadingScreen` left and the pre-JS splash
gone), frame drawn (`data-boot-shell`), chrome drawn (`console-route`),
record shown (its name in the route slot). The second profile holds
`/auth/me/permissions` 3 s in the proxy, a stand-in for the hosted
server time (simulated, not measured hosted).

| Profile | | `get-session` answered | full-screen splash gone | chrome
drawn | record shown |
|---|---|---|---|---|---|
| 300 ms / 6 Mbps | before | 0.38 / 0.40 / 0.35 | 1.69 / 1.15 / 1.09 |
1.51 / 0.96 / 0.87 | 2.10 / 1.52 / 1.46 |
| | after | 0.44 / 0.35 / 0.36 | **0.69 / 0.37 / 0.37** (frame) | 1.19 /
0.81 / 0.82 | 1.89 / 1.50 / 1.52 |
| + permissions held 3 s | before | 0.47 / 0.45 / 0.35 | 4.03 / 3.87 /
3.78 | 3.79 / 3.62 / 3.57 | 4.40 / 4.25 / 4.16 |
| | after | 0.42 / 0.41 / 0.35 | **0.74 / 0.44 / 0.37** (frame) | 3.89 /
3.63 / 3.52 | 4.53 / 4.26 / 4.15 |

- The frame replaces the splash within about 20 ms of the session answer
in runs 2 and 3 (run 1 of each row is the first open after the warm-up
and starts its reads late), before `/meta/page` answers (0.73–1.10) and
well before the permission answer.
- "Before" splash gone comes after "chrome drawn" because the chrome
mounted with the full-screen `LoadingScreen` inside it while the record
page's chunk resolved; after, that slot shows the record skeleton.
- Chrome drawn and record shown do not move beyond run noise: the
record's data read still leaves after the permission answer and the
record page's mount (`POST …/page` sent at the same times before and
after). Moving that read earlier is a different change (a data read
before the permission answer), not taken here.
- ⚠ Gap: the hosted environment is not reachable from this container,
and an "after" there exists only once this is deployed. The hosted
before/after (objectstack-ai#35981's scope addition: segment timings before objectstack-ai#35987 and
after this PR, and `/api/v1/packages` off the boot path) is owed after
deploy; the card stays open for it.

Screenshots after objectstack-ai#36187 (`after2-1440-*`, `after2-375-*`: frame, then
loaded) and, from the first round, (frame → chrome → record) at 1280×800
(sidebar folded by the window width, as the chrome folds it), 1600×900
(sidebar open, same width in frame and chrome) and iPhone 13, the raw
runs (`*.json`, `summary.txt`), the measurement script and the proxy:
`/mnt/project-files/build-seat1/35981/` in the project files.

### Tests

-
`ui/packages/app-shell/src/console/__tests__/ConsoleBootShell-35981.test.tsx`
(new, 7 cases): the frame on an app route with a user, carrying
`data-boot-splash`, the top bar and the route skeleton;
`LoadingFallback` draws it; a boot redirect paints it at its first
commit and then lands; the frame has no text and nothing to press; no
sidebar on a docs page and no top bar on a phone record page, with the
sidebar and the bar kept everywhere else; the splash while the session
read is out, with no user, on `/home`, `/login`, `/forms/…`, bare
`/apps`, and outside a router.
- `AppContent.splashCriticalPath-12809.test.tsx` (amended): before the
member row answers, the frame and no chrome; after it, the chrome with
the route skeleton carrying `data-boot-splash`; the splash marker leaves
when the route draws, as before. The two CONTROL cases are unchanged and
pass (a later skeleton is not the boot wait).
- Amended where the old splash was the expected frame:
`AppContent.routeChunkPreload-12980` (case (a): the chrome is up under
the route skeleton while the page's reads are out; the inside-the-chrome
watcher counts the full-screen splash only, and case (b) now sees the
route skeleton, not a splash, while the chunk loads),
`bootRedirectCoverage` (the boot frame counts as full-viewport cover),
and the `LoadingFallback` mock in `App.homePermissions-12700` and
`FormPage.routePermissions-29187` (the permission scope's fallback). All
four pass.
- Local run of `packages/app-shell/` and `apps/console/`: the first full
run hit its 50-minute limit in this 4-core container after reaching
those four reds and nothing else. The scoped rerun after the fixes
(app-shell `console/`, `chrome/`, `layout/`, `hooks/`, and
`apps/console/`): 892 files, 7992 tests, all pass. CI's Test UI shards
carry the whole suite and are green on the head.
- `AppContent.splashCriticalPath-12809`: a new case holds `/auth/config`
and pins frame-not-chrome until it answers (red with the gate line
reverted). `AppContent.unresolvedAdmin-5619` (three cases, including the
MUST NOT CHANGE one) now awaits the chrome, since the flags' answer is a
promise even when the mock gives it at once; the admin verdict still
adds no wait. `AppContent.emptyNavigationLanding-12079` gets a stable
`getAuthConfig`, as `AuthProvider`'s `useCallback` gives, since a fresh
one per render re-asks on every render.
- After merging `main` and the L1-b should-fixes: app-shell `console/`,
`layout/`, `chrome/`: 465 files, 3659 tests, all pass; `pnpm
console:build` green.
- `pnpm check:test-source-alias`: the amended boot-path test now mounts
the chrome, which reaches `@objectstack/lint` lazily; it loads it at
module top, as the gate asks. Green.
- `pnpm console:build` (runs `tsc` for app-shell and the console):
green.
- ESLint on the changed files: no errors.

## Human Minimum

- [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic.
(No spec change.)
- [x] 2. Every name I added uses the casing for its kind.
- [x] 3. No formatter ran; `pnpm lint` passes (changed files).
- [x] 4. One issue, one branch off an up-to-date `main`, one pull
request.
- [x] 5. A change that publishes carries a changeset
(`.changeset/35981-app-route-boot-frame.md`, patch), and both
declaration lines are filled in here and in the changeset.
- [x] 6. `packages/spec` touched: n/a.
- [x] 7. No hand edits to `content/docs/references/`,
`packages/*/CHANGELOG.md` or `content/docs/releases/`.
- [x] 8. Title, body and comments are in English (the maintainer summary
is in Chinese by the maintainer's standing rule).
- [x] The *Before Submitting* list in CONTRIBUTING.md is done.

Follow-up (not in this PR): the record's own data read waits for the
permission answer and the record page's mount; starting it earlier would
need its own card (it reads data before the permission answer arrives).

---
_Generated by [Claude
Code](https://claude.ai/code/session_01L6bhgWwKdjqiYQSujUXhn7)_

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01L6bhgWwKdjqiYQSujUXhn7

<!-- signed: repo:objectstack#1 · os-sales ·
session_01L6bhgWwKdjqiYQSujUXhn7 -->

---------

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

Development

Successfully merging this pull request may close these issues.

2 participants