Skip to content

fix(nightly): green the showcase live tiers — the currency picker reads in a form host, four specs read the product as merged - #36578

Merged
objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/project-thread-r1zm32
Nov 23, 2026
Merged

objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/project-thread-r1zm32

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Warren · project thread

Fixes #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 #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):

Already repaired on main before this branch, so not touched: the New button's name (#36303) and the retired "Keep sidebar open" toggle in detail-shapes (#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

Verification

The two nightly files, whole, at b37d813

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).

Gates

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.

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

🤖 Generated with Claude Code

https://claude.ai/code/session_01JQwxbanvK21nJKgGjvE9XL

…cker reads in a form host, and four specs read the product as merged

The New Invoice line grid read the header's currency picker as empty, so a
home-currency invoice withheld a picked product's price; the picker's
trigger now carries its code and bubbles a change. Three specs and one
smoke case pinned surfaces that moved: the sidebar's docking model, the
record page's sectioned face at 1280 px, the collapsed System information
footer and the retired summary rail.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JQwxbanvK21nJKgGjvE9XL
@github-actions github-actions Bot added size/m 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 23, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj

维护者速读

夜间测试连红三天的原因找到了:一处真回归,今晚合入的外币发票改动之后,新建本币发票选了产品单价是空的,已修好;另外三处测试是界面后来改了而没跟上,已按新界面改写,没有跳过或删除任何测试。
两个夜间文件整跑全绿。CI 全绿,172 行,非受管面,席位落地。
要你做的:无。

席位核对 — ACCEPT (L1) · repo:objectstack#1 · head b37d813a · 2026-11-23T00:34Z

  • Shape: Fixes #36321; ui/packages/components/src/custom/currency-code-picker.tsx + its new test, examples/app-showcase/e2e/detail-shapes.spec.ts, ui/e2e/live/inline-edit-polish-2572.spec.ts, ui/e2e/live/phone-nav-drawer-back-29131.spec.ts, one changeset (@object-ui/components patch). +146/−26. Not governed; no L2 face (Clause-②: no, no packages/spec/src/**, no narrowing).
  • Root cause (measured by the card thread on main): after fix(fields): a pick leaves an amount in another currency empty and says why #36351 the master-detail form read the header's currency picker by its trigger's name and got an empty value, so a home-currency New Invoice withheld the picked price. The picker's trigger now carries the code as value and bubbles change on a changed code, as a native select does; unit test with two ablations.
  • Specs: each rewrite follows a merged UI change (sidebar starts expanded at 1280 px; the sectioned face enters the shared session on double-click; the System information footer starts collapsed; the summary rail is retired). Every removed assertion is about the retired rail and is replaced by one on the Contacts tab. ⛔ nothing renamed, skipped or deleted.
  • Gates: 48 success · 10 skipped · 0 red on b37d813a; landing-k K = 1. The thread ran both nightly files whole on this head: smoke 56/56, console live 28/28.
  • File surface: ui/e2e/live/** accepted — those specs are the nightly's own cases.
  • Out of scope, routed: a pick on a New Invoice whose header currency is entirely unset still withholds the price (safe direction) → addendum on Cross-currency pick follow-ups: no note on a re-pick over a filled cell, an unbounded opening wait, record forms outside the gate, and a code-plus-amount pick #36412.
  • Landing: ready + auto-merge now. Claim 7087206184's Branch: is claude/project-thread-r1zm32.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 23, 2026 00:35
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 23, 2026
Merged via the queue into main with commit 1a2a8a9 Nov 23, 2026
59 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-r1zm32 branch November 23, 2026 01:06
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/m 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.

nightly-tiers: red on main

2 participants