Skip to content

feat: fleet-demo user registry, diagram rendering, and theme fixes - #526

Merged
sini merged 4 commits into
denful:mainfrom
sini:feat/fleet-user-enhancement
May 13, 2026
Merged

sini merged 4 commits into
denful:mainfrom
sini:feat/fleet-user-enhancement

Conversation

@sini

@sini sini commented May 13, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Fleet demo: wire ssh-keys battery, user registry, composite mermaid galleries, deep README covering policies/pipes/entities/groups
  • Diagram theme fix: fleet-views.nix referenced theme.accent0..7 (named attrs that don't exist) instead of indexing theme.accentPool — all accent colors fell through to hard-coded Catppuccin values regardless of chosen scheme
  • Light theme contrast: auto-detect light vs dark palettes, select base07 (dark) or base00 (dark) for text on accent fills
  • Consistent coloring: hosts are green across all fleet views (pipe-flow, scope-topology, policy-resolution); namespace colors by structural role (host vs shared) using colorKey; transparent pipe-flow subgraphs; coprime-stepped pipe edge colors

Test plan

  • 778/778 CI tests passing
  • Regenerated fleet-demo diagrams with correct palette colors
  • Verified github-light default theme produces dark text on accent fills
  • Verified namespace diagram: uniform color per structural role
  • Verified pipe-flow: entity-kind host coloring, transparent env subgraphs

@sini sini added the allow-ci allow all CI integration tests label May 13, 2026
@sini sini changed the title feat(fleet-demo): user registry, diagram rendering, and theme fixes feat: fleet-demo user registry, diagram rendering, and theme fixes May 13, 2026
@sini
sini force-pushed the feat/fleet-user-enhancement branch 2 times, most recently from 1baff9a to 1268ca2 Compare May 13, 2026 03:15
@sini
sini requested review from drupol, theutz and vic May 13, 2026 03:16
@sini
sini force-pushed the feat/fleet-user-enhancement branch from 1268ca2 to 23b9f7f Compare May 13, 2026 03:19
@sini
sini enabled auto-merge (squash) May 13, 2026 03:25
Fleet demo enhancements:
- Wire ssh-keys battery, remove inline deploy users
- Fleet-only composite mermaid galleries with descriptions
- Deep README covering policies, pipes, entities, and groups
- Simplified diagrams.nix with github-light theme
- Filter wsl-host-aspect from namespace (not used in this template)
- Filter excludes from pipe summary (framework-internal, not a user pipe)
- Fix README URL to vic/den

Diagram rendering fixes:
- Use theme.accentPool instead of hard-coded Catppuccin colors in
  fleet-views.nix — all accent0..7 references fell through to
  hard-coded values because the theme record has accentPool (list),
  not named accent attributes
- Auto-detect light vs dark palettes for contrast text on accent
  fills (base07 for light themes, base00 for dark)
- Consistent entity-kind coloring across all fleet views — hosts
  are green in pipe-flow, scope-topology, and policy-resolution
- Namespace diagram colors by structural role (host vs shared)
  using colorKey to bypass per-name hash perturbation
- Transparent environment subgraphs in pipe-flow diagram
- Pipe colors spread via coprime stepping for visual distinction
- Assert non-empty accentPool in accent helper

Build config:
- Exclude generated diagram outputs from treefmt formatting rules
@sini
sini force-pushed the feat/fleet-user-enhancement branch from 23b9f7f to a0b006d Compare May 13, 2026 03:31

@theutz theutz 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.

❤️❤️💙💙❤️💙❤️💙💙💙❤️❤️❤️💙❤️❤️❤️❤️💙💙❤️❤️❤️TM

@sini
sini merged commit 31dd0ce into denful:main May 13, 2026
15 checks passed
charlesfire pushed a commit to charlesfire/den that referenced this pull request May 16, 2026
…enful#526)

## Summary

- **Fleet demo**: wire ssh-keys battery, user registry, composite
mermaid galleries, deep README covering policies/pipes/entities/groups
- **Diagram theme fix**: fleet-views.nix referenced `theme.accent0..7`
(named attrs that don't exist) instead of indexing `theme.accentPool` —
all accent colors fell through to hard-coded Catppuccin values
regardless of chosen scheme
- **Light theme contrast**: auto-detect light vs dark palettes, select
`base07` (dark) or `base00` (dark) for text on accent fills
- **Consistent coloring**: hosts are green across all fleet views
(pipe-flow, scope-topology, policy-resolution); namespace colors by
structural role (host vs shared) using `colorKey`; transparent pipe-flow
subgraphs; coprime-stepped pipe edge colors

## Test plan

- [x] 778/778 CI tests passing
- [x] Regenerated fleet-demo diagrams with correct palette colors
- [x] Verified github-light default theme produces dark text on accent
fills
- [x] Verified namespace diagram: uniform color per structural role
- [x] Verified pipe-flow: entity-kind host coloring, transparent env
subgraphs
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