dashboard: render META INPUTS as a full tree with bulk select
Remove the depth-2 cap in walk_meta_inputs so every fetched input at every depth is surfaced, not just two levels (issue #275). The uncapped walk needs a guard: a visited-node set makes it a spanning tree — each fetched node walked once, at its shallowest path — so shared subtrees don't re-walk and a cycle can't recurse forever. A two-pass walk (claim a node's direct inputs before descending) keeps shallow inputs at a shallow path. Frontend: renderMetaInputs indents each row by its slash-path depth and shows the leaf segment (full path on hover), plus a select-all / select-none control so a long input list isn't ticked box by box.
This commit is contained in:
parent
dd3a820e57
commit
7f97acf19e
4 changed files with 102 additions and 32 deletions
|
|
@ -429,6 +429,31 @@ code {
|
|||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
/* Bulk select-all / -none control above the meta-inputs tree (#275). */
|
||||
.meta-inputs-bulk {
|
||||
margin: 0 0 0.5em;
|
||||
font-size: 0.8em;
|
||||
color: var(--muted);
|
||||
}
|
||||
.meta-bulk-btn {
|
||||
font: inherit;
|
||||
font-size: 1em;
|
||||
background: transparent;
|
||||
border: 1px solid var(--purple-dim);
|
||||
color: var(--cyan);
|
||||
padding: 0.1em 0.6em;
|
||||
margin-right: 0.2em;
|
||||
cursor: pointer;
|
||||
}
|
||||
.meta-bulk-btn:hover {
|
||||
border-color: var(--cyan);
|
||||
text-shadow: 0 0 6px currentColor;
|
||||
}
|
||||
/* Tree twig glyph prefixing a nested (sub-)input row (#275). */
|
||||
.meta-input-twig {
|
||||
color: var(--purple-dim);
|
||||
margin-right: 0.1em;
|
||||
}
|
||||
.btn-meta-update {
|
||||
background: rgba(203, 166, 247, 0.12);
|
||||
border: 1px solid var(--purple);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue