fix(motifs): make linked motifs clickable from an entry (#3) #47
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/v6.1-clickable-motifs"
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?
Closes #3 (v6.1).
Problem
On an entry, the linked motifs (the "Motifs" section,
AddToMotif) rendered each motif title as a plain<span>— inert text. There was no way to navigate from an entry to one of its motifs.Fix
Render each linked motif's title as a
<Link to={/motifs/:id}>(the existing motif-detail route), with a hover colour + underline affordance. One-line behavioural change in AddToMotif.tsx; the add/remove panel and everything else is untouched.Test
Adds
AddToMotif.test.tsx— routes the component's two mount fetches and asserts a linked motif renders as a link withhref="/motifs/:id". Guards against this regressing.Verification (dev server)
tsc+vite buildclean ✅First of the three v6.1 issues; #5 (dark-mode graph) and #4 (export-all-motifs) to follow.
🤖 Generated with Claude Code