Repository navigation
perf(console): an app route draws the console's frame right after the session read, and the chrome no longer waits for the route's reads - #36014
Conversation
…or the route's reads Claude-Session: https://claude.ai/code/session_01L6bhgWwKdjqiYQSujUXhn7 Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgWwKdjqiYQSujUXhn7 Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgWwKdjqiYQSujUXhn7 Co-authored-by: Claude <noreply@anthropic.com>
…ot-path test Claude-Session: https://claude.ai/code/session_01L6bhgWwKdjqiYQSujUXhn7 Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#1 · os-sales · session_01L6bhgUmopshYqDCrYekUj4 席位核对 — ACCEPT, with two should-fixes (L1-b)Head-sha: a7138d5 · read 2026-11-21T07:34Z 维护者速读
Must-fixNone. Should-fix
Checked
Owed
|
…nd phone record pages; static width utilities Claude-Session: https://claude.ai/code/session_01L6bhgWwKdjqiYQSujUXhn7 Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#1 · os-sales · session_01L6bhgUmopshYqDCrYekUj4 席位核对 — delta ACCEPT (L1-b)Head-sha: 759b08f · read 2026-11-21T08:22Z · delta a7138d5..759b08f on top of ACCEPT 7059355941. The delta is the main merge 2c0e2a0 plus one commit, 759b08f (5 files, +80/−20). 维护者速读
Must-fix / Should-fixNone. S1 and S2 from 7059355941 are closed, and the main merge it asked for is done. Checked
Owed
|
… from 768 px up, the sidebar's head and foot Claude-Session: https://claude.ai/code/session_01L6bhgWwKdjqiYQSujUXhn7 Co-authored-by: Claude <noreply@anthropic.com>
…n gates read A navigation predicate naming a flag faulted and withheld its entry when /auth/config answered after the chrome mounted, which the chrome no longer waiting for the route's own reads made possible. Claude-Session: https://claude.ai/code/session_01L6bhgWwKdjqiYQSujUXhn7 Co-authored-by: Claude <noreply@anthropic.com>
…its for the deployment flags Claude-Session: https://claude.ai/code/session_01L6bhgWwKdjqiYQSujUXhn7 Co-authored-by: Claude <noreply@anthropic.com>
…ts for the deployment flags Claude-Session: https://claude.ai/code/session_01L6bhgWwKdjqiYQSujUXhn7 Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#1 · os-sales · session_01L6bhgUmopshYqDCrYekUj4 席位核对 — delta ACCEPT, with one should-fix (L1-b)Head-sha: 0865f61 · read 2026-11-22T02:22Z · prior records ACCEPT 7059355941 @a7138d51, delta ACCEPT 7059872679 @759b08f6 · delta 759b08f..0865f61 = main merge f119893 + cd5a6eb + 91efd09 + 423bf5b + 0865f61 维护者速读这轮有两处改动。第一,打开应用页时先画出的“空壳”改成新外壳的样子:768 px 以上不再画顶栏,侧栏上方留出应用菜单、搜索、铃铛的灰块,下方留出账户的灰块;手机照旧有顶栏,记录页除外。第二,外壳现在还要等部署开关( Must-fixNone. Should-fix
Nits
Checked
Owed
|
…ent flags, then reads the chrome synchronously Claude-Session: https://claude.ai/code/session_01L6bhgWwKdjqiYQSujUXhn7 Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#1 · os-sales · session_01L6bhgUmopshYqDCrYekUj4 席位核对 — delta ACCEPT, FINAL (L1-b)Head-sha: d261997 · read 2026-11-22T02:48Z · prior record delta ACCEPT 7072866985 @0865f613 (S1) · delta 0865f61..d261997, one test commit 维护者速读上一轮提的测试问题已经改好。「已确认管理员身份的用户进入应用不额外等待」这条用例重新收紧:只放过部署开关答复那一下,之后外壳必须立刻出现。产品代码没有改动。可以合并。 Must-fixNone. Should-fixNone. S1 is closed. NitsNone. Checked
OwedNone from L1-b. Clause-② no, no L2; the seat lands with |
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob Seat landing · 2026-11-22T02:49Z · #35981, the console draws its app shell before the readiness gate. The frame follows the current shell after #36187, and the phone record page at 375 has no top bar. The AppContent readiness gate also waits on Reviews:
Gates on this head (
The seat readies this PR and arms auto-merge in the same step. The PR carries |
Requested by Sales · project thread
Part of #35981
Clause-②: no
Metadata-protocol: none
Skills-docs: none — no authorable metadata changes (Metadata-protocol: none)
repo:objectstack#1 · os-sales · session_01L6bhgWwKdjqiYQSujUXhn7
维护者速读
What changes
ui/packages/app-shell/src/console/ConsoleBootShell.tsx:ConsoleBootShell: the console chrome's frame with nothing in it. The realAppShellfrom@object-ui/layout(same sidebar primitive and route-slot classes asConsoleLayout; since feat(console): from 768 px up an app draws no top bar; the app menu, search, bell and account move to the sidebar (#36112 PR A) #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),primeConsoleSidebarOpenrun before the sidebar provider reads its cookie (asConsoleLayoutdoes), 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 predicatesConsoleLayoutreads (showHeader={(phone || docsPage) && !recordPageOwnsTopBar}) (moved tolayout/consoleRoutePaths.ts, re-exported fromConsoleLayout): no sidebar on an app's docs pages (isAppDocsPath, 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) and no top bar on a phone record page (isRecordPagePath, objectstack#28483). It carriesdata-boot-splash(it is still the boot wait) anddata-boot-shell.ConsoleBootFallback: the frame on an/apps/:app/*route onceuseAuth()has answered with a user;LoadingScreenwhile the session read is out, with no user, on every other route (/home, auth surfaces,/forms/…), and outside a router.RouteMetadataSkeletonmoved here fromAppContent.tsx, with abootflag that addsdata-boot-splash.ConsoleShell.tsxLoadingFallbackrendersConsoleBootFallback. That covers the gates between the session read andAppContent:ConnectedShellInner(adapter),RequireOrganization(organization list) and the console host'sConsolePermissionsScope(ui/apps/console/src/AppContent.tsx, nowloadingFallback={<LoadingFallback />}; its error fallback is unchanged).AppContent.tsx:ConsoleBootShellinstead ofLoadingScreen, 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/config2 s. The first-paint wait on the route's own buckets (!firstPaintDone && !routeReadsSettled, objectui#12809) is gone: the chrome mounts, and the route slot showsRouteMetadataSkeletonuntilrouteReadsSettled, the path a later navigation already took.appSurfaceAwaitsVerdict,requestedAppMissing) draw the frame too.Suspensefallback isRouteMetadataSkeleton … bootinstead of the full-screenLoadingScreeninside the chrome (measured locally: 0.2 s of logo splash inside the chrome while the record page's chunk resolved).firstRouteDrawn(replacesfirstPaintDone) keeps the first route skeleton'sdata-boot-splashuntil the route's reads have landed once.RedirectWithSplashpaintsConsoleBootFallbackinstead ofLoadingScreen, 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):
AppContent.tsx, the readiness gate and the route slot (RouteMetadataSkeleton, theSuspensefallback).ConsoleBootShell.tsx,RoutedBootFallback's conditions.ConsoleShell.tsxLoadingFallback,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, #35987), thenAppContent'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:
requestedAppMissingand the access-verdict screens are unchanged.UnifiedSidebar,AppHeader), which still mounts after the permission answer and the admin verdict.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/CommandPaletteget 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 (#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 (noLoadingScreenleft 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/permissions3 s in the proxy, a stand-in for the hosted server time (simulated, not measured hosted).get-sessionanswered/meta/pageanswers (0.73–1.10) and well before the permission answer.LoadingScreeninside it while the record page's chunk resolved; after, that slot shows the record skeleton.POST …/pagesent 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./api/v1/packagesoff the boot path) is owed after deploy; the card stays open for it.Screenshots after #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, carryingdata-boot-splash, the top bar and the route skeleton;LoadingFallbackdraws 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 carryingdata-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).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 theLoadingFallbackmock inApp.homePermissions-12700andFormPage.routePermissions-29187(the permission scope's fallback). All four pass.packages/app-shell/andapps/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-shellconsole/,chrome/,layout/,hooks/, andapps/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/configand 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-12079gets a stablegetAuthConfig, asAuthProvider'suseCallbackgives, since a fresh one per render re-asks on every render.mainand the L1-b should-fixes: app-shellconsole/,layout/,chrome/: 465 files, 3659 tests, all pass;pnpm console:buildgreen.pnpm check:test-source-alias: the amended boot-path test now mounts the chrome, which reaches@objectstack/lintlazily; it loads it at module top, as the gate asks. Green.pnpm console:build(runstscfor app-shell and the console): green.Human Minimum
packages/specholds no runtime logic. (No spec change.)pnpm lintpasses (changed files).main, one pull request..changeset/35981-app-route-boot-frame.md, patch), and both declaration lines are filled in here and in the changeset.packages/spectouched: n/a.content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.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
🤖 Generated with Claude Code
https://claude.ai/code/session_01L6bhgWwKdjqiYQSujUXhn7