feat(export): export all motifs as one combined Markdown document (#4) #49
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/v6.1-export-all-motifs-md"
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 #4 (v6.1).
What
A new
GET /api/export/motifs.mdthat returns every motif combined into a single Markdown document, suitable for sharing. Each motif is rendered with the existing per-motif Markdown formatter (motifToMarkdown), joined under a document header (# Motifs+ count) with---separators between them; a friendly placeholder when there are no motifs.Surfaced in the UI as a
motifs.mdbutton in Settings → Export → All motifs, next to the existingmotifs.json.Why this shape
Reuses the proven per-motif renderer rather than introducing a second formatting path, so single-motif and all-motif exports stay consistent. User-scoped like the sibling
motifs.json.Test
New
export.test.tsintegration test: asserts the combined document contains each motif's section + its entries, the horizontal-rule separator, the right content-type/filename headers, and the singular/empty wording.Verification (dev server)
tsc+ apptsc/vite buildclean ✅export.test.ts2/2 green ✅Third and final v6.1 issue (with #47 / #3 and #48 / #5). Once all three merge, the v6.1 milestone is complete — and I'll carry on into v6.2.
🤖 Generated with Claude Code