Skip to content

feat(console): the sidebar's docking model: 1280 px starts expanded, the expand/collapse button is the one control, Recent lists this app (#36112) - #36297

Merged
objectstack-fleet[bot] merged 4 commits into
mainfrom
claude/issue-36112-sidebar-docking
Nov 22, 2026
Merged

objectstack-fleet[bot] merged 4 commits into
mainfrom
claude/issue-36112-sidebar-docking

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Leehom · project thread

repo:objectstack#4 · os-project-manager · session_01FEkQ5oK4fFfnLADcipbEeT

Fixes #36112

This is PR B of two for the card: the sidebar's docking model. PR A (#36187) moved everything off the desktop top bar.

Clause-②: no
Metadata-protocol: none

Seat claim: #36112 claim. Ruling: F1, 7069868269.

维护者速读

  • 电脑上打开应用:窗口 1280 宽及以上侧边栏默认展开,更窄默认收起;收起和展开按钮是唯一开关,浏览器按宽窄两边各自记住;「保持侧边栏展开」开关去掉;侧边栏的「最近使用」只列当前应用里的;手机不变。
  • 「去掉顶栏、侧栏常驻」这张卡的后一半,按你 11 月 21 日的裁定(1280 起默认展开,更窄才收起)收尾,合并后这张卡关闭。
  • 出错时用户看到的是侧边栏开始时的展开或收起不对,点一下按钮就能改回,选择会被记住;只改界面,不动数据,可以直接撤回;以前选过「保持展开」的人在窄窗口上照旧是展开的。
  • 无

Upgrade change and accepted cost

  • Upgrade change (stated as the ruling asks): on 1280–1415 px windows, a user who never set 「保持展开」 now starts with the sidebar expanded (it folded before), unless they had collapsed it on a wide window.
  • Accepted cost (stated on the card): on a 1280 px window the list beside an open record drawer is 304 px wide (560 today), and on 1280–1415 px with the sidebar expanded, opening the comment panel returns the record page's fields to the tab row; collapsing the sidebar restores the three columns. The 304 / 560 figures are pinned in consoleSidebarRail.width-27593.test.tsx against the primitive's sidebar width and plugin-view's drawer width.

What changes

@object-ui/app-shell

  • layout/consoleSidebarRail.ts
    • CONSOLE_SIDEBAR_RAIL_BELOW_WIDTH is 1280, one constant, no longer derived (RECORD_DRAWER_MIN_CONTENT_WIDTH removed; the drawer and list constants stay, to state the accepted cost).
    • The narrow-window choice is CONSOLE_SIDEBAR_NARROW_OPEN_PREFERENCE (was CONSOLE_SIDEBAR_KEEP_OPEN_PREFERENCE), stored under the same name console.sidebar.keepOpen, so an existing on reads as "expanded on narrow" with no migration. The wide-window choice keeps its key (os:console-sidebar:wide-open). Wide and narrow stay stored separately.
    • New startingSidebarOpen(wide): the reader's choice for that side, else expanded on wide and collapsed on narrow. primeConsoleSidebarOpen writes it into the primitive's cookie before the first frame; seedWideWindowOpen is gone (with an explicit wide default it has nothing to seed).
    • useConsoleSidebarRail answers narrowOpen / setNarrowOpen instead of keepOpen / setKeepOpen; railMode is "narrow and collapsed by the narrow choice".
    • useConsoleSidebarRailPanel: keepOpenControl, dock / undock and the 'dock' closer are removed. While the sidebar is hidden, a press on a sidebar trigger (the page header's expand button, or the corner fallback) now docks it: on a narrow window the capture phase sets the narrow choice to expanded before the provider's toggle opens it, so the open is not a float. ⌘B still floats the menu over a collapsed sidebar (unchanged), and so does the left edge.
  • hooks/useResponsiveSidebar.ts: gives a window its starting state on load and when it crosses 1280 px or the phone breakpoint; keeps an open/close on a wide window as the wide choice (only on a change, so a default is never recorded as a choice), and a close of the docked sidebar on a narrow window as the narrow choice; a narrow choice turned collapsed (this tab or another) collapses an open sidebar. Public signature unchanged.
  • layout/UnifiedSidebar.tsx: the 「保持侧边栏展开」 footer row is gone (the foot holds only the account menu). From 768 px up the Recent group lists only entries whose address names the current app (resolved by matchAppBySegment, as Home resolves a recent row's app); the phone drawer is unchanged.

@object-ui/i18n: sidebar.keepOpen removed from all 11 packs (zh-Hant regenerated with gen:zh-hant).

Text that named 1416 (the ruling's list, plus one more found by grep):

  • ui/packages/plugin-detail/src/synth/recordPageColumns.ts comment (also corrected: it still described the retired 48 px icon rail). Comment only, no bump for plugin-detail.
  • docs/qa/platform-checklist/areas/platform-core.json platform-core.builtin-apps-nav-render steps[2], revision 17 → 18 with a history row.
  • examples/app-showcase/e2e/detail-shapes.spec.ts: its comment cited 1416 and the case docked the sidebar with the retired "Keep sidebar open"; it now docks with the page header's expand button.

Tests

New (card-named):

  • layout/__tests__/consoleSidebarRail.docking-36112.test.tsx: threshold 1280; first frame at 1279 collapsed and 1280 expanded whatever the cookie, 768 / 1920 edges, phone keeps the cookie; the mounted layout at 1279 → 1280; a stored choice beats the default on each side and the two sides stay apart; a raw legacy os:pref:console.sidebar.keepOpen record {"value":"on","v":1} reads as expanded on a narrow window.
  • layout/__tests__/UnifiedSidebar.recentThisApp-36112.test.tsx: Recent lists only this app's entries (other app, Setup, Studio item left out), its five are this app's newest five, no group when this app has none, and the phone drawer still lists every app's.

Rewritten (they encoded 1416 or the keep-open switch):

  • hooks/__tests__/useResponsiveSidebar.test.tsx: defaults at 1279 / 1280, no choice recorded by a default, each side's state across the threshold, wide collapse kept, narrow close kept as the narrow choice, a narrow choice turned collapsed elsewhere, phone untouched.
  • layout/__tests__/ConsoleLayout.sidebarFirstFrame-28077.test.tsx: 1280 → 1279 for the collapsed first frame; new cases for 1280 expanded against a collapsed cookie, a wide collapse, and a narrow expand.
  • layout/__tests__/consoleSidebarRail.width-27593.test.tsx: no longer pins the derived 1416; pins 1280, the 256 px width (F2) and the 304 / 560 cost.
  • layout/__tests__/UnifiedSidebar.hiddenCollapse-35062.test.tsx: narrow width 1280 → 1024; the trigger-floats cases now float with ⌘B; the "Keep sidebar open" cases are replaced by "the expand button docks (wide and narrow), a reload keeps it, the collapse button takes it back", the legacy keep-open read, and "the expand button docks even when React renders between the capture phase and the trigger's handler" (the old render-between case, now for the dock).
  • layout/__tests__/UnifiedSidebar.railOverlay-27593.test.tsx: 1280 / 1360 → 1024; floats with ⌘B; the three "Keep sidebar open" cases and the Esc-on-keep-open case are replaced by the expand-button dock and the narrow/wide choices kept apart (objectstack#28079).
  • examples/app-showcase/e2e/detail-shapes.spec.ts (see above).

Retired: none as a file. The removed cases are the ones that drove the retired control; each behaviour they pinned that still exists (float, Esc, focus, fold on navigation, choices kept apart) is pinned in the rewritten files above.

Local runs (head ce00125)

All at head ce00125fc, under the shared verify lock unless marked lock-free.

  • pnpm --filter @object-ui/app-shell type-check && pnpm --filter @object-ui/i18n test && vitest run the seven changed or new app-shell test files: VERDICT command-exit 0; i18n Test Files 105 passed (105), Tests 1962 passed | 13 skipped; app-shell Test Files 7 passed (7), Tests 71 passed (71).
  • Earlier, at 114ccd7a7 (source identical to the head; the last commit adds one import line to a test): vitest run app-shell layout, hooks, chrome: Test Files 279 passed (279), Tests 2217 passed (2217).
  • Derived gate families (dispatch-gates.mjs, 65 derived, --ran reconciliation: 65 run, 0 unrun): 62 lock-free families re-run at the head, exit 0 each; check:type-check-debt exit 0 under the lock; vitest run scripts/ under ui/ exit 0 under the lock (the lock-free attempt was SIGKILLed by the box's memory limit, not a red); check:test-source-alias red on the first run, fixed by ce00125fc and green since.
  • NOT MEASURED: check:dual-build-cjs-loads exit 3, PREREQUISITE NOT MET (needs a full pnpm build of 36 framework packages this PR does not touch); CI runs it.
  • Declared to CI: test:repo and the full lint farm.
Ablations (one per leg; each mutation committed-first, landed on disk by `scripts/ablation-replace.mjs`, restored to HEAD and proven by blob hash)

Six legs, one lock hold (VERDICT command-exit 0), at head ce00125fc. Each leg red, each restored with git diff HEAD empty and the file's blob equal to HEAD's.

Leg Mutation Suite Result
L1 threshold 1280 back to 1416 consoleSidebarRail.docking-36112 4 failed / 8
L2 the narrow choice (legacy keep-open) read always false consoleSidebarRail.docking-36112 2 failed / 8
L3 the expand press no longer sets the narrow choice UnifiedSidebar.hiddenCollapse-35062 2 failed / 20
L4 Recent filter removed UnifiedSidebar.recentThisApp-36112 3 failed / 4
L5 Recent filter applied on the phone too UnifiedSidebar.recentThisApp-36112 1 failed / 4
L6 a narrow-window close no longer kept useResponsiveSidebar 1 failed / 7

The suites import the edited modules by relative path (source), so no build sits between the mutation and the run.

Acceptance notes

Card acceptance, walked against main after PR A (a5a5312) and this branch:

Card acceptance line Met by
Desktop app page: no top bar; sidebar on the left, content beside it, not covered PR A (no top bar); this PR (docked by default from 1280 px; below it collapsed by default, as ruled)
Collapse: sidebar disappears, content widens, expand button top-left; left edge slides it out; still collapsed after refresh PR A (collapse, expand button, edge); this PR (the expand button docks instead of floating; the choice is kept on both sides of 1280)
App name opens only the app list (search when many) and 「添加应用」; Setup for admins only; switching works PR A
Sidebar search works, shortcut works PR A
Avatar at the bottom; its menu has switch organization and sign out PR A
Bell beside search; panel and count as before PR A
Impersonation banner at the content top, exit works; lost-connection notice PR A
List, record, dashboard, report, custom page all carry the page-actions group #36111 and PR A (always on)
Phone width unchanged PR A; this PR leaves the phone drawer's Recent unfiltered and the phone sidebar state untouched
Setup and Account use the new shell, menus unchanged PR A
Onboarding walks through PR A (the walkthrough component renders nothing on main; no step points at the top bar)
PR body: before/after desktop screenshots (expanded, collapsed, app menu, banner) and the changed components and rewritten tests this PR (before/after shots at 1440, 1280 and 1279 (expanded, collapsed, app menu open, the 1279 expand press, and a reload after it), saved with the seat's evidence; the banner was not shot, see Acceptance notes; components and tests above)
Item 2: 「保持侧边栏展开」 removed this PR
Item 5: Recent lists this app's items this PR

The PR A rows are read from PR A's body and main's code, not re-driven here except where the screenshots show them.

Browser evidence (showcase booted on a private port, console served by Vite from this branch; the before set from the same server with the three sidebar files and the English pack swapped back to the merge base, then restored to HEAD and checked by blob hash):

  • Fresh profile, 1440 px: expanded, before and after. 1280 px: collapsed before, expanded after.
  • 1279 px: collapsed on load in both. Pressing the expand button: before, the menu floats over the page with the 「Keep sidebar open」 row at its foot, and a reload brings back the collapsed state; after, the sidebar docks beside the page (content reflows), and a reload keeps it docked.
  • App menu open at 1440: same in both (Showcase, Setup, Add app).
  • The impersonation banner was not shot: it needs a second user to impersonate on a fresh database, and its surface is PR A's and is not changed here.
  • Recent was not shot: a fresh profile has no recent items; the filter is pinned by UnifiedSidebar.recentThisApp-36112 and its ablations L4 and L5.

Reading taken where the ruling is literal, carried as an open question in the report:

  • The expand button's tooltip names ⌘B (it draws the chord the sidebar primitive answers to), but with ⌘B kept unchanged as ruled, ⌘B over a collapsed sidebar floats the menu while a press on the button docks it. Before this PR both floated. Either ⌘B docks too, or the tooltip stops naming it; this PR does neither and leaves it to the seat.

Out of scope, noted not filed: none.

Overlap: overlap-check.mjs exit 1 against #34223 (a draft from 2026-11-19 that already conflicts with main on another file) in docs/qa/platform-checklist/areas/platform-core.json; not merged around, per the order. #36234 and #36208 share the i18n packs and merge cleanly.

Verification

Read first (riskiest first):

  1. ui/packages/app-shell/src/layout/consoleSidebarRail.ts, the capture listener in useConsoleSidebarRailPanel (expand docks; ⌘B floats) and startingSidebarOpen.
  2. ui/packages/app-shell/src/hooks/useResponsiveSidebar.ts, the layout effect (which transitions write which choice).
  3. ui/packages/app-shell/src/layout/UnifiedSidebar.tsx, the recentItems filter.

Two-minute check: in a fresh browser profile open any app at a 1280 px window: the sidebar is expanded beside the page. Resize to 1279 px: it collapses and the page header shows the expand button; press it: the sidebar docks, and a reload keeps it docked.


Generated by Claude Code

🤖 Generated with Claude Code

https://claude.ai/code/session_01FEkQ5oK4fFfnLADcipbEeT

…lapse button is the one control, recent lists this app (#36112)

Windows 1280 px and up start with the sidebar expanded, 768 to 1279 px
collapsed; the reader's own collapse or expand is kept per browser on
each side of the threshold. The keep-open switch is removed; its stored
choice reads as expanded on a narrow window. From 768 px up the
sidebar's recent list holds only the current app's entries.

Claude-Session: https://claude.ai/code/session_01FEkQ5oK4fFfnLADcipbEeT
Co-Authored-By: Claude <noreply@anthropic.com>
…el; pin defaults, choices, legacy keep-open and this-app recent (#36112)

Claude-Session: https://claude.ai/code/session_01FEkQ5oK4fFfnLADcipbEeT
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEkQ5oK4fFfnLADcipbEeT
Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/xl documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 22, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-project-manager · session_01FEkQ5oK4fFfnLADcipbEeT

Final green head · 2026-11-22T05:23Z · area a4-H
Head-sha: ce00125fcc6263083138a8410a55ddc0c40613f6
Checks at this head: 52 success, 10 skipped (every skip in main's roster, check-expected-skips exit 0), 0 failed, 0 pending; mergeable_state clean.
Card #36112 (PR B of two; PR A #36187 merged), claim 7073260739, dev report 7074501487. Clause-②: no · Metadata-protocol: none · not governed (check-governed-merges 0 of 25 paths), 1419 changed lines. Files: ui/packages/app-shell, ui/packages/i18n locales, ui/packages/plugin-detail (one synth file), one showcase e2e spec, one checklist JSON and a changeset.
The keyboard-shortcut question was ruled B in comment 7074574380 on #36112; that change is a follow-up card filed after this PR merges, not part of this head. L1 owed at the L1-b thread of seat repo:objectstack#4.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-project-manager · session_01FEkQ5oVqoTJkrRZcyZS4xd
L1-b · 2026-11-22T05:25Z

席位核对 — ACCEPT · head ce00125

  • Shape: l1-face.mjs --pr 36297 at ce00125 shows 52 success, 10 expected skip, 0 failed and mergeable_state clean. The declarations are Clause-②: no · Metadata-protocol: none, and nothing is governed, so the area lands it.
  • F1 (7069868269) as built:
    • Threshold: there is one constant, CONSOLE_SIDEBAR_RAIL_BELOW_WIDTH = 1280.
    • Starting state: startingSidebarOpen(wide) is the kept wide choice with a default of expanded, or the narrow choice, which is the existing console.sidebar.keepOpen preference read as "expanded on narrow" with no migration. The two choices are stored apart, as before.
    • Narrow window:
      • The header's expand press docks it: the capture listener sets the narrow choice before the provider's toggle opens it.
      • A collapse of the docked sidebar keeps the narrow choice as collapsed (useResponsiveSidebar, last branch).
      • A choice turned collapsed in another tab folds an open sidebar.
    • Wide window: an open or close is the wide choice, and the float writes neither (holdWideWindowChoice).
    • Float: the left edge and ⌘B still float a collapsed sidebar.
    • Unchanged: the phone (desktop excludes it) and the width of 256.
    • Removed: the keep-open row, its control and sidebar.keepOpen in all 11 packs. No other reader of keepOpen / keepOpenControl remains under ui/**, and railMode's one other reader, useResponsiveSidebar, follows the new model.
  • Recent is this app's (card item 5):
    • From 768 px up, an entry is kept when matchAppBySegment(enabledApps, appSegmentOf(item.href)) === activeApp. That is the router's own resolution, and the same appSegmentOf Home's "Recently accessed" reads.
    • The phone drawer (isMobile) still lists every app's, as the order asks. Studio package entries stay excluded.
  • Text that named 1416 follows:
    • The recordPageColumns.ts comment and the platform-core checklist step, at rev 17 to 18 with a dated change entry.
    • The detail-shapes e2e, which docked with the retired switch and now docks with shell-sidebar-expand. That is a test of the claimed change, so no amendment is owed.
    • The other 1416 hits are released CHANGELOG history or unrelated numbers.
  • Pins:
    • There are 2 new files: docking-36112 with 8 tests and recentThisApp-36112 with 4.
    • 5 suites were rewritten, each listed in the body.
    • Six ablations each turn the matching leg red: the threshold, the narrow read, the expand press keeping the narrow choice, the Recent filter, the filter on a phone, and the narrow close kept. Each restore was proven against HEAD.
  • Evidence: before and after shots at 1440, 1280 and 1279 are in a4-H/evidence-36112/. The banner was not shot: its surface is PR A's and is unchanged here, and impersonation needs a second user. Recent was not shot because a fresh profile has none, and the pins carry it. I accept both reasons.
  • Body text: the upgrade-change sentence and the accepted-cost sentence are as the ruling orders.
  • The ⌘B note (Acceptance notes, "leaves it to the seat"): it is carried by ruling 7074574380 「B ⌘B 和按钮一样固定展开」. That ruling says this PR lands as it is, and the seat dispatches B as one follow-up PR after the merge, with Ruling-ref:. So the residual has a carrier and the body needs no edit.
    • For the seat: Fixes #36112 closes the card at merge, so that follow-up needs its own card or a no-card order.
  • Gates and deviations: check:dual-build-cjs-loads was NOT MEASURED locally and is carried by green CI. overlap-check exit 1 against draft fix(settings)!: offer the knowledge settings only where the knowledge service is mounted #34223 (platform-core.json) is reported and not merged around, per the order; that is the seat's to sequence. The before-shot file swap was restored with proof against the HEAD blob.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-project-manager · session_01FEkQ5oK4fFfnLADcipbEeT

Landing · 2026-11-22T05:25Z · area a4-H · ACCEPT → PR #36297 comment 7074740633 (L1-b, head ce00125fcc)

reading value
check-governed-merges.mjs --pr 36297 NOT governed · 0 of 25 paths on the register · +843 / -576 ≤ 3000
checks at ce00125fcc 52 success · 10 expected skip (check-expected-skips exit 0) · 0 failed · 0 pending · mergeable_state clean

State: ready for review + auto-merge into the merge queue. On MERGED, #36112 closes by Fixes and its pm:dispatched comes off. The keyboard-shortcut follow-up (ruling 7074574380 on #36112) goes to the seat as its own card after the merge, since Fixes closes #36112.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 22, 2026 05:26
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 22, 2026
Merged via the queue into main with commit 031325d Nov 22, 2026
63 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-36112-sidebar-docking branch November 22, 2026 06:42
247257110 pushed a commit to 247257110/objectstack that referenced this pull request Nov 23, 2026
…ds in a form host, four specs read the product as merged (objectstack-ai#36578)

<!-- claude-projects-attribution: {"github_login":"os-warren"} -->
_Requested by **Warren** · [project
thread](https://claude.ai/code/project/chan_01U5RdnAAmkSQmZbqh6FtqZ8?thread=cmsg_01U5RdnAAmkSQmZbqh6FtqZ88Tcs1L1zT2fWqjj2xTzFXM)_

Fixes objectstack-ai#36321
Clause-②: no

repo:objectstack#1 dispatch · os-warren ·
session_01JQwxbanvK21nJKgGjvE9XL

## 维护者速读

-
用户可见变化:新建发票时,本币发票在填过表头后选产品,单价会照常自动带出;之前一律留空并提示「还没选币种」,而表头明明显示着美元。其余改动只是夜间测试的写法,用户无感。
- 为什么做:夜间浏览器测试在 main 上连红多日,卡片要求找出回归并修好,不许跳过或删测试。
- 出错会怎样:只影响新建主从单据里币种选择框被表单读取的方式;不对可以直接撤回这一个合并。
- 要你做什么:无。

## What changes

The nightly `live` tier's two showcase files were red on main for four
reasons. One is a product regression, three are specs that pinned a
surface a merged pull request moved.

**Product: the currency code picker is readable by a form host that
reads the DOM** (`@object-ui/components`, `CurrencyCodePicker`).
The master-detail form reads its header's live values off the header's
named elements (`scrapeHeaderRecord`) on each bubbling `input` /
`change`. The picker's only element in the form is its trigger button,
which carries the field's `name`, and a button's `value` was the empty
string. Since objectstack-ai#36351 (merged 2026-11-22 22:18Z) the line grid withholds
a picked amount from a line whose currency it cannot tell, so on a New
Invoice whose Currency shows "USD — US Dollar", picking Widget A left
Unit Price empty with "Unit Price was not filled: the picked amount is
$29.99, but no currency is chosen here yet." The trigger now carries the
selected code as its `value`, and a changed code bubbles one `change`
event from the trigger, as a native select does (Radix Select's hidden
select does the same). Opening on a code announces nothing.

**Specs that read the product as merged** (no test renamed, skipped or
deleted; every assertion still pins what it pinned):

- `ui/e2e/live/phone-nav-drawer-back-29131.spec.ts`, desktop CONTROL:
since objectstack-ai#36297 a 1280 px window starts with the sidebar expanded, and the
collapsed sidebar's own button stays in the DOM, off screen. `.first()`
on the shared trigger selector clicked it and timed out "element is
outside of the viewport". The two presses are now the collapse button,
then the page header's expand button, each by its test id, with the
visible state checked between.
- `ui/e2e/live/inline-edit-polish-2572.spec.ts`: the shared inline-edit
session it pins is entered by a double-click on the record page's
sectioned face, titled "Double-click to edit". At 1280 px with the
sidebar expanded that is the face drawn (measured); the "Click to edit"
field-list face now edits one field in place with no session and no save
bar (objectstack-ai#36475), which is not what this file pins.
- `examples/app-showcase/e2e/detail-shapes.spec.ts` (related-heavy): the
meta footer is now a "System information" section that starts collapsed
(objectstack-ai#36147), so the case opens it before reading "Created"; and the summary
rail is retired in every tier (objectstack-ai#35890), so Contoso's contacts are read
from the Contacts tab instead of the rail's card. The vacuous
right-column count (no right column exists) is dropped with the rail.

Already repaired on main before this branch, so not touched: the `New`
button's name (objectstack-ai#36303) and the retired "Keep sidebar open" toggle in
`detail-shapes` (objectstack-ai#36297).

## Tests

- New
`ui/packages/components/src/__tests__/currency-code-picker-form-read-36321.test.tsx`
(3 cases): the named trigger's value is the code; with no code it is
empty; a pick bubbles one `change` from the trigger, read after the new
code is on it, and opening on a code announces nothing.
- Ablation on the committed tree, each leg by
`scripts/ablation-replace.mjs` and restored to the HEAD blob
`a5fe02c11426` with `git diff HEAD` empty: the trigger's `value` removed
gives `Tests 2 failed | 1 passed (3)`; the `dispatchEvent` removed gives
`Tests 1 failed | 2 passed (3)`.

## Acceptance notes

- A line picked BEFORE any header edit on a New Invoice still withholds
the price with the same note: the form's create feed opens on the
caller's initial record, not on the schema defaults the header seeds, so
the seeded home currency reaches the grid only with the first header
event. Withholding is the safe direction (no cross-currency copy). Same
family as the objectstack-ai#36351 follow-ups on objectstack-ai#36412.

## Verification

<details><summary>The two nightly files, whole, at b37d813</summary>

`os-verify-lock.sh -c 'pnpm console:build && cd examples/app-showcase &&
OS_TEST_TIERS=nightly pnpm exec vitest run
test/showcase-smoke.live.test.ts test/console-live-specs.live.test.ts'`:
smoke `56 passed (2.7m)`, Console live specs `28 passed (2.0m)`, `Test
Files 2 passed (2)`, `Tests 2 passed (2)`, VERDICT command-exit 0.

Control at main d463c46 (same command): `Test Files 2 failed (2)`;
Console live `3 of 28` failed (form-view-subforms,
inline-edit-polish-2572, phone-nav CONTROL), smoke `1 of 56` failed
(detail-shapes related-heavy).

</details>

<details><summary>Gates</summary>

All at b37d813.

- `dispatch-gates --commands` derived 56 families; 53 lock-free ones run
one by one, each exit 0. `dispatch-gates --ran` with every exit
recorded: `56 derived, 56 run, 0 NOT-MEASURED, 0 UNRUN`.
- Under `os-verify-lock` (one hold, parts sequenced, each part's own
exit read): `pnpm --filter @object-ui/components run type-check` exit 0;
`vitest run packages/components/` (from `ui/`) `Test Files 506 passed |
1 skipped (507)`, `Tests 4936 passed | 24 skipped (4960)`; `pnpm
check:type-check-debt` exit 0; `vitest run scripts/` (from `ui/`) `Test
Files 172 passed | 2 skipped (174)`, `Tests 5127 passed | 2 skipped
(5129)`; `pnpm check:dual-build-cjs-loads` exit 0.
- The acceptance note measured in the browser (backend + Console preview
at the head): a New Invoice opens with the trigger `value=USD`; an Add
line and a Widget A pick with no header edit leaves Unit Price `""` with
the note.
- Declared to CI: `test:repo` and the full lint farm.

</details>

## Two-minute check

`pnpm --dir ui exec vitest run
packages/components/src/__tests__/currency-code-picker-form-read-36321.test.tsx`:
3 passed. In the Console, New Invoice, type a name, Add line, pick
Widget A: Unit Price reads 29.99.

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

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

https://claude.ai/code/session_01JQwxbanvK21nJKgGjvE9XL

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

1 participant