File list shows which files are shared (row badge) #577
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Cordy/Cairn#577
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Follow-up from #571, split out because it is the one piece of that panel that needs backend work — everything else in the panel is served by what #573–#576 already shipped.
What
A file that is shared carries a badge in the file list, so "who can see this?" is answerable without opening the share dialog on every row.
Drawn in
share-panel-571-mockup.htmlrev 1, state B: a smallSharedchip beside the filename.Why it is not free
The listing response has no per-path grant count.
share.GrantQuerier.ListForPathanswers for one path; calling it per row would be N queries per directory render.So this needs a batch shape — roughly:
internal/api/listmeta.gois the precedent — it already decorates listings with per-path extras).listmeta.gois almost certainly the right home: it exists precisely so the browser can render per-row state without a request per row.Decisions still open
Sharedchip is simpler;SharedvsPublic linkis more truthful.SharedvsShared · 3. A count invites a click; a bare chip does not./shared, a badge saying "Shared" is noise — the whole tree is shared, that is why you can see it.Not in scope
The panel itself (#571) and anything about how grants are created. This issue is only the indicator.
Mockup batch A is drawn:
batch-a-572-577-598-mockup.html(design folder), block 5 — all three open decisions as variants A/B/C with a decision table. Recommendation: B — kind-distinguished chips (Shared quiet, Public in the warn tone), no counts, owner's view only (suppressed under/sharedand inside space content). Build waits on markup.Mockup approved (batch A rev 1 block 5 stands, no markup): variant B — Shared quiet / Public warn-toned, no counts, owner's view only, suppressed under
/sharedand inside space content. Public wins the chip when both apply.Shipped in v0.6.216 (PR #606), live on both dogfoods, as approved variant B: listmeta splits owner share records into Shared (grants) and Public (links) via
shareFlagMaps/applyPublic; the row chip renders Public in the link tone and it wins when both apply; labels i18n ×4. No counts; owner-records-only keeps/sharedviews quiet by construction. Closing.