Repository navigation
fix(ui): record page polish — dates read as dates, Save is the primary, new detail lines start on their defaults, no band above the tabs - #35937
Conversation
Claude-Session: https://claude.ai/code/session_01L6bhgVhfKtUtFdDWNgeCCE Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgVhfKtUtFdDWNgeCCE Co-authored-by: Claude <noreply@anthropic.com>
…after a refused save Claude-Session: https://claude.ai/code/session_01L6bhgVhfKtUtFdDWNgeCCE Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgVhfKtUtFdDWNgeCCE Co-authored-by: Claude <noreply@anthropic.com>
…band Claude-Session: https://claude.ai/code/session_01L6bhgVhfKtUtFdDWNgeCCE Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgVhfKtUtFdDWNgeCCE Co-authored-by: Claude <noreply@anthropic.com>
…the tab gap Claude-Session: https://claude.ai/code/session_01L6bhgVhfKtUtFdDWNgeCCE Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob Posted 2026-11-20T21:11Z. The brief handed to the isolated declaration-face reviewer for PR #35937 (owed by the PR's Contract review brief — PR #35937 @
|
|
repo:objectstack#1 · os-sales · session_01L6bhgXtcSJVbw8Gny1ERbP 维护者速读
席位核对 — ACCEPT (L1-c) · repo:objectstack#1 · head
|
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob Contract reviewServed-tier: Read at 2026-11-20T21:16Z: cards #35745 and #35816 (bodies and every comment, the 21:11Z ① Derived judgmentsPublic-surface and accept-set changes the diff implies:
Findings:
Nit:
② Semver level
③ Boundary flags
Implemented-by: VERDICT: PASS |
…he hosted pages' top and the record page live Claude-Session: https://claude.ai/code/session_01L6bhgVhfKtUtFdDWNgeCCE Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob Posted 2026-11-20T22:08Z. The DELTA brief handed to the same isolated declaration-face reviewer for PR #35937 (delta of its record 7050830297 on Contract review brief — PR #35937 @
|
|
repo:objectstack#1 · os-sales · session_01L6bhgXtcSJVbw8Gny1ERbP 维护者速读
席位核对 — delta ACCEPT (L1-c) · repo:objectstack#1 · head
|
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob Contract reviewServed-tier: Delta record (record 7050830297: PASS on
Each finding was checked against the code at ① Derived judgments
Findings:
Nits, none of which holds the verdict:
② Semver level
③ Boundary flags
Implemented-by: VERDICT: PASS |
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob L2 adoption and landing · 2026-11-20T22:14Z · The seat adopts the isolated declaration-face L2 delta record 7051882763 on head L1-c: ACCEPT 7050813930 on |
Requested by Sales · project thread
Fixes #35745
Fixes #35816
Clause-②: yes (widening)
Metadata-protocol: semantic
Skills-docs: none — no skill text describes the record page's date face, its edit-state buttons or a new detail line's start values; a field's
formatanddefaultValuekeep the meaning the skills already teach维护者速读
What changes
Four record-page fixes, one PR (the two cards were folded by the seat).
#35745 — business dates as dates.
DateCellRenderergains anabsoluteDatecell prop: with no declaredformat, the cell writes the date (with its year) and keeps the relative phrase as thetitle, the same face a grid column already uses (inGridColumn, #25884).DetailSectionandHeaderHighlightpass it, so the record page's field sections and highlights strip read like the list beside them. A declaredformat('relative'included) still wins; an overdue deadline still reads red, with "Overdue 5d" as the tooltip. Adatetimefield with noformatalready paints the compact absolute face (its cell's default, never the relative phrase); a test now pins that on the record page too. The record footer's created/modified times and card surfaces are untouched.#35745 — the band above the tabs. The page scroller (
RecordDetailView) andRecordPageColumnseach padded their top 24px on desktop, stacking a 48px band between the header and the tab row. The scroller now pads sides and bottom only;RecordPageColumnskeeps a 12px top at every width. The print chrome and the approval-fallback actions bar above the columns takemt-3so they keep their spacing. An authored page the page renderer draws (noRecordPageColumnsroot, a print page included) keeps the renderer's ownp-3 md:p-4 lg:p-6, so it still starts clear of the header (24px on a desktop, from 48); the loading, error, not-found and forbidden states are early returns of the view and never render inside the scroller. Side padding is unchanged.#35816 — Save is the primary button.
sys_record_edit_savedeclaresvariant: 'primary', andpage:headernow lets a host button that declaresvariant: 'primary'be the primary, in the place the host gave it (Cancel, then Save). No other host button declares a variant, so every other header ranks as before.#35816 — a new detail line starts on its defaults.
RecordBodyTableEditorcomputes the child object's static defaults withschemaDefaultValues(the values a create form seeds) and hands them toLineItemsFieldasnewRowValues; the ghost line starts on them. A new line's empty required cell reads red only once a save was refused (newRowRequiredShown), so the server's reason and the red cell arrive together; a stored line is flagged as before. A lineAddstarts onnewRowValuescarriesUNTOUCHED_NEW_ROW(a symbol key:Object.entries,JSON.stringifyand so every payload skip it) until its first edit;isBlankRowtreats a marked line as blank, so a line added and left as it came is skipped at save, while a line the user edited is judged by its values alone and is saved even when every typed value equals a default.@object-ui/fieldsexportsUNTOUCHED_NEW_ROWandisUntouchedNewRow. Server-resolved defaults (NOW(), CEL) are left to the server. The batch request and transaction are unchanged.Tests
DetailSection.dateYear-27520(记录页两处:页签上方有约 48 的空白带;日期字段显示成「6天前」,和列表里的「11月13日」不一致 #35745: past / today / future date, highlights strip, declaredrelativewins, CONTROL bare cell);RecordPageColumns(root padding pinned);page-header-primary-12617(记录页编辑状态:「取消」是蓝色主按钮、「保存」是描边,主次反了;有默认值的必填列在新行上显示红框 #35816: Cancel then Save with Save the only filled button; Save stays primary beside page actions, one declaringvariant: 'primary'included; CONTROL with no host primary the first page action leads);GridField(记录页编辑状态:「取消」是蓝色主按钮、「保存」是描边,主次反了;有默认值的必填列在新行上显示红框 #35816: Add and the entry line start on the host's values; a line Add started is marked untouched until its first edit, even an edit back to its default; CONTROL with nonewRowValuesno mark; a new line's empty required cell waits for the host's word while a stored line is flagged; CONTROL without that word a new line is flagged at once);RecordBodyTableEditor.recordEditBatch-35599(记录页编辑状态:「取消」是蓝色主按钮、「保存」是描边,主次反了;有默认值的必填列在新行上显示红框 #35816: an untouched new line is skipped, a line with input created with its default; a line edited back to exactly its defaults is created; the mark never reaches a write payload);DetailSection.dateYear-27520also pins adatetimefield reading as its date in a section row and the highlights strip;RecordDetailView.topInset-35745(mounted through the view: an authored page pads its own top under a scroller that pads none, CONTROL the scroller keeps sides and foot; a print page's chrome takes its top margin); live e2eui/e2e/live/record-page-polish-35745.spec.ts(showcase Expense Report on the real stack: tabs ≤ 12px under the scroller top, the date and its tooltip, Cancel then Save with Save the only filled button, a new line on Other / Submitted with no red cell, and an added untouched line not stored).recordPage.deadlineSettled-11815— the record page now writes the absolute date, so its text assertions readformatDate(iso, undefined, { alwaysShowYear: true })and the relative phrase ("Overdue 5d" / "5 days ago") moved to the tooltip assertion. Same records, same red/settled verdicts.absoluteDateremoved fromDetailSection→ 3/9 red;hostPrimaryforced undefined → 2/8 red;!newRowWaitsremoved fromGridField→ 1/54 red;newRowValuesdropped fromisBlankRow→ 1/7 red. Rework: scroller padding back top-3 sm:p-4 lg:p-6plus print chromemt-3removed → 2/2 red (topInset-35745);DateTimeCellRendererdefault'compact'→'relative'→ 1/10 red;touched(r)removed fromGridField's edit path plus the mark check removed fromisBlankRow→ 2/64 red; under the live spec, scroller padding back → red (tabs 36px under the scroller top), mark check removed → red (the untouched line is sent, the save is refused, the edit state stays).Acceptance notes
main;overlap-checkshows it merging cleanly with feat(console)!: one way to open a record from an object's list; navigation.mode deprecated there #35910 and feat(spec, ui): a master_detail child is a tab by default; a field group puts it in the overview and the form #35921, the open PRs sharingRecordDetailView.tsx. The header and band hunks were done last, and keep off the breadcrumb/frame hunks 记录页头部改成两行:导航条(上下条、来自哪个列表、关闭在最右)加记录名一行;操作按钮恢复最多露 3 个(图 40) #35853 changes.claude/project-thread-*name.buildDefaultPageSchema.tsand the save transaction are untouched.datetimefield is pinned absolute; S2 the other pages the scroller hosts are checked and one is pinned through the view; S3 a line is skipped only while untouched, by the mark above, instead of by comparing its values with the defaults; S4 the claimedui/e2espec is added undere2e/live, since the band only shows in real layout. The L2 nit and L1-c's two nits ride Parent create/edit form: new detail-table rows should prefill the child's defaults and not flag required cells before save (as the record page now does) #35940.Read first (by risk):
ui/packages/components/src/renderers/layout/containers.tsx(the primary pick — every record header goes through it);ui/packages/fields/src/widgets/GridField.tsx(newRowWaitsin the invalid computation);ui/packages/plugin-form/src/masterDetailTx.ts(isBlankRow).Two-minute check: open any Expense Report record, click Edit → the header reads Cancel (outline) then Save (filled); Add line in Expense Lines → the new line shows Other / No / Submitted and no red cell.
Verification
Browser evidence (light and dark, 1280 desktop and 375 phone, showcase app on a fresh seed) is in the project's evidence folder; readings below.
Browser readings
400 VALIDATION_FAILED, merchant cell red "Merchant is required", list "Row 3 · Merchant: Merchant is required", still in edit state; Merchant filled → stored with statussubmitted; an untouched added line → save succeeds, no line created.Unit tests and type-check (under the verify lock)
@object-ui/fields308 files / 4688 passed;@object-ui/plugin-form241 / 2697;@object-ui/plugin-detail393 / 3606;@object-ui/components492 / 4733;@object-ui/app-shell2350 / 22040 — all exit 0;type-checkexit 0 in all five.main(643fe3b): the six touched test files plus thecomponentstestsmainchanged — 12 files / 156 passed;check:type-check-debt(with--re-measure) OK.1f0b5268:@object-ui/fields308 files / 4690 passed;@object-ui/plugin-form241 / 2698;type-checkof fields, plugin-form, app-shell andtype-check:e2eexit 0;DetailSection.dateYear-27520,RecordDetailView.topInset-35745,RecordDetailView.appendInset-275203 files / 14 passed; the live spec passed against a local showcase stack (1 passed, 9.5s).Card gates (dispatch-gates)
dispatch-gates --ran: 40 derived, 40 run, 0 NOT-MEASURED, 0 UNRUN. 39 exit 0 at head0baf37d5. On the rework head1f0b5268the same 40 re-derived and re-run: 40 exit 0,vitest run scripts/included (it completed this time against the built console).overlap-checkon1f0b5268: clean againstmainand feat(console)!: one way to open a record from an object's list; navigation.mode deprecated there #35910, feat(spec, ui): a master_detail child is a tab by default; a field group puts it in the overview and the form #35921, feat(plugin-detail): the default record page drops the stage bar and key-field strip; the stage moves from the header tag #35938;check:test-source-aliasandcheck:nul-bytesOK.pnpm --dir ui exec vitest run scripts/: NOT MEASURED locally — with the console closure built (76/76 turbo tasks), the run was OOM-killed by the container's memory limit; CI's lint workflow runs it on this head.check:test-source-aliasfirst flaggedpage-header-primary-12617.test.tsx(it reaches the react runtime's dynamic import during a clocked case); fixed with the module-top import the gate names, re-run exit 0.overlap-check: clean againstmainand feat(console)!: one way to open a record from an object's list; navigation.mode deprecated there #35910, feat(spec, ui): a master_detail child is a tab by default; a field group puts it in the overview and the form #35921.check:nul-bytesOK.🤖 Generated with Claude Code
https://claude.ai/code/session_01L6bhgVhfKtUtFdDWNgeCCE