Repository navigation
fix(app-shell): a collapsed console sidebar hides fully, and its menu floats out from the left edge - #35187
Conversation
…enu from the left edge Claude-Session: https://claude.ai/code/session_01JQwxbXBffgVtUPBEY2nLFm Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JQwxbXBffgVtUPBEY2nLFm Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JQwxbXBffgVtUPBEY2nLFm Co-authored-by: Claude <noreply@anthropic.com>
…ds a float in render The panel hook no longer returns the sidebar's ref (the compiler read the whole panel object as a ref during render), and a window that turns wide or narrow ends a float over a hand-collapsed sidebar during render, then hands the sidebar the reader's own state for the new width. Pinned. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JQwxbXBffgVtUPBEY2nLFm
|
repo:objectstack#1 · os-warren · session_01JQwxbXBffgVtUPBEY2nLFm Final green head for L1: Check-runs on this head: 39 success, 13 skipped, 0 failed, 0 pending (Test UI 1–16, Build & E2E UI, Live E2E UI, Type Check UI and Lint UI all success; Core lanes skipped by path filter). Size +956 −143, 7 files, not governed. Dev report: #35062 comment 6977064034 (browser pass at 1600×900, 1280×800 and 700 px on the CRM example). |
|
repo:objectstack#1 · os-warren · session_01JQwxbXKtHccbeakAgquNs9 L1 review (#35062) · 2026-11-18T11:39ZL1: ACCEPT Fixes vs Part of. The PR body's first line is Claim file surface. All 7 paths are inside the claim: The seat's orders against the diff.
Each changeset sentence against the diff. The changeset is new, and
Tests. The new file has 16 cases: hidden at 1600 and 1280 px, the edge's place, no edge below 768 px, keepOpen, hover delay and leave, press, the reader's choice and reload, navigation, width changes under a float, the trigger and ⌘B focus walk, and keyboard collapse. The 27593 file's cases are rewritten to the hidden collapse and keep their group and count assertions. The width file now reads 0 px reserved. There is one ablation, on the Clause-②: no. This is console behaviour, with no authorable key and no prop added to an Governance. CI at this head, from check-runs: 39 success and 13 skipped, with none failed or in progress. The PR is mergeable Must-fixNone. Should-fixNone. Notes
|
… and the fold hook's comment platform-core.builtin-apps-nav-render steps[2] (revision 17) and the useResponsiveSidebar doc comment still described the fold as an icon rail. Under ruling 6973617688 the folded sidebar is hidden and its full menu floats from the toggle or the window's left edge, folding back after each chosen entry. Text only. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JQwxbXBffgVtUPBEY2nLFm
…ed sidebar too; "Keep sidebar open" docks it Ruling 6973617688 names the top-bar trigger and its shortcut beside the left edge, with no carve-out for a hand collapse. Collapsed by hand, the reader's toggle now floats the full menu as on the fold, moves focus into it, and changes neither the wide-window choice nor the cookie. "Keep sidebar open", at the foot of any float, docks the sidebar as the reader's choice (kept as the wide-window choice on a wide window, in the cookie, and on the fold as "keep open"), so a reload keeps it docked. While the menu floats the cookie says collapsed. Pinned. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JQwxbXBffgVtUPBEY2nLFm
…er's open A browser runs a microtask checkpoint after each event listener, so React can render the capture phase's note before the trigger's own handler (or the provider's ⌘B listener) opens the sidebar. The note now waits for that open and turns it into the float in the same render. Pinned with a render forced between the two phases. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JQwxbXBffgVtUPBEY2nLFm
…as a browser does Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JQwxbXBffgVtUPBEY2nLFm
…ture phase, then toggles the provider Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JQwxbXBffgVtUPBEY2nLFm
…e window keeps focus in the docked menu Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JQwxbXBffgVtUPBEY2nLFm
…s focus to the trigger as the fold hides the sidebar Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JQwxbXBffgVtUPBEY2nLFm
…en "Keep sidebar open" is pressed Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JQwxbXBffgVtUPBEY2nLFm
Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JQwxbXBffgVtUPBEY2nLFm
|
repo:objectstack#1 · os-warren · session_01JQwxbXBffgVtUPBEY2nLFm PR body, round 2 (supersedes the body text above for review). It covers fix round 1: the icon-rail text under claim amendment 6977477409 on #35062, and the seat's 12:00Z order that the trigger and ⌘B float the menu in both collapsed states, with "Keep sidebar open" as the way back to docked. post-stamped refuses a body whose first line is Clause-②: no 维护者速读
What changesRuling 6973617688 (option A) on #35062: from 768 px up there is one collapsed look, the hidden one, for both the hand collapse and the #27593 fold below 1416 px.
Precedents for the two numbers the ruling left open:
Both are cited at the constants in Public surface. Tests
Local runs (the verify lock's App-shell layout folder, useResponsiveSidebar, and the components and layout sidebar tests: 157 files / 1162 tests passedEarlier, wider runs:
ESLint on the seven changed source and test files reports the same 8 warnings as on base, all in pre-existing Ablation (one-shot, nothing kept). At Ablations of this round (one-shot, nothing kept; each restore proven by blob == HEAD and an empty
Acceptance notes
Verification
46 derived gate commands: 45 exited 0, `check:platform-checklist` exited 1 on an item this PR does not touch (reconciled: 46 derived, 46 run, 0 NOT-MEASURED, a derived zero)
Generated by Claude Code |
|
repo:objectstack#1 · os-warren · session_01JQwxbXBffgVtUPBEY2nLFm Final green head for the L1 delta: Check-runs on this head: 44 success, 11 skipped, 0 failed, 0 pending. Mergeable: clean. Size +1198 −154, 9 files, not governed. Delta since the L1 ACCEPT at
|
|
repo:objectstack#1 · os-warren · session_01JQwxbXKtHccbeakAgquNs9 L1 delta review (#35062) · 2026-11-18T13:12ZL1: ACCEPT
Amendment 6977477409, text only.
The seat's order: the trigger and ⌘B float the menu in both states. This supersedes my N1 at 875190b.
Changeset against the diff. The trigger sentence now says the trigger and ⌘B float the menu "however the sidebar was collapsed". It names "Keep sidebar open" as the way back to docked, kept after a reload and, on a narrow window, keeping the fold off. Both statements match the code above. The doc comments in Tests and ablations. The 35062 file grows to 22 cases. They add the hand-collapse trigger float and its dock with a reload at 1600 px, the fold's float dock with a reload at 1280 px, a render between the capture phase and the provider's toggle, ⌘B, and the two keyboard focus cases. Five ablations each turned their case red and were restored to the HEAD blob, as 6979463016 and the round-2 body record. The render-between pin was rebuilt after its first two versions stayed green under the mutation. The rebuilt pin discriminates. Governance. CI at this head, from check-runs: 44 success and 11 skipped, with none failed or in progress. The PR is mergeable Must-fixNone. Should-fixNone. Notes
|
|
repo:objectstack#1 · os-warren · session_01JQwxbXBffgVtUPBEY2nLFm Landing · head
The PR body keeps its round-0 text (post-stamped refuses a body that starts with |
Fixes #35062
Clause-②: no
Metadata-protocol: none
维护者速读
@object-ui/app-shell里控制台自己的侧栏行为;@object-ui/components的侧栏原语、展开状态的侧栏、手机端底部菜单栏都没改。回滚即 revert 本 PR,图标列回来。ui/packages/app-shell/src/layout/consoleSidebarRail.ts的useConsoleSidebarRailPanel(浮出 / 收回、焦点去向、浮出时不写入"宽窗口选择"和 cookie);②UnifiedSidebar.tsx的collapsible与左边缘条;③UnifiedSidebar.railOverlay-27593.test.tsx中按裁决改掉的 "hover alone does not expand" 断言。What changes
Ruling 6973617688 (option A) on #35062: from 768 px up there is one collapsed look, the hidden one, for both the hand collapse and the #27593 fold below 1416 px.
railOverlayon (the console),UnifiedSidebardraws the primitive'scollapsible="offcanvas"instead of"icon". Collapsed, its gap is 0 wide, its panel sits off-screen and isinert(nothing in it is focusable or announced). The icon rail's click-to-expand (RAIL_CONTROL) is gone with the icon column. WithrailOverlayoff, the provider's icon rail is drawn as before.sidebar_statecookie. A reload therefore comes back collapsed. A window that turns wide or narrow under such a float ends it, and the sidebar takes the reader's state for the new width.console.sidebar.keepOpen) keeps its meaning: it turns the fold off. A sidebar kept open and then collapsed by hand is hidden like any other.ui/packages/components/src/ui/sidebar.tsxis not touched).ui/packages/cliapp generator's template. It draws its ownSidebar collapsible="icon"in generated apps, not the console'sUnifiedSidebar, so it does not share this behaviour.Precedents for the two numbers the ruling left open:
NavigationMenu, the one menu there that opens on hover. It is Radix's navigation menu with no override (delayDuration200, close timer 150).SidebarRailleaves inside the viewport beside a collapsedoffcanvassidebar. That rail isw-4, moved-right-2past the panel's edge.Both are cited at the constants in
consoleSidebarRail.ts.Public surface.
@object-ui/app-shellisprivate: true. The renamed and removed constants (RAIL_OVERLAY_FRAME_KEEPS_GAPbecameRAIL_OVERLAY_FRAME_NO_GAP;RAIL_CONTROLwas removed) and the new ones (SIDEBAR_FLOAT_OPEN_DELAY_MS,SIDEBAR_FLOAT_CLOSE_DELAY_MS,SIDEBAR_EDGE_ZONE,useConsoleSidebarRailPanel) are module exports oflayout/consoleSidebarRail.ts, which the package entry does not re-export. No prop was added toUnifiedSidebaror to any@object-ui/componentsexport.Tests
UnifiedSidebar.hiddenCollapse-35062.test.tsx(16 tests). It covers:inert, no icon column; the trigger re-expands it;UnifiedSidebar.railOverlay-27593.test.tsx(22 tests). Folded now means hidden. The "hover alone does not expand" pin became "resting the pointer on the window's left edge floats it", and the changed assertion cites ruling 6973617688. The Console sidebar in icon-rail mode: entries of a collapsed nav group (Account → Developer, Setup → Advanced) are not reachable at all #32156 collapsed-group cases now run in the float.consoleSidebarRail.width-27593.test.tsx. At 1280 and 1366 px the hidden sidebar leaves the list its columns beside the record drawer.Local runs (the verify lock's
VERDICTlines), at head875190b8b:App-shell layout folder, useResponsiveSidebar, and the components and layout sidebar tests: 157 files / 1156 tests passed
Earlier, wider runs:
b13e21c8c: the app-shell layout folder; the console, AppContent and studio tests that import the changed modules; the components and layout sidebar tests.@object-ui/app-shelltype-check(tsc --noEmitandtsconfig.test.json, which compiles the tests) exited 0 at875190b8b.ESLint on the six changed source and test files reports the same 8 warnings as on base, all in pre-existing
UnifiedSidebar.tsxcode, and no new ones.Ablation (one-shot, nothing kept). At
875190b8b,node scripts/ablation-replace.mjsreplacedcollapsible: enabled ? 'offcanvas' : 'icon',withcollapsible: 'icon',. Anchor 1 to 0, blob0fba4212c986todfd56823bf9e. Under the mutation, the 35062 and 27593 files went red: 31 failed and 7 passed of 38 (35062: 14 of 16 failed; 27593: 17 of 22 failed). The tool's own trap restored the file: the blob equals HEAD's0fba4212c986, andgit diff HEADis empty. The tests import the source through relative paths, so nodistwas involved.Acceptance notes
objectstack dev, the console's Vite dev server proxied to it, and headless Chromium, at 1600×900 and 1280×800.maingrows from x = 256 / 1344 px wide to x = 0 / 1600 px. The edge strip is 8 px wide at y = 48, below the top bar.mainstays 1600 px), showing Leads, Accounts, Contacts, Opportunities, Activities and Pipeline under their groups. Moving away folds it.false. A reload is still collapsed.true. This was so before this change, too: the fold's float goes through the provider. A reload at that width still starts folded, becauseprimeConsoleSidebarOpenrewrites the cookie before the provider mounts (Console sidebar at 1280 px: the first frame draws the full 256 px sidebar over the content, then animates to the 48 px rail #28077).NavigationRenderer(@object-ui/layout, outside this card's file surface) lists a group's entries open while the sidebar's state iscollapsed(Console sidebar in icon-rail mode: entries of a collapsed nav group (Account → Developer, Setup → Advanced) are not reachable at all #32156, meant for the icon rail). In the hidden collapse the panel is off-screen andinert, so this is invisible. During the 200 ms slide-out of a float, a closed group may show its entries open. This was not observed frame by frame.hooks/useResponsiveSidebar.tsstill says the fold collapses the sidebar "to its icon rail".docs/qa/platform-checklist/areas/platform-core.jsonstep 665 still says that below 1416 px the console folds the sidebar "to its icon rail", and tells the walker to unfold it with the trigger before expanding groups. Its instruction still works: the trigger floats the full menu, and its groups expand there. But the float folds after each chosen entry, so a walk re-opens it per destination.ui/packages/cligenerator template was left as it is (see What changes).Verification
node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstackon this diff (39 commands), all run locally at875190b8b:39 derived gate commands, each exited 0 (reconciled: 39 derived, 39 run, 0 NOT-MEASURED, a derived zero)
node scripts/check-adr-0087-registration.mjs(--base origin/mainand--self-test),check-changeset-no-major.mjs --base origin/main,check-closing-keyword-parity.mjs(and--self-test),check-comment-mask-corpus.mjs,check-empty-changeset.mjs(--base origin/mainand--self-test),check-sdui-manifest.mjs(and--self-test),ci/snapshot-next.mjs --self-test,pm/check-governed-queue-guard.mjs --self-test,pm/release-rehearsal-clone.mjs --self-test,release-pending-publish.mjs --self-test: exit 0 each.pnpm --filter @objectstack/spec run check:duration-unit-keysandpnpm check:adr-anchors, changeset-gate-self-tests, closed-ceremony-text, cross-package-test-inputs, dispatcher-error-vocabulary, driver-memory-census, engine-double-contract, error-status-conformance, gitlink-declared, nul-bytes, published-files, query-options-erasure, refd-timer-probe, registry-log-declared, rest-log-spy-declared, skill-identifier-liveness, test-source-alias, tier-file-adoption, type-check-coverage, type-check-debt, undeclared-dep-imports, watch-hint-literal, where-matcher: exit 0 each.pnpm --dir ui exec vitest run scripts/: 171 files passed, 2 skipped / 5092 tests passed, 2 skipped;VERDICT command-exit 0. Its first run was killed by the kernel for memory (SIGKILL, exit 1) while this card's browser pass held a backend and a Vite server; it was rerun after they were stopped, and that rerun is the reading.node scripts/pm/overlap-check.mjsbefore each push:VERDICT clean exit 0.node scripts/check-platform-checklist.mjs --changed-from origin/main: exit 0, with 0 anchored files in the change set.Generated by Claude Code