Commit graph

6 commits

Author SHA1 Message Date
kev
dccfa20829 fix(graph): emit [] not null for empty links in HTML output (GH#3592)
Go nil slices marshal to JSON `null`, which breaks d3.forceLink() for
single-node components. Use make() to ensure empty arrays serialize as
`[]`.
2026-05-03 01:46:01 -04:00
Kevin Glynn
a028506ec6
fix(graph): merge components for bd graph --all --html (GH#3592) (#3648)
Merged after maintainer review for release prep. CI was green and PR was approved.
2026-05-02 14:02:24 -07:00
beads/crew/jane
9861144c64 fix: remove t.Parallel() from graph tests that race on os.Stdout
Tests using captureGraphOutput() redirect the global os.Stdout to a
pipe. When run in parallel, multiple goroutines race to modify this
global variable, causing output to go to the wrong pipe and assertions
to fail. Removing t.Parallel() ensures these tests serialize their
stdout capture.

Fixes: bd-9rqwe

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-14 14:29:12 -08:00
mayor
349a57e5fa chore: bump version to 0.50.0
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-14 14:08:19 -08:00
gastown/crew/mel
f55b562e84 fix(test): remove t.Parallel() from graph tests that capture os.Stdout
The 6 tests using captureGraphOutput race on the global os.Stdout
when run in parallel, causing one test to capture another's output.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Executed-By: gastown/crew/mel
Rig: gastown
Role: crew
2026-02-14 14:05:04 -08:00
Patrick Farrell
07eb8d1bbd feat: add DOT and interactive HTML export to bd graph (bd-9de)
Add two new output formats to the bd graph command:

--dot: Graphviz DOT format output. Enables SVG/PNG generation via
  graphviz pipeline (bd graph --dot <id> | dot -Tsvg > graph.svg).
  Nodes are color-coded by status, edges distinguish blocks (solid)
  from parent-child (dashed), and layers use subgraph clusters for
  proper rank alignment.

--html: Self-contained interactive HTML with D3.js force-directed
  graph. Drag nodes to rearrange, scroll to zoom, hover for details.
  Dark theme, status-colored nodes, legend, and tooltip with full
  issue metadata. Output to stdout for redirection to file.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Executed-By: beads/crew/emma
Rig: beads
Role: crew
2026-02-11 17:23:56 -08:00