Repository navigation
fix(ui): on a phone the record page keeps Edit in its bottom bar, a compact stage bar and two-column key fields - #34684
Conversation
Claude-Session: https://claude.ai/code/session_01WGufzg2evNa1V3zxrQq3KX Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzg2evNa1V3zxrQq3KX Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzg2evNa1V3zxrQq3KX Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzg2evNa1V3zxrQq3KX Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzg2evNa1V3zxrQq3KX Co-authored-by: Claude <noreply@anthropic.com>
…o a render is stable for the same record Claude-Session: https://claude.ai/code/session_01WGufzg2evNa1V3zxrQq3KX Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#3 · os-support-ai · session_01WGufzhshTXCAmv9KJXRZkB 席位核对 · L1 (seat 3, L1-a) · 2026-11-17T07:21ZL1: ACCEPT The three card items are built as asked, the desktop paths are untouched, and every out-of-surface test file is covered by the amendment. The fix round's cause and repair are read and hold. No must-fix and no should-fix. The notes below are for the seat and are not bars. Must-fixNone. Should-fixNone. Readings that hold
Notes
|
|
repo:objectstack#3 · os-support-ai · session_01WGufzg2evNa1V3zxrQq3KX Landing · 2026-11-17T07:47Z · area o3-A
State: |
Requested by Yibo Wang · project thread
repo:objectstack#3 · os-support-ai · session_01WGufzg2evNa1V3zxrQq3KX
Fixes #34595
Clause-②: no
Metadata-protocol: none
维护者速读
ui/packages/components/src/renderers/layout/containers.tsx(barQueue那一处排序)、ui/packages/plugin-detail/src/renderers/record-path.tsx(Mobile: compact path块)、ui/packages/plugin-detail/src/HeaderHighlight.tsx(max-sm:grid两行)。What changes
containers.tsx,PageHeaderActionsbar face). The bar's queue is now: the host's buttons first (on an editable record, Edit), then the primary action (the first action declaringvariant: 'primary', else the first action), then the page's other actions. With the default budget of two the bar is Edit, the primary, then the⋯. This changes the queue order objectstack#27058 introduced, where the host's buttons queued after the page's own actions, so a page with two record actions pushed Edit into the⋯. A destructive host action (sys_delete) is still never a bar button and always folds.page:header.mobileMaxVisiblestill sets the budget: with1the slot is Edit's, with3the next page action joins. A record the reader cannot edit (no host Edit) keeps the primary and one more, as before. The desktop row is unchanged.record-path.tsx, belowsm). The old phone row (an equal share per stage, labels truncated) is replaced by: one decorative rail segment per stage (no names), then a summary button reading the step and the current stage's full name, e.g. "Step 5 of 6 · Negotiation", through the existingform.stepOfkey. The step counts the forward stages (open stages plus the won terminus); a record on a lost stage shows that stage, marked lost, with no step; a record on no stage shows the path's name. Pressing the summary toggles (aria-expanded) a list of every stage by its full name; on a path withallowStageChangeeach reachable stage there is the sameuseStageChangepress, behind the same field-access and state-machine gates, as on desktop. The mode is internal and viewport-driven: no prop was added toRecordPathProps, no new locale key. The desktop rail is unchanged.HeaderHighlight.tsx, non-grid branch, belowsm). The row becomesmax-sm:grid max-sm:grid-cols-2 max-sm:gap-x-4 max-sm:gap-y-3, the default page's phone grid, and each chip one cell (max-sm:basis-fullreplaced bymax-sm:min-w-0), so six fields read as three rows. Badge truncation and relative-time wrapping are untouched (that is 窄记录抽屉:关键字段里的徽标被截成一个字母,相对时间逐词换行 #34614).Why
The card's three acceptance items, measured on staging at 375 px: Edit was the fifth entry of the
⋯; the 7-stage path read "Pr… Q… Ne… Pr…"; the six key fields took one line each.Tests
New pins:
ui/packages/components/src/__tests__/page-header-phone-bar-27058.test.tsx, new top-level describe "the phone bar keeps Edit visible on an editable record (objectstack#34595)": the opportunity case ([Edit][Generate Quote][⋯], the primary picked byvariant, filled; Clone and Print and Delete in the⋯, Delete last),mobileMaxVisible: 3, a non-editable record (no host Edit) keeping the primary and one more, the no-action case, and a desktop control (row order unchanged). Placed in the existing phone-bar harness file rather than a new file, per AGENTS.md's shared-harness rule (ruling record 6583487846).ui/packages/plugin-detail/src/renderers/__tests__/record-path.compact-34595.test.tsx(8 cases): compact block only belowsm; rail segments decorative with states; summary reads "Step 5 of 6" plus the full name (and the zhstepOfcopy); the summary opens and closes the full list witharia-expanded, and the list is the button's next sibling with no generated id (fix round bc7e812: auseIdid/aria-controlsbrokerecord-block-record-reach.test.tsx's same-record-twice byte check); lost and no-stage readings; desktop control.ui/packages/plugin-detail/src/__tests__/HeaderHighlight.phoneGrid-34595.test.tsx(4 cases): the row's two-column phone grid; six chips one cell each, wide types included; desktop control (wrapping row, separators); default-page grid control.Assertion-only edits to existing tests that pinned the old behaviour, each citing #34595:
page-header-phone-bar-27058.test.tsx: the three bar-order cases now expect Edit first (plus an optionalhostActionsprop on the file's two hosts for the new describe, and a module-topimport '@object-ui/react-runtime'thatcheck:test-source-aliasrequires of an edited file).ui/packages/app-shell/src/views/RecordDetailView.phoneFace-27058.test.tsx: the two bar-order cases (the real record view with synthesizedsys_edit) now expect[Edit][Convert Lead].record-path.phoneRow-26897.test.tsx: the two equal-share / truncation cases now pin the compact path (rails one equal share, list labels wrapping).HeaderHighlight.lineFitAndPhoneLayout-12523.test.tsx: the phone layout token list (max-sm:min-w-0instead ofmax-sm:basis-full).Deviation from the claimed file surface, declared:
ui/e2e/record-path-phone-row.spec.ts(the Chromium geometry pin that read the old phone row's constants out ofrecord-path.tsx) is rewritten rather than assertion-edited, because the row it measured no longer exists; it now measures the compact path's rail and summary at 320/375/390 px.Ablations (each a committed fix, mutated through
scripts/ablation-replace.mjs, restored to the HEAD blob with an emptygit diff HEAD):page-header-phone-bar-27058.test.tsxred;max-sm:grid …line deleted fromHeaderHighlight.tsx: 1 of 4 inHeaderHighlight.phoneGrid-34595.test.tsxred;forwardStages.length→pathStages.length: 2 of 8 inrecord-path.compact-34595.test.tsxred.Acceptance notes
Claim surface amendment 6940603112 (area o3-A): the out-of-surface test pins and the rewritten
ui/e2e/record-path-phone-row.spec.tsare covered.Deviation from the card's "Edit one slot, the primary the other" (accepted by seat repo:objectstack#3): on a queue record where the host offers Claim (
sys_claim, a host button ordered ahead of Edit), Claim and Edit fill the default two slots and the primary folds;mobileMaxVisible: 3shows all three. The card names only Edit and the primary; host buttons leading the bar matches the desktop rule that a host button never folds. Reason: on a queue record Claim is the task, so it keeps a visible slot.An approval-locked record still draws Edit in its slot, disabled (the desktop behaviour); the card's "editable" reading is "the host offers Edit".
The figure's 「已停留 7 天」 (days in stage) is not built: no such reading exists on the path and the card's items do not ask for it.
The bar buttons keep equal widths (
flex-1, pinned bye2e/record-flow-phone-targets.spec.ts); the figure's narrower Edit is a sketch detail.ui
AGENTS.md✨ Set up Copilot instructions #2 asks for README /content/docs/frontend/updates; no page there describes the phone bar order, the phone stage row or the phone strip, so none was edited.Verification
All on head
fa5f2a016dunless noted; logs folded.Targeted tests (plugin-detail and components packages, two app-shell record-page files)
Also green before the main merge (same diff):
actionDialogFocus-27521,RecordDetailView.onSuccessNavigateHost-13396,RecordDetailView.accessEndedAfterDecision-26589(4 files, 56 tests).Type check
@object-ui/app-shelltype-check (an assertion-only test edit there) is left to CI's Type Check UI.Derived gate families (dispatch-gates --commands, 38 families)
Every command in the derived list exited 0, including
check:test-source-alias,check:nul-bytes,check:cross-package-test-inputs,check:published-files,check:type-check-coverage,check:type-check-debt(0 raw tsc error(s) total), the changeset gates, andpnpm --dir ui exec vitest run scripts/(Test Files 171 passed | 2 skipped,Tests 5077 passed | 2 skipped). Reconciliation:Run reconciliation — 38 derived, 38 run, 0 NOT-MEASURED, 0 UNRUN.ui lint on the changed files:
0 errors, 124 warnings(all pre-existingno-explicit-anywarnings).check:new-line-citations:0 new citation(s). Full lint farm: CI.Chromium at 375 px
ui/e2e/record-path-phone-row.spec.tsandui/e2e/record-flow-phone-targets.spec.tswith the preinstalled Chromium:10 passed(the compact rail fits at 320/375/390 with equal segments, the current stage name is whole on a 44 px target, a long name wraps, a 20-stage rail fits; the bar's 44 px targets unchanged). Run on commit62a7d5e107, whoserecord-path.tsxand spec blobs are byte-identical at head.The key-field strip, from a throwaway fixture with real Tailwind compiled for the classes read out of
HeaderHighlight.tsx(not committed): at 375 pxcolumns=2 rows=3for the six opportunity fields; at 1280 pxcolumns=6 rows=1(the wrapping row, unchanged).NOT MEASURED: the live Console against a running backend at 375 px, reason: no stack was started in this session; the three items are covered by the unit pins above and the fixture readings.
Human Minimum
packages/specholds no runtime logic.pnpm lintpasses.main, one pull request.packages/spectouched: its generated artifacts are regenerated and committed. (not touched)content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.🤖 Generated with Claude Code
https://claude.ai/code/session_01WGufzg2evNa1V3zxrQq3KX