Repository navigation
fix(plugin-list): show list view sharing type and lock owner as read-only text, drop the dead Share button - #27013
Merged
Conversation
…only text, drop the dead Share button Claude-Session: https://claude.ai/code/session_01JQwxbWRtAdijdY6zPkJ9Pq Co-Authored-By: Claude <noreply@anthropic.com>
Contributor
Author
维护者速读
席位核对ACCEPT ·
|
This was referenced Oct 28, 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 Warren · project thread
Fixes #26844
Clause-②: no
Metadata-protocol: none
维护者速读
sharing.lockedBy时显示锁图标和「Locked by 某人」。lockedBy也从未显示;仓内不存在可以打开的视图共享控件或接口,按分诊裁决「不接就不渲染按钮」。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
ListViewno longer renders a ghostButtonforsharing. It renders a non-interactivespan(no role, no tabindex, not inside a button) keeping theshare-buttontest id, showing the localized sharing type (list.sharingPersonal"Personal view" /list.sharingCollaborative"Shared view") and, whensharing.lockedByis set, a lock icon pluslist.sharingLockedBy"Locked by USER". The tooltip carries both, so the narrow toolbar that hides the text still says them.lockedBy:ViewSharingSchemadeclares it as a freez.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.list.*keys in all ten@object-ui/i18nlocale packs and inLIST_DEFAULT_TRANSLATIONS(byte-identical toen).Sharing: collaborative) is replaced by real coverage: collaborative +lockedByshows the owner; personal shows no owner; collaborative withoutlockedByshows no owner; the indicator is never a button. Two existing title assertions move to the new label.@object-ui/plugin-listpatch,@object-ui/i18npatch.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(ShareDialogin components is the record share-link dialog, a different feature; the list-view registration publishes nosharinginput), so the second branch applies.Acceptance notes
ListViewBlock.inertKeys-13074.test.tsxCONTROL "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.jsonrowsharingcites "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 pinnedlockedBy. Not edited (packages/spec/**out of scope); reported to the seat for routing.list.sharedefault key is no longer read byListView; left in place (still in every locale pack).Verification
Tests and ablations
pnpm --workspace-concurrency=2 --filter '@object-ui/plugin-list^...' buildunder 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.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-replace.mjs, anchorconst lockedBy = schema.sharing.lockedBy;replaced by anundefined): "shows the lock owner fromsharing.lockedBybeside a collaborative type" red, 1 failed / 6 passed; restored, blob == HEAD.spanreplaced by the old ghostButton): "renders the sharing indicator as read-only text, never a button" red, 1 failed / 6 passed; restored, blob == HEAD andgit diff HEADempty.ListViewby relative path, so no dist leg.Gates
node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstackat 2ccb965 (after mergingorigin/main): 34 families, each run, all exit 0, includingnode scripts/check-sdui-manifest.mjsandpnpm check:nul-bytes.--ranreconciliation: 34 derived, 34 run, 0 NOT-MEASURED.pnpm check:new-line-citations(ui): 0 new citations, exit 0.🤖 Generated with Claude Code
Generated by Claude Code