Repository navigation
fix(nightly): green the showcase live tiers — the currency picker reads in a form host, four specs read the product as merged - #36578
Merged
Conversation
…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
Contributor
Author
|
repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj 维护者速读夜间测试连红三天的原因找到了:一处真回归,今晚合入的外币发票改动之后,新建本币发票选了产品单价是空的,已修好;另外三处测试是界面后来改了而没跟上,已按新界面改写,没有跳过或删除任何测试。 席位核对 — ACCEPT (L1) · repo:objectstack#1 · head
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Warren · project thread
Fixes #36321
Clause-②: no
repo:objectstack#1 dispatch · os-warren · session_01JQwxbanvK21nJKgGjvE9XL
维护者速读
What changes
The nightly
livetier'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 bubblinginput/change. The picker's only element in the form is its trigger button, which carries the field'sname, and a button'svaluewas 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 itsvalue, and a changed code bubbles onechangeevent 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 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 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 (记录页字段区:点一下只编辑这一个字段,回车或点别处就保存(现在是整条记录变成表单、要点「保存」);页头「编辑」按钮保持整页表单 #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 (记录的字段区统一成一列:右侧预览、手机记录页、宽屏左栏共用一个组件,不管多宽都只排一列;分组箭头在右 #36147), so the case opens it before reading "Created"; and the summary rail is retired in every tier (记录页宽屏整页:第一个页签(字段)钉到左栏,右边直接是其余页签;没有其他页签时字段撑满;取消右栏摘要卡(图 41) #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
Newbutton's name (#36303) and the retired "Keep sidebar open" toggle indetail-shapes(#36297).Tests
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 onechangefrom the trigger, read after the new code is on it, and opening on a code announces nothing.scripts/ablation-replace.mjsand restored to the HEAD bloba5fe02c11426withgit diff HEADempty: the trigger'svalueremoved givesTests 2 failed | 1 passed (3); thedispatchEventremoved givesTests 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': smoke56 passed (2.7m), Console live specs28 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 live3 of 28failed (form-view-subforms, inline-edit-polish-2572, phone-nav CONTROL), smoke1 of 56failed (detail-shapes related-heavy).Gates
All at b37d813.
dispatch-gates --commandsderived 56 families; 53 lock-free ones run one by one, each exit 0.dispatch-gates --ranwith every exit recorded:56 derived, 56 run, 0 NOT-MEASURED, 0 UNRUN.os-verify-lock(one hold, parts sequenced, each part's own exit read):pnpm --filter @object-ui/components run type-checkexit 0;vitest run packages/components/(fromui/)Test Files 506 passed | 1 skipped (507),Tests 4936 passed | 24 skipped (4960);pnpm check:type-check-debtexit 0;vitest run scripts/(fromui/)Test Files 172 passed | 2 skipped (174),Tests 5127 passed | 2 skipped (5129);pnpm check:dual-build-cjs-loadsexit 0.value=USD; an Add line and a Widget A pick with no header edit leaves Unit Price""with the note.test:repoand 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