Skip to content

fix(ui): nested folder boxes close inside a selected job, and folder cards count waiting nodes - #1732

Queued
kvlonge wants to merge 1 commit into
mainfrom
fix/graph-folder-boxes
Queued

kvlonge wants to merge 1 commit into
mainfrom
fix/graph-folder-boxes

Conversation

@kvlonge

@kvlonge kvlonge commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

Why

On a group run's graph, a job opened in place showed its folder boxes, but only the job's own box could be closed: clicks on a nested folder box's header landed on the job's box. Folder cards of a live run also hid the nodes still waiting, so a folder of 48 nodes with one built read "1 ok".

Changes

  • The canvas raises cards above edges by node type, leaving open boxes (memberBox, folderBox, job) at the graph library's order. It used the library's parent class, which is fixed when a node mounts, so a job card that opened in place stayed raised above the folder boxes inside it.
  • A folder card counts a run's waiting nodes beside running, ok, stale, failed and skipped. When the counts don't fit on its line in words, each keeps its dot and number, measured again once the font loads; the card's title names them all.

No DuckShop case: this is graph drawing and card text, not a project shape, data value or lifecycle sequence.

Verification

  • New Playwright test: a selected job's nested folder box closes one level at a time, and a folder card reads 1 running, 1 ok, 158 waiting. It fails on main at both steps.
  • The graph Playwright specs (small-graph, layout, edges, group-run, discovered-job, plan-graph, lineage-boxes, compact, plan-renames): 127 passed.
  • svelte-check clean; lineage unit tests pass.

…cards count waiting nodes

The canvas raises cards above edges by node type instead of the graph
library's parent class, which is fixed when a node mounts, so a job card
opened in place no longer covers the folder boxes inside it. Folder cards
count a run's waiting nodes, falling back to dots and numbers when the
counts don't fit.
@kvlonge
kvlonge enabled auto-merge November 30, 2026 14:53
@kvlonge
kvlonge added this pull request to the merge queue Nov 30, 2026
Any commits made after this event will not be merged.

This branch has not been deployed

No deployments
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