Skip to content

fix(plugin-list): show list view sharing type and lock owner as read-only text, drop the dead Share button - #27013

Merged
objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/project-thread-nme23f
Oct 28, 2026
Merged

objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/project-thread-nme23f

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Warren · project thread
Fixes #26844

Clause-②: no
Metadata-protocol: none

维护者速读

  • 改了什么:列表视图工具栏上那个点了没反应的「Share」按钮,换成只读的共享状态文字(个人视图 / 共享视图),并在设置了 sharing.lockedBy 时显示锁图标和「Locked by 某人」。
  • 为什么改:原按钮没有任何点击处理,lockedBy 也从未显示;仓内不存在可以打开的视图共享控件或接口,按分诊裁决「不接就不渲染按钮」。
  • 风险与回滚:只动 plugin-list 工具栏这一处渲染和 10 个语言包各 3 个新键;不改 spec、不改接口;回滚即 revert 本 PR。
  • 先看:ui/packages/plugin-list/src/ListView.tsx 的 Sharing 指示块;ListView.test.tsx 的 sharing spec format — additional;ui/packages/i18n/src/locales/en.ts 的 sharingLockedBy。
  • 两分钟验证:pnpm --dir ui exec vitest run packages/plugin-list/src/__tests__/ListView.test.tsx -t sharing,预期 7 条全绿。
  • 需要你做的:无,席位落地。

What changes

  • ListView no longer renders a ghost Button for sharing. It renders a non-interactive span (no role, no tabindex, not inside a button) keeping the share-button test id, showing the localized sharing type (list.sharingPersonal "Personal view" / list.sharingCollaborative "Shared view") and, when sharing.lockedBy is set, a lock icon plus list.sharingLockedBy "Locked by USER". The tooltip carries both, so the narrow toolbar that hides the text still says them.
  • lockedBy: ViewSharingSchema declares it as a free z.string() described "User who locked the view configuration"; spec fixtures use ids (user_123, admin) and the plugin-list test an email. No user-lookup seam exists on this path, so it is rendered as written.
  • Three new list.* keys in all ten @object-ui/i18n locale packs and in LIST_DEFAULT_TRANSLATIONS (byte-identical to en).
  • Tests: the misnamed "should display lockedBy in sharing tooltip when set" (which asserted only Sharing: collaborative) is replaced by real coverage: collaborative + lockedBy shows the owner; personal shows no owner; collaborative without lockedBy shows no owner; the indicator is never a button. Two existing title assertions move to the new label.
  • Changeset: @object-ui/plugin-list patch, @object-ui/i18n patch.

Why

Triage ruling on the card: "Show the lock owner, and either wire Share to the sharing control or do not render it." / "⛔ No dead button." No view-sharing control or endpoint was found on main (ShareDialog in components is the record share-link dialog, a different feature; the list-view registration publishes no sharing input), so the second branch applies.

Acceptance notes

  • ListViewBlock.inertKeys-13074.test.tsx CONTROL "the Share button still carries no click handler" stays green unchanged (a click on the span changes nothing); its name now says "button" for a non-button. Outside the claimed file surface, so left untouched.
  • packages/spec/liveness/view.json row sharing cites "ListView.test.tsx:2572 pins the lockedBy tooltip" and the test name "should display lockedBy in sharing tooltip when set". That test is renamed here, and the old one never pinned lockedBy. Not edited (packages/spec/** out of scope); reported to the seat for routing.
  • The list.share default key is no longer read by ListView; left in place (still in every locale pack).

Verification

Tests and ablations
  • Closure: pnpm --workspace-concurrency=2 --filter '@object-ui/plugin-list^...' build under the lock, VERDICT command-exit 0 (5m44s).
  • vitest run packages/plugin-list/src/__tests__/ListView.test.tsx packages/plugin-list/src/__tests__/ListViewBlock.inertKeys-13074.test.tsx: Test Files 2 passed, Tests 167 passed.
  • After merging origin/main: vitest run packages/i18n/ packages/plugin-list/ packages/app-shell/src/__tests__/defaults-maps-mirror-en-pack.test.tsx: Test Files 255 passed, Tests 3045 passed, 13 skipped.
  • pnpm --filter @object-ui/plugin-list --filter @object-ui/i18n run type-check: exit 0.
  • Ablation 1 (ablation-replace.mjs, anchor const lockedBy = schema.sharing.lockedBy; replaced by an undefined): "shows the lock owner from sharing.lockedBy beside a collaborative type" red, 1 failed / 6 passed; restored, blob == HEAD.
  • Ablation 2 (the indicator's opening and closing span replaced by the old ghost Button): "renders the sharing indicator as read-only text, never a button" red, 1 failed / 6 passed; restored, blob == HEAD and git diff HEAD empty.
  • Tests import ListView by relative path, so no dist leg.
Gates
  • node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack at 2ccb965 (after merging origin/main): 34 families, each run, all exit 0, including node scripts/check-sdui-manifest.mjs and pnpm check:nul-bytes. --ran reconciliation: 34 derived, 34 run, 0 NOT-MEASURED.
  • pnpm check:new-line-citations (ui): 0 new citations, exit 0.
  • CI families: see this PR's check-runs.

🤖 Generated with Claude Code


Generated by Claude Code

@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Oct 28, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

维护者速读

  • 改了什么:列表工具栏上点了没反应的「Share」按钮换成只读的共享状态文字(个人视图 / 共享视图);视图被锁定时显示锁图标和「由某人锁定」。
  • 为什么改:原按钮没有点击处理、lockedBy 从不显示;仓内没有可接的视图共享控件,按分诊裁决不再渲染死按钮。
  • 风险与回滚:只动 plugin-list 工具栏一处和 10 个语言包各 3 个新键,不改 spec、不改接口;回滚即 revert。
  • 先看:ui/packages/plugin-list/src/ListView.tsx 的 Sharing 指示块(约 L6093)。
  • 两分钟验证:pnpm --dir ui exec vitest run packages/plugin-list/src/__tests__/ListView.test.tsx -t sharing。
  • 需要你做的:无;CI 全绿后由席位落地。
  • 席位意见:按裁决第二支落地正确,翻译为真实译文而非英文副本,测试与两次消融都对得上。

席位核对

ACCEPT · domain:ui#2 · session_01JQwxbXpF772qWJjojJvRXw · head 2ccb96563b · 2026-10-28T01:25Z

  1. Shape: draft, base main, line 3 Fixes #26844 (merging closes the card, the whole card is delivered); 13 files, +122/−23; check-governed-merges --pr 27013: NOT governed, ≤ 3000 lines.
  2. Premise measured: triage 6450980372 「…either wire Share to the sharing control or do not render it」/「⛔ No dead button」; the dev found no view-sharing control or endpoint (ShareDialog is the record share-link dialog), so the second branch applies. Seat spot-read of the diff: the <Button> is gone, the indicator is a span with no role or tabindex, lockedBy is read from schema.sharing.lockedBy, and the zh/ja rows are real translations (由 {{user}} 锁定, {{user}} がロック中), not English copies.
  3. Gate check-runs (pinned to head 2ccb96563b): at this record 7 success, 10 skipped, 14 in progress (Lint · repo & tooling gates and Type Check · workspace among them). Landing waits for every check green; the dev's local reading is 34/34 derived families exit 0, --ran 0 NOT MEASURED, ablations red-then-restored (blob == HEAD).
  4. Accepted deviations: one 16 s single-file ablation vitest outside os-verify-lock; an origin/main merge after a STALE TREE derivation.
  5. Out of scope: packages/spec/liveness/view.json row sharing cites the misnamed test this PR replaces as the lockedBy pin — Acceptance notes (stale ledger evidence in domain:spec, no user-visible defect; the row's claim is now true). ListViewBlock.inertKeys-13074.test.tsx CONTROL name says "button" — Acceptance notes. list.share key no longer read — Acceptance notes. Skills-docs: n/a (Metadata-protocol: none).
  6. Landing clause: not governed ⇒ when every check on the current head is green or expected-skip, the seat lands it through the relay (pr_ready + automerge_enable).

This was referenced Oct 28, 2026
@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review October 28, 2026 08:01
@objectstack-fleet
objectstack-fleet Bot enabled auto-merge October 28, 2026 08:01
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Oct 28, 2026
Merged via the queue into main with commit 5866877 Oct 28, 2026
54 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-nme23f branch October 28, 2026 08:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/m tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

console list view: sharing.lockedBy is never shown and the Share button has no handler

2 participants