Archilyzer · Source

archilyzer

Archilyzer
git clone https://archilyzer.pages.dev/source/archilyzer.git
Log | Files | Refs | README | LICENSE

commit 4b53d279fbad4d120b83870b5ce91b6d4339fb07
parent 0f59a5f0023b5bc4a1a4fcc6ee816b57dcfb23b3
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Thu,  5 Nov 2026 02:50:19 -0500

umtool: the Overview folds a kind of decision with more than eight rows after its first five (68 clips with no cues were 7,000 px of one sentence)

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

Diffstat:
Mumtool/components/projects/report/OverviewTab.tsx | 61+++++++++++++++++++++++++++++++++++++++----------------------
1 file changed, 39 insertions(+), 22 deletions(-)

diff --git a/umtool/components/projects/report/OverviewTab.tsx b/umtool/components/projects/report/OverviewTab.tsx @@ -179,28 +179,45 @@ export function ProjectDecisions({ project, decisions, token = null }: { project <h2 className="micro mb-1.5"> {decisions.filter((d) => d.severity !== "info").length} waiting of {decisions.length} </h2> - <ul className="space-y-1"> - {decisions.map((d, i) => ( - <li - key={`${d.kind}-${d.target}-${i}`} - data-decision={d.kind} - data-severity={d.severity} - data-target={d.target} - className="flex flex-wrap items-baseline gap-2 rounded border border-[var(--color-line)] bg-[var(--color-panel)] px-3 py-1.5" - > - <span className={badgeVariants({ variant: TONE[d.severity], size: "sm" })}> - {d.severity} - </span> - <span className="font-mono text-[12px] text-[var(--color-text)]">{d.target}</span> - <span className="text-[12px] text-[var(--color-dim)]">{d.why}</span> - {/* The one-press settle, when the row knows one; `fix` is its terminal twin. */} - {d.settle && <DecisionSettle project={project} settle={d.settle} token={token} />} - <span className="micro ml-auto" data-fix={d.fix ?? undefined} title={d.fix ? `from a terminal: ${d.fix}` : undefined}> - {d.kind} - </span> - </li> - ))} - </ul> + {/* A kind with many rows (68 clips with no cues): its first five, the rest folded (lane/ui-simplify). */} + {(() => { + const row = (d: Decision, i: number) => ( + <li + key={`${d.kind}-${d.target}-${i}`} + data-decision={d.kind} + data-severity={d.severity} + data-target={d.target} + className="flex flex-wrap items-baseline gap-2 rounded border border-[var(--color-line)] bg-[var(--color-panel)] px-3 py-1.5" + > + <span className={badgeVariants({ variant: TONE[d.severity], size: "sm" })}> + {d.severity} + </span> + <span className="font-mono text-[12px] text-[var(--color-text)]">{d.target}</span> + <span className="text-[12px] text-[var(--color-dim)]">{d.why}</span> + {/* The one-press settle, when the row knows one; `fix` is its terminal twin. */} + {d.settle && <DecisionSettle project={project} settle={d.settle} token={token} />} + <span className="micro ml-auto" data-fix={d.fix ?? undefined} title={d.fix ? `from a terminal: ${d.fix}` : undefined}> + {d.kind} + </span> + </li> + ); + const byKind = new Map<string, Decision[]>(); + for (const d of decisions) byKind.set(d.kind, [...(byKind.get(d.kind) ?? []), d]); + const folded = new Set<Decision>(); + for (const list of byKind.values()) if (list.length > 8) list.slice(5).forEach((d) => folded.add(d)); + return ( + <> + <ul className="space-y-1">{decisions.filter((d) => !folded.has(d)).map(row)}</ul> + {[...byKind.entries()] + .filter(([, list]) => list.length > 8) + .map(([kind, list]) => ( + <Options key={kind} id={`decisions-${kind}`} label={`${list.length - 5} more ${kind}`} className="mt-1" bodyClassName="block"> + <ul className="space-y-1">{list.slice(5).map(row)}</ul> + </Options> + ))} + </> + ); + })()} </section> )} {decisions.length === 0 && (