fix(#590): the My-shares heading is the basename the pure fn already carried #592

Merged
Cordy merged 1 commit from fix-590 into main 2026-09-18 01:30:56 +00:00
Owner

One field. groupShares() returns both path and name — and its test for "each group carries the basename for its heading" was green the whole time — but sharesRenderMine() put g.path in the heading. The fix renders g.name and keeps the full path as the heading's title, so two files with one basename in different folders stay distinguishable on hover.

New: web/test/shares-view.test.js — the glue, not the mapping: lifts sharesRenderMine (plus the pure block and shareRoleBadge) and renders it against a fake DOM. Three claims: heading is the basename; full path survives as title; same basename in two folders yields two groups with distinct titles. This is the fourth instance of pure-block-right-wiring-wrong in the #571 slice, and the same lift-the-glue pattern as settings-load.test.js.

Red witnessed: heading rendered /home/nikola-test/moverini; workflow aborts if the test passes pre-fix. Green: all three, plus the full web suite and the #389 extract gate.

One field. `groupShares()` returns both `path` and `name` — and its test for "each group carries the basename for its heading" was green the whole time — but `sharesRenderMine()` put `g.path` in the heading. The fix renders `g.name` and keeps the full path as the heading's `title`, so two files with one basename in different folders stay distinguishable on hover. **New: `web/test/shares-view.test.js`** — the glue, not the mapping: lifts `sharesRenderMine` (plus the pure block and `shareRoleBadge`) and renders it against a fake DOM. Three claims: heading is the basename; full path survives as `title`; same basename in two folders yields two groups with distinct titles. This is the fourth instance of pure-block-right-wiring-wrong in the #571 slice, and the same lift-the-glue pattern as `settings-load.test.js`. **Red witnessed:** heading rendered `/home/nikola-test/moverini`; workflow aborts if the test passes pre-fix. **Green:** all three, plus the full web suite and the #389 extract gate.
fix(#590): the My-shares heading is the basename the pure fn already carried
All checks were successful
ci / test-and-build (pull_request) Successful in 1m2s
6f17b11e53
Cordy merged commit 22fdfbfde6 into main 2026-09-18 01:30:56 +00:00
Cordy deleted branch fix-590 2026-09-18 01:30:58 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Cordy/Cairn#592
No description provided.