This commit is contained in:
Kelorastus
2026-09-29 10:29:52 +02:00
parent 73a8f2c30c
commit 80dd1e7c7d
22 changed files with 1739 additions and 44 deletions
+7 -1
View File
@@ -21,6 +21,12 @@
failed: "danger",
};
// Dev runs add the web client, and a web-only run has no ODIAN row to show at all.
const shown = $derived.by(() => {
const rows = STACK_ORDER.filter((c) => c !== "odian" || stack.odian || !stack.web);
return stack.web ? [...rows, "web" as StackComponent] : rows;
});
function shownState(component: StackComponent): Shown {
const event = stack[component];
if (event) return event.state;
@@ -30,7 +36,7 @@
</script>
<ol class="stack" aria-label="Local stack">
{#each STACK_ORDER as component, index (component)}
{#each shown as component, index (component)}
{@const state = shownState(component)}
{@const message = stack[component]?.message}
<li class="row {state}">