Repository navigation
fix(ui): Setup record pages show names, not ids, for sharing-rule recipients, conditions and sign-in audit rows - #30496
Merged
Conversation
… condition in words, and name an audit row's session by its user Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgWs5eCv64CbCPwjWhV
…ds, and lookup-named pointer records Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgWs5eCv64CbCPwjWhV
…xt values as text, and enrol the key in the renderer censuses Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgWs5eCv64CbCPwjWhV
Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgWs5eCv64CbCPwjWhV
Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgWs5eCv64CbCPwjWhV
Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgWs5eCv64CbCPwjWhV
Contributor
Author
|
domain:ui#6 · os-sales · session_01L6bhgUR8Nu4M7tbtgES7q2 维护者速读
席位核对 — ACCEPT · head f122316
|
This was referenced Nov 5, 2026
Closed
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 Sales · project thread
domain:ui#6 · os-sales · session_01L6bhgWs5eCv64CbCPwjWhV
Refs #30209 (rows 2 and the record-label half of row 3; rows 1, 3-rest, 4, 5 and 6 are not in this PR, see Acceptance notes)
Clause-②: no
Metadata-protocol: none
维护者速读
ui/packages/plugin-grid/src/RecordPointerCell.tsx(读取等定义返回后再查记录,名称字段是引用时才$expand)、ui/packages/fields/src/widgets/FilterConditionField.tsx(只读态的文字化)、ui/packages/plugin-detail/src/DetailSection.tsx。pnpm --dir ui exec vitest run packages/fields/src/widgets/__tests__/FilterConditionField.readWords-30209.test.tsx packages/plugin-detail/src/__tests__/recordFace.siblingValues-30209.test.tsx packages/plugin-grid/src/__tests__/ObjectGrid.recordPointerCell-12608.test.tsx,预期全部通过;或在控制台打开一条共享规则记录,看「接收方」是人名、「条件」是一句话。What changes
@object-ui/plugin-detail).HeaderHighlightandDetailSectionhand each read celldependentValues(the staged record / the record), as the list grid hands its row. Therecipient-pickerface readsrecipient_typefrom it, so a sharing rule's 接收方 reads the recipient's name instead of the stored id.filter-conditionhas a read face (@object-ui/fields). The key joinsWIDGET_CELL_RENDERER_TYPESand its cell (FilterConditionCell, lazy, stored text until the widget module lands) draws the widget's read-only display. That display now says a representable criteria in words, in the object's field and option labels, joined by the AND / OR word, with booleans as words and both bounds of a range; the words are the filter builder's ownfilterBuilder.*rows, so no language-pack key is added. A criteria the builder cannot represent still reads as the stored JSON; a non-string value reads as the text cell reads it; a read-only widget no longer refuses to speak withoutobject_name(fields keep their api names).@object-ui/plugin-grid).RecordPointerCell's batched read now waits for the target definition (already in flight) and adds$expand: [nameField]when the object's name field is a reference type the viewer may read (buildExpandFieldsover that one field, gated bycheckFieldonce the policy has answered).sys_sessionis named byuser_id, so the audit list's sign-in rows read "Dev Admin" instead of the user id. Any other name field is read exactly as before, with no$expand.Tests
ui/packages/fields/src/widgets/__tests__/FilterConditionField.readWords-30209.test.tsx(zh provider): one condition reads优先级 等于 紧急; an OR group with a boolean reads优先级 等于 低 或 已完成 等于 是; a nested criteria stays the stored JSON (control).ui/packages/plugin-detail/src/__tests__/recordFace.siblingValues-30209.test.tsx: a probe face registered underrecipient-pickerreceives the record from the highlights strip and from the details body.ui/packages/plugin-grid/src/__tests__/ObjectGrid.recordPointerCell-12608.test.tsxgains a top-leveldescribe: a session row names its user and the read expands onlyuser_id; a text-named record is read with no$expand(control).cellRenderers.objectLiteral-8596andsummaryChip.badgeFitCensus-8464(fit side 40 → 41).Readings (head
f122316d, basec5800818)git diff HEADempty):DetailSectiondependentValues={data}removed → the details case red (1 failed / 1 passed); the words branch disabled (if (false)) → 2 failed / 1 passed; the$expandspread deleted → 1 failed / 4 passed.fields,plugin-detail,plugin-gridand the app-shell widget-ref-cells / record-preview directories: the only reds were the four registry censuses, now carrying the new key (rerun 36 files / 453 tests green).turbo run type-check --filter=@object-ui/fields --filter=@object-ui/plugin-detail --filter=@object-ui/plugin-grid, 55/55.vitest run scripts/rerun alone: 171 files passed); uicheck:spec-symbols,check:i18n-keys,check:unreferenced-sources,check:side-effects-array,check:phantom-deps,check:esm-specifiers,check:i18n-drift,check:new-line-citationsand rootcheck:doc-authoringexit 0. eslint on the changed files: 0 errors.Acceptance notes
Re-measured on
origin/mainc5800818with app-showcase (objectstack dev --seed-admin) and the console on vite, zh-CN, before any edit:0, 暂无相关记录packages/platform-objects/src/pages/sys-user.page.ts, arecord:related_listoversys_user_permission_set). Showing effective access needs a page node that calls the explain door, i.e. a page-component vocabulary entry inpackages/specplus the page edit inpackages/platform-objects, then the ui block. ⛔packages/**in this claim · spec + platform-objects (server) lanes, then uizlom5o5m8OyCwF3aBgywwFWOHKJ03mou; 条件{"priority":"urgent"}05bdsJ9C…(asys_session, named by itsuser_idlookup); other rows already namedsys_platform_setting_audit(and others) have no zh-CN row inpackages/platform-objectstranslations, so the label is the English source · i18n source, server/platform lane. "One sign-in writes several rows" and a default view that hides them are the audit writer and the object's list views inpackages/**· server lanesys_queue_member.queueis a text field holding the queue name, not a lookup, so no related list is synthesized and none can be authored without metadata: a lookup, or asys_queuepage with a members list, both inpackages/plugins/plugin-sharing· server lanesys_queuelabels ("Queues", "Queue", "Display Label") read English under zh-CN; that is translation coverage inpackages/**.Verification
Screenshots (zh-CN console, 1440×900 @2x) on the never-merged evidence branch:
Evidence commit
994f8a84(removed again in165c14ce, so the PR diff carries no images).🤖 Generated with Claude Code
https://claude.ai/code/session_01L6bhgWs5eCv64CbCPwjWhV