Repository navigation
fix(record-page): the related tab offers only open-in-list and one add entry; a multi-pick add is all or none - #35725
Conversation
…c picker add Claude-Session: https://claude.ai/code/session_01Utp6CZrgaiMgTJCnswR6jQ Co-authored-by: Claude <noreply@anthropic.com>
…hs, currency-less totals Claude-Session: https://claude.ai/code/session_01Utp6CZrgaiMgTJCnswR6jQ Co-authored-by: Claude <noreply@anthropic.com>
…oups, remembered sort and widths, sourced list page and currency-less totals Migrates the retired chip, filter and export pins; adds the batch mock the picker gate now needs to the add tests. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CZrgaiMgTJCnswR6jQ
…page pin Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CZrgaiMgTJCnswR6jQ
…unused import The related tab's single Add entry wrote the `detail.add` fallback twice (picker and New branches), tipping the residue pin from 4 to 5 sites. Hoist it once and record the new affordance in the pin's comment. Drop the unused `isPermissionError` import that failed Lint UI. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CZrgaiMgTJCnswR6jQ
…rite census sees the add `batch.call(dataSource, …)` hid the related tab's atomic add from the affordance write census. Call the member directly and enter the site as one `batch` entry behind relatedNew and relatedRowEdit. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CZrgaiMgTJCnswR6jQ
|
repo:objectstack#5 · os-bill · session_01Utp6CXsZsKmgG1EcKp5bY4 维护者速读
席位核对ACCEPT · head Routing: no Checked:
Required before landing:
For the seat (not blocking):
Nits (no action required):
|
…ildren A pick re-parents the child, so a row already under this record was a no-op and a row under another parent moved silently. The derived picker on a lookup related tab now filters the relationship to empty; moving a child between parents stays on its own form. Authored pickers keep their own filter. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CZrgaiMgTJCnswR6jQ
|
repo:objectstack#5 · os-bill · session_01Utp6CXsZsKmgG1EcKp5bY4 维护者速读
席位核对delta ACCEPT (on ACCEPT 7030529410) · head Routing unchanged: the area lands it.
No required item. Land on this head. |
|
repo:objectstack#5 · os-bill · session_01Utp6CZrgaiMgTJCnswR6jQ Landing · area ux-2 · 2026-11-20T05:01Z
State: draft → ready + auto-merge (merge queue). |
⛔ merge queue 构建失败 — 先分诊,再决定要不要重排队列构建 44678319894 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集), 分类: 失败的 job(日志抽取,best effort):
跨 PR 相同签名(24h,按失败测试文件聚合):
历史信号:
分诊清单:
Generated by Claude Code · merge-queue-triage workflow (#4859) |
|
repo:objectstack#5 · os-bill · session_01Utp6CZrgaiMgTJCnswR6jQ Re-queue · area ux-2 · 2026-11-20T05:24Z Queue run 44678319894 ejected this PR on |
Part of #35601
Fixes #35710
Part of #35590
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
The related tab (
RelatedList.tsx, the enlarged face). The toolbar draws two entries at its right end: 「↗」 (data-related-open-list, the host'sonViewAll) and 「+ 添加」 (data-related-add). The filter box, the 全部/我的/逾期 chips, the export, the tab's own New and the count line under the table are gone; the count lives in the tab title. A page's declared toolbar actions for the child (toolbarActions) still draw beside the two entries: they are authored metadata, not tab chrome, and dropping them would silently lose an authored action (see Acceptance notes).One add entry, chosen by the relationship when the page authored no
add(derivedAddOf):lookupcreateRow)master_detailwhose rows name a catalog record (exactly one other required, single, editablelookup)linkField)master_detailwith no catalogonNew)An authored
addkeeps its own picker and its ownpicker.filter, as before.No silent re-parent (seat ruling on L1-a S1). The derived lookup picker filters
<relationship> is_empty: a child already under this record (a no-op pick) and a child under another parent (which a pick would move without notice) are not offered. Moving a child between parents stays on the child's own form, where the change is visible.All or none. A pick of N records is ONE
dataSource.batchTransactioncall: onePOST /api/v1/batchwithatomic: true(ADR-0035, ADR-0119 D4), never a client loop. Re-parenting a lookup child isupdate, a catalog pick iscreate. On failure nothing is added, the picker closes and the server's own message shows under the list (role="alert"). A data source with nobatchTransactionoffers no picker (it falls back to New). This also changes an authoredaddpicker everywhere it is used: it was a loop of single writes, it is now the same one batch.Status grouping. On the related tab a child is grouped by status when it has a status select (
detectStatusField) AND adueLikedate whosesettledWhenthe status settles. The rule, generic and declared, not a name list: a status option is "completed" exactly whenisDeadlineSettled(deadline, { [status]: option })is true. Open options come first in the order the select declares them, then rows with no status (「—」), then the completed options; empty groups are not drawn; each group header collapses its rows. No settling option ⇒ no groups (the list draws as before).Remembered header sort and column widths. Per list (
CHILD.FK), in the record page's existing per-user preference row (sys_user_preferenceui.record.PARENT, throughRecordPagePreferencesContext, which gains an optionalrelatedListsslice); no new storage. The sort is applied once on first read; a header click is written back. Column order and widths rideobject-grid's existingcolumnStateinput andonColumnStateChangehost prop.「↗」 on empty lists and body tables. The card face draws 「↗」 on an empty list and on a body table too (when the host offers a destination).
The list 「↗」 opens knows its record (
RelatedRecordActionsBridge.tsx,ObjectDataPage.tsx). The bridge appends this record to the record trail (?from=) of the URL it already built (filter[FK]=ID). The list page then names the record in the condition's tag (「Account Globex ×」, the merged tag reused), draws a breadcrumb (object / record / this list), offers 「Reset」 which puts the sourced condition back after the reader changed or removed filters, and opens New as that record's child (the record form overlay withformLink, the related list's own New path). The condition itself stays an ordinary URL filter.Body-table totals with no resolvable currency (the folded card). A currency column whose currency resolves to nothing (no code of its own, no tenant default) now totals: the server's figure, drawn as its cells are (two places, no symbol). Before, the total was left out. Record-mode amounts whose rows name their own currency keep the per-currency grouping (a mixed or unknown code still draws no total).
RecordPickerDialoggains an optionalcreateRowprop (a dashed first row). Columns and search are untouched.No new i18n key: the strings reuse
detail.add,detail.new,detail.viewAll,common.reset. The keys the removed chips used (relatedFilter,relatedChips,relatedChipAll/Mine/Overdue,relatedExport,relatedRows) are now unread and left in the packs (see Acceptance notes).Tests
Migrated and retired:
RelatedList.enlargedToolbar-27524.test.tsx: rewritten. Retired the chip, filter, export and in-tab New cases and the export describe; new pins: exactly ↗ and Add (also on an empty list); lookup picker with New first and three picks as ONE batch of three; a rejected batch adds nothing, shows the reason and sends no single write; master_detail with a catalog creates rows naming the catalog; master_detail without one calls New; no batch route ⇒ no picker; status groups in order and collapsible, with a control; the header sort written to and read from the record-page preference.RelatedList.enlargedListGrid-28865.test.tsx: retired the filter-box DEVIATION pin and the two chip-count pins; added "the count is not repeated under the grid", column state read from and written to the preference, and a no-store control.RecordRelatedListRenderer.showViewAll-12741.test.tsx: 「an EMPTY list: no link」 migrated to 「an EMPTY list: ↗ still draws」.RelatedList.bodyTable-27055.test.tsx: 「…and not at all without one」 split; new pin: with no currency resolving the total is the server figure, no symbol, one ungrouped aggregate.batchTransactionon their data source (the picker gate now needs it):addGateDataSource,addGrant-12082,addPickerFilter,addPickerGuard,addPickerLabelField,record-blocks.nestedLabelsI18nLabel-10993.New:
ObjectDataPage.sourceList-35601.test.tsx(tag names the record, breadcrumb, Reset, New linked, a no-trail control,sourceRelationshipField); afrompin inRelatedRecordActionsBridge.viewAll-12741.test.tsx; arelatedListssanitize pin inRecordPreferencesProvider-25883.test.tsx.Readings at 6ea1cb9
pnpm --dir ui exec vitest run --maxWorkers=2 packages/plugin-detail packages/app-shell/src/views/ObjectDataPage.sourceList-35601.test.tsx packages/fields/src/widgets/RecordPickerDialog packages/react/src/contextat 756d92b: 3 failed (allrecord-blocks.nestedLabelsI18nLabel-10993, missing batch mock), 3773 passed; after the mock: that file and the sourced-list file 14/14.ObjectDataPage*,RelatedRecordActionsBridge*,RecordPreferencesProvider-25883: 136/136 after the control fix; consolerecord-block-record-reach,public-block-binding-reach,PageBlockInspector.jsonFieldLabel-27178, plugin-gridrelatedListRowActionDisabled-33215: 38/38.type-check(tsc --noEmit and tsconfig.test.json): react, fields, plugin-detail, app-shell, exit 0.else plan.amount = true;replaced byelse continue;(anchor 1 to 0, blob efaf47a4 to 28984401): the new total pin fails, 1 failed; restored, blob equals HEAD,git diff HEADempty.await ds.batchTransaction(operations);) replaced by a per-op loop: 2 failed (the lookup and the catalog batch pins); restored, blob equals HEAD.Fixes after 6ea1cb9 (CI)
isPermissionErrorimport (Lint UI); the related tab entry'sdetail.addfallback is written once (addFallbackLabel), so the residue pin stays at 4 sites, and its comment names the new entry.batch.call(dataSource, …)hid the add from the affordance write census (affordanceGrantMap-12082); it now callsds.batchTransaction(operations)directly, and the census has onehandleAddRecords :: batchsite mapped torelatedNew+relatedRowEdit(replacing the oldcreate/updatepair).RelatedList.enlargedToolbar-27524: a row linked here and a row linked elsewhere are absent, the unlinked row is present, and every picker read carries the rule.Acceptance notes
POST /api/v1/batchwithatomic: trueanswers a failing op with ONE error (404 {"error":"Record ID not found in showcase_contact","code":"RECORD_NOT_FOUND",...}) and no op index. The list shows that message, which names the record only when the server's own message does (here it does; a validation error such as a missing required field does not). Naming the item in every case needs the batch route to say which op failed (abatch-routes.tswidening, Clause-② yes) or a data-source door over the per-object atomic batch (/data/OBJECT/batch, which reports per row). Neither was made here: the op index is filed as rest: the cross-object batch refusal names the failing operation's index, so a multi-pick related-list add can say which record failed #35726 (nested under 相关子表的页签:不放筛选排序,右上角只留「添加」和「在列表中打开」;批量添加要么全成要么全不成 #35601), which is why the body says Part of for the related-tab card.RecordPickerDialoggainscreateRow(the fence names its columns and search; neither changed).RecordPagePreferencesContext(react) andRecordPreferencesProvider(app-shell) gain therelatedListsslice: the ruling's per-user mechanism, no new storage.ObjectDataPage.tsxcarries the list route's tag, breadcrumb and reset wiring (the claim's "list route wiring");useOpenRecordList.tsneeded no change.toolbarActionsfor the child still draw beside ↗ and Add (authored metadata, not tab chrome).records-forms.related-list-server-paginationstill holds (paging kept on the tab).Verification
Two-minute check: on the CRM example, open an opportunity, its Activities tab: two buttons at the right (↗, Add), activities grouped Planned / In Progress / Cancelled / Completed. Open the Line Items body table: the Total row shows amounts with no currency symbol.
Browser reading (A4): built console (
pnpm console:buildat this branch), headless Chromium 1440x900 at DSF 2; screenshots in the seat'sa4-35601folder.A4 readings
["View All","Add"](01). Add opens a picker of contacts, first row New (02). Three picks, Confirm: ONEPOST /api/v1/batch200 with threeupdateops andatomic: true; tab title Contacts 3 (03, 04).POST /api/v1/batch404RECORD_NOT_FOUND; the alert shows the server message; the account still has 3 contacts and the first two picks kept their old account (05)..../showcase_contact/data?filter[account]=ID&from=[{o,i,t:"Globex"}]; tag 「Account Globex」, breadcrumb 「Accounts (Success Overlay) / Globex / Contacts」, Reset disabled (06); tag removed, Reset enabled (07); Reset putsfilter[account]back (08); New opens the Create Contact overlay withformLink=account:ID(09); the breadcrumb record link returns to the account page.planned, in_progress, cancelledopen andcompletedsettled, in that order (11, 12 collapsed).["View All","Add"]; Add opens the new-record form (form=new&formObject=crm_opportunity_line_item&formLink=opportunity:ID), no picker (15, 16). Body table total row 「Total 2,649.75 5,501.00」, cells 「999.00」, 「3,601.50」: no symbol, as the cells (14).