generated from coulomb/repo-seed
Per-evidence-item export: click Export → Copy as Markdown / Copy as HTML writes a portable citation card to the clipboard. Cmd/Ctrl+Shift+C exports the active evidence as Markdown. - ADR-0007 locks the Markdown + HTML output formats. - New shared types: CitationCard, openContextUrl(), resolveSourceLabel(). - Engine renderers under src/engine/rendering/: renderCitationCardMarkdown, renderCitationCardHtml — snapshot-tested, escape-safe, BEM classes for HTML. - src/work/useExportEvidence.ts wires engine + renderers + clipboard. - EvidenceSidebar gains an Export popover per row + auto-dismissing toast. - E2E test (tests/integration/citation-card-export-e2e.dom.test.tsx) walks PRD scenario steps 10-11 and asserts the clipboard payload. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
MVP Workplans
These four workplans implement the first reference scenario from
wiki/ProductRequirementsDocument.md §20 — end-to-end PDF evidence
capture → form binding → citation card export — entirely inside the
citation-evidence repository.
| Workplan | Title | Status |
|---|---|---|
CE-WP-0001 |
Foundations — scaffold, folders, lint rules, normalize, fixtures | todo |
CE-WP-0002 |
PDF review slice — engine types, anchor, source, viewer, sidebar | todo |
CE-WP-0003 |
Form binding + visual guide — EvidenceLink, rect registry, overlay | todo |
CE-WP-0004 |
Citation card export — Markdown + HTML renderers, sidebar export | todo |
Order
Strictly sequential. CE-WP-0002 depends on the folder/lint scaffolding from
CE-WP-0001. CE-WP-0003 and CE-WP-0004 depend on the engine types,
viewer adapter, and sidebar from CE-WP-0002.
How to run a workplan
/ralph-workplan workplans/CE-WP-0001-foundations.md
Ralph drives the loop and retires automatically when all tasks in the
workplan are marked done. See ~/.claude/plugins/ralph-workplan/ralph-workplan.md.
Acceptance for MVP
The first reference scenario from PRD §20 runs end-to-end:
- Create a collection
- Upload a PDF
- Select a passage, add commentary, create an evidence item
- Open a side-by-side form
- Link the evidence item to a form field
- Focus the field → field, evidence card, and PDF passage all highlighted
- SVG guide visible between field → card → highlight
- Export evidence as a Markdown citation card