Skip to content

refactor: Extract diagram library to sini/den-diagram - #564

Merged
sini merged 16 commits into
denful:mainfrom
sini:feat/den-diagram-extraction
Jun 5, 2026
Merged

sini merged 16 commits into
denful:mainfrom
sini:feat/den-diagram-extraction

Conversation

@sini

@sini sini commented May 21, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Extract den's diagram library (nix/lib/diag/) into standalone repo denful/den-diagram
  • Den keeps only capture.nix (fx pipeline tracing); all graph IR, renderers, filters, fleet views, and export helpers move to den-diagram
  • den-diagram depends only on nixpkgs.lib — no circular dependency
  • Templates (diagram-demo, fleet-demo) use two-step pattern: capture in den, render in den-diagram
  • Den CI has zero den-diagram dependency — capture tests stay, context/graph tests moved to den-diagram's own test suite (13 tests)

Changes

Area What changed
nix/lib/diag/ Reduced to capture.nix only (30 files removed)
nix/lib/default.nix diag → capture
templates/diagram-demo Uses inputs.den-diagram.lib for rendering
templates/fleet-demo Uses inputs.den-diagram.lib for rendering
templates/ci Capture tests updated, context tests moved to den-diagram
ci.bash No den-diagram override needed
CLAUDE.md Documents new two-step capture+render pattern

Test plan

  • 828/828 den CI tests passing
  • 13/13 den-diagram tests passing (context, graph, fleet, namespace)
  • diagram-demo packages evaluate
  • fleet-demo packages evaluate
  • No den.lib.diag references remain in den
  • Den CI has zero den-diagram dependency

@sini
sini requested a review from vic as a code owner May 21, 2026 17:21
@github-actions github-actions Bot added the allow-ci allow all CI integration tests label May 21, 2026
@sini sini changed the title Extract diagram library to sini/den-diagram refactor: Extract diagram library to sini/den-diagram May 21, 2026
@sini
sini force-pushed the feat/den-diagram-extraction branch from 275e5dc to f877c38 Compare May 21, 2026 18:54

@drupol drupol left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sense!

@sini
sini force-pushed the feat/den-diagram-extraction branch 2 times, most recently from 9cd92f1 to 1062ea5 Compare May 31, 2026 21:47
@sini
sini enabled auto-merge (squash) May 31, 2026 21:48
@sini
sini disabled auto-merge May 31, 2026 21:50
@sini
sini force-pushed the feat/den-diagram-extraction branch from 1062ea5 to 0ae9277 Compare June 5, 2026 19:25
@sini
sini merged commit 6a309fa into denful:main Jun 5, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

allow-ci allow all CI integration tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants