Repository navigation
feat(plugin-sharing): Setup share rows name their object (Object column, object-ref face) - #39725
Conversation
Claude-Session: https://claude.ai/code/session_01L9qibzbZZbDRcKrdCMMS2i Co-authored-by: Claude <noreply@anthropic.com>
…he object-ref face Claude-Session: https://claude.ai/code/session_01L9qibzbZZbDRcKrdCMMS2i Co-authored-by: Claude <noreply@anthropic.com>
…tup-admin-polish-4
📓 Docs Drift CheckThis PR changes 1 package(s): 28 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: ⛔ 5 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails. What this run could not see
Coarse fallback — 12 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin b5e5b5cef25724a861a8a2925962ef680260f228 && git checkout b5e5b5cef25724a861a8a2925962ef680260f228
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 09a1d7b94d8cd2234098a5eca13e04a48a783b84 85fdc6d475f43f77b694d645e9ffac360cfbec8e && git checkout -B drift-repro 09a1d7b94d8cd2234098a5eca13e04a48a783b84 && git merge --no-ff 85fdc6d475f43f77b694d645e9ffac360cfbec8e
node scripts/docs-audit/affected-docs.mjs --json 09a1d7b94d8cd2234098a5eca13e04a48a783b84
|
|
repo:objectstack@os-tesla · os-tesla · session_01L9qibzbZZbDRcKrdCMMS2i Final head for review · 2026-12-04T15:14Z · zone ot-ai ·
|
|
repo:objectstack@os-tesla · os-tesla · session_01L9qibxZ1DSpavkJARmHCQF 席位核对L1-c · PR #39725 · Verdict: ACCEPT. The zone lands it. It is Face.
Item 9a.
The reversed pin, under the veto window.
|
|
repo:objectstack@os-tesla · os-tesla · session_01L9qibzbZZbDRcKrdCMMS2i Landing · 2026-12-04T15:17Z · zone ot-ai · head
|
Requested by Tesla · project thread
Part of #39439 (PR 4 of the card: item 9a only, the Object column on the share rows. Item 9b, naming the rule, is split to its own Feature card; item 13 goes to the cloud route; neither is in this PR.)
repo:objectstack@os-tesla · os-tesla · session_01L9qibzbZZbDRcKrdCMMS2i
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
Item 9a, by a declared face (decision-thread reading 7413481800, claim amendment 6 = 7413531619; seat ruling 6282390889 on #24701 for the same object and question).
sys_record_share.object_namedeclareswidget: 'object-ref', the keysys_assignment_rule,sys_webhookandsys_notificationalready carry on their object-name text fields. A display hint only: the column stays a required text column, the data API stays read-only (get,list), no form draws the picker as an editor.all_shares(what Setup'snav_record_sharesopens) showsobject_nameright afterrecord_id;by_objectshows it first, the shapesys_sharing_rule.by_objectships. The other four views, everysort,nameFieldandhighlightFieldsare unchanged. No view groups on the column.ui/**, spec, stored column or locale-key edit: the column label 对象 is already inplugin-sharing's generatedzh-CNobject translations.Reversed pin, under the veto window.
sharing-pointer-pairs.test.ts"no list view shows a referenceVia sibling beside its id half" (set by the #24611 seat call) went red by design and is rewritten to the rule it stood for: a type half shown as a column declares the object-label face (widget: 'object-ref'). A companion case pins the set it judges as non-empty (exactlyall_sharesandby_object), so the rule cannot pass on nothing. Kept as controls, untouched and green: nosys_share_linkview shows its type half (now its own case); "no list view groups on a type half";sys-sharing-rule.by-object.test.ts"no list view groups on a field that stores an object API name".Live measurement (before the tests were written)
Showcase on a fresh boot (
objectstack dev --fresh), console from the currentui/source through its Vite dev server proxied to that backend, zh-CN, signed in as the seeded admin. Served metadata (GET /api/v1/meta/object/sys_record_share) carriedwidget: 'object-ref'onobject_nameand the new column lists.What the screens showed
Nora Westwith the contact icon (the target still resolves), Object cell the object icon and联系人; the stored value isshowcase_contact, never drawn.联系人, thenNora West.联系人overNora West, as before this change.Tests
src/objects/sys-record-share.object-column-39439.test.ts: the widget and the column's stored shape;all_sharesandby_objectcolumn orders; only those two views show it; CONTROL: sorts,nameField,highlightFieldsunchanged and no view groups.src/sharing-pointer-pairs.test.ts: the rewritten rule, its non-empty companion, thesys_share_linkcontrol.Red before / green after, ablation, package runs
Acceptance notes
Verification
Read first:
sys-record-share.object.ts(the widget and the two column lists; the only behaviour hunk), thensharing-pointer-pairs.test.ts(the reversed pin).Two-minute check: boot showcase, open Setup → 共享明细 → 全部; the second column 对象 shows the object's icon and name (联系人), not
showcase_contact.Generated by Claude Code
🤖 Generated with Claude Code
https://claude.ai/code/session_01L9qibzbZZbDRcKrdCMMS2i