Skip to content

feat(web): F13 — Copy as markdown button (tactical) + EVID-015 activate F12#38

Merged
explosivebit merged 2 commits into
developfrom
feature/markdown-export-f13
May 6, 2026
Merged

feat(web): F13 — Copy as markdown button (tactical) + EVID-015 activate F12#38
explosivebit merged 2 commits into
developfrom
feature/markdown-export-f13

Conversation

@explosivebit
Copy link
Copy Markdown
Contributor

Summary

Two riding-along payloads:

F13 (tactical, no PRD/RFC) — Copy as markdown

ArtifactPanel adds a 📋 Copy as markdown button. Click writes a copy-paste-ready markdown summary to the clipboard for PR descriptions / Slack threads:

# {id} — {title}
**Status**: ... · **Kind**: ... · **R_eff**: ...
## Outgoing
- {to} ({relation})
## Incoming
- {from} ({relation})
## Body excerpt
{first 500 chars + ...}

Empty Outgoing/Incoming/Body sections omitted. Visual feedback: ✓ Copied (green) on success, ✗ Copy failed (red) on error; auto-revert after 2 s.

Pure helper buildMarkdownSummary in widgets/artifact-panel/lib/markdown-export.ts. 6 vitest unit tests.

EVID-015 + activations

  • EVID-015 (Tactical, supports / CL3 / test) closes F12 acceptance.
  • PRD-007 + RFC-006 transition draft → active.

Verify

  • npx svelte-check — 0/0/436.
  • npm test — 68/68 (62 baseline + 6 new).

Test plan

  • CI smoke matrix (3-OS × Node 22) green.
  • svelte-check clean on PR.
  • vitest 68/68.
  • Manual: open ArtifactPanel for any PRD, click "📋 Copy as markdown", paste into editor — markdown matches format.

Refs: PRD-007 RFC-006 EVID-015

🤖 Generated with Claude Code

EVID-015 (Tactical, supports / CL3 / test) — F12 acceptance:
PR #37 merged to develop, 9 new vitest tests (53 → 62), 3-OS
smoke matrix green.

SC-1..SC-9 all pass:
- toggle UI + permission flow + 3 breach categories detected
- localStorage persistence + UI state reflection
- click → focus via notifyBus singleton
- svelte-check 0/0; CI matrix 3-OS green

Status transitions:
- PRD-007: draft → active
- RFC-006: draft → active

These artifacts ride along with F13 (markdown export, tactical) for
a single PR. F12 code already shipped in PR #37; this commit only
updates artifact metadata.

Refs: PRD-007 RFC-006 EVID-015
ArtifactPanel adds a "📋 Copy as markdown" button next to the impact
actions. Click writes a copy-paste-ready markdown summary to the
clipboard:

  # {id} — {title}
  **Status**: {status} · **Kind**: {kind} · **R_eff**: {r_eff|n/a}
  ## Outgoing
  - {to} ({relation})
  ## Incoming
  - {from} ({relation})
  ## Body excerpt
  {first 500 chars + ...}

Outgoing / Incoming sections omitted when empty; Body section omitted
when artifact.body is empty. Closes the loop "PR review needs PRD
context" — paste straight into GitHub PR descriptions / Slack threads.

Visual feedback: ✓ Copied (green) on success, ✗ Copy failed (red) on
error. Both auto-revert after 2s. setTimeout cancelled on rapid clicks.

Pure function `buildMarkdownSummary` in widgets/artifact-panel/lib/
markdown-export.ts. 6 vitest unit tests (basic format, empty
outgoing/incoming, list rendering, R_eff n/a fallback, body
truncation past 500 chars, empty body omission).

Tactical — no PRD/RFC artifact required.

Verify:
- svelte-check 0/0/436.
- npm test 68/68 (62 baseline + 6 new).

Refs: tactical
@explosivebit explosivebit merged commit 4c6e0e2 into develop May 6, 2026
3 checks passed
@explosivebit explosivebit deleted the feature/markdown-export-f13 branch May 6, 2026 04:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant