Skip to content

M1.0: render loomster's component DAG in behold #56

Closed

Description

@lex00

Part of #54 · depends on the spike.

Essentials (full context in the epic): behold (~/checkouts/intentius/behold) shells the chant CLI (src/chant.ts) and renders whatever IR it returns with pinhole (src/render.ts); SPA in web/app.js + web/index.html. loomster (~/checkouts/intentius/loomster) has 6 components + downstream-stub in src/components/*.component.ts with a dependsOn DAG → 4 waves. Read the spike's docs/roadmap/m1-cli-notes.md first.

Goal

behold renders loomster's component DAG (6 components + downstream-stub, wave-grouped, dependsOn edges), deep-linkable to source — instead of the flat resource graph.

Scope

  • Add a "component graph" mode to the graph shell-out. Today src/chant.ts (graphFlags ~L36-46, graphIr ~L145-147) runs chant graph <src> --format ir; extend it to run the component-graph command the spike identified.
  • Wire it through the server route (src/server.ts /api/graph ~L204-224) and add a mode toggle in the SPA (web/app.js, alongside the existing detail/env pickers).
  • Ensure the wave structure renders as lanes/columns (pinhole/dagre; add a grouping hint if pinhole needs one).

Files

src/chant.ts, src/server.ts, web/app.js, src/render.ts.

Acceptance

  • Serving loomster, behold shows 7 component nodes in 4 waves with dependsOn edges (wave 1 = shared-foundation + loom-cognito; cross-check .gitlab/components.yml and each *.component.ts dependsOn).
  • Clicking a component deep-links to its .component.ts (via the existing data-node-id inspect wiring, web/app.js ~L188-201).
  • A toggle switches component view ↔ the existing resource view.

Non-goals

Live status (M1.1). CI facet (M1.2). Do not touch the overlay path.

Activity

  1. lex00 commented on Jul 19, 2026

    @lex00
    ContributorAuthor

    Delivered in PR #60 (M1 merged to main; e2e green).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions