"My shares" headings show the full internal path, not the basename (#529 2/3 follow-up) #590
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#590
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?
Found in the v0.6.213 live pass. Small, but it is a mismatch with the shipped PR's own stated behaviour.
What happens
Shares → My shares, with one grant on the folder
moverini, renders the group heading as:The heading is the full owner-qualified backend path.
What was specified
PR #583 says of
pure:share-groups:and
share-groups.test.jshas a passing case named "each group carries the basename for its heading". So either the pure function returns the basename and the view ignores it, or the view is handed the wrong field — worth checking which before editing, since the test is green and should stay meaningful.The adjacent tab gets it right: Shared with me renders
moveriniwithshared by nikola-testunderneath, which is the intended treatment.Why it is worth fixing rather than leaving
/home/nikola-test/is the owner's own home prefix. On the My shares tab the viewer is the owner, so every heading repeats the same meaningless prefix, and a deep path pushes the part the user actually recognises off to the right. It also leaks the internal/home/<user>/layout into a user-facing surface for no purpose — the same reasoning that madevpathserver-supplied in #582 rather than rebuilt client-side.Keep the full path available somewhere (title attribute, or the row's own detail) — two files with the same basename in different folders must still be distinguishable. The heading is the only thing changing.
Reproduce
Fixed in #592, shipped as v0.6.214, live on both dogfoods.
As the issue suspected: the pure function was right and the view ignored it —
groupShares()carried bothpathandname, andsharesRenderMine()renderedg.path. The heading is nowg.namewith the full path kept as the heading'stitle, so two files sharing a basename in different folders stay distinguishable on hover.web/test/shares-view.test.jsnow covers the wiring: it renderssharesRenderMineagainst a fake DOM and asserts the heading text, the title, and the two-folders-one-basename case. Red witnessed on the old rendering before the fix.