update
This commit is contained in:
@@ -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}">
|
||||
|
||||
Reference in New Issue
Block a user