feat(webui): compact quality gates card, drop the setup celebration, hover nav

Three dashboard refinements from operator feedback:

The setup panel's completed state was celebration prose -- a full card
saying setup was done, occupying a grid cell until dismissed. A
configured daemon is the absence of a problem: the state machine now
only distinguishes incomplete from omit, the checklist returns on its
own if setup regresses, and the dismissal machinery is deleted with it.

'Gate pulse' led with a donut whose entire payload was one number, and
the name was decoration too. The card is 'Quality gates' now: the pass
rate as the number itself beside its run count, per-workflow rows as
tight hairline rows instead of muted pills, and the parked line is gone
-- Throughput's Needs-you tile already speaks for parked tasks, from the
statuses themselves. base/Gauge.vue had no other consumer and is deleted.

Topbar nav groups open on hover and close on leave, with a short grace
period bridging the trigger-to-content gap; click and keyboard
activation keep working through the same controlled open state.

The live activity feed scrolls within its card (previous commit); the
health row's cards are now compact enough to match it.
This commit is contained in:
sam committed 2026-09-23 14:53:40 +10:00
1 parent ec7e306232
commit 4f90b97a86
9 files changed
+132 -168

No files matched your search

+42 -9
View File
@@ -1,4 +1,5 @@
<script setup lang="ts">
import { ref } from "vue";
import { ChevronDown } from "@lucide/vue";
import {
@@ -15,17 +16,49 @@ import NavTrigger from "./NavTrigger.vue";
const props = defineProps<{ label: string; items: NavEntry[]; activePath: string }>();
const holds = (path: string) => props.activePath === path;
/**
* Hover-open, click-toggling menu.
*
* Pointing at the group opens it; leaving it closes it after a short grace
* period, so the move from trigger to content cannot close what you are
* moving towards (the content carries its own enter/leave handlers, and the
* delay covers the gap between two teleported elements). The trigger keeps
* its click and keyboard semantics: reka still emits update:open on
* activation, this only controls how long the menu stays open.
*/
const open = ref(false);
let closeTimer: ReturnType<typeof setTimeout> | undefined;
function openMenu() {
clearTimeout(closeTimer);
open.value = true;
}
function closeMenuSoon() {
clearTimeout(closeTimer);
closeTimer = setTimeout(() => {
open.value = false;
}, 140);
}
</script>
<template>
<DropdownMenu>
<DropdownMenuTrigger as-child>
<NavTrigger :current="items.some((item) => holds(item.path))">
{{ label }}
<ChevronDown :size="14" class="opacity-60" />
</NavTrigger>
</DropdownMenuTrigger>
<DropdownMenuContent align="start" class="w-52">
<DropdownMenu :open="open" @update:open="open = $event">
<div class="flex" @pointerenter="openMenu" @pointerleave="closeMenuSoon">
<DropdownMenuTrigger as-child>
<NavTrigger :current="items.some((item) => holds(item.path))">
{{ props.label }}
<ChevronDown :size="14" class="opacity-60" />
</NavTrigger>
</DropdownMenuTrigger>
</div>
<DropdownMenuContent
align="start"
class="w-52"
@pointerenter="openMenu"
@pointerleave="closeMenuSoon"
>
<template v-for="item in items" :key="item.path">
<DropdownMenuSeparator v-if="item.dividerBefore" />
<DropdownMenuLabel v-if="item.dividerBefore">{{ item.dividerBefore }}</DropdownMenuLabel>
@@ -33,4 +66,4 @@ const holds = (path: string) => props.activePath === path;
</template>
</DropdownMenuContent>
</DropdownMenu>
</template>
</template>