fix(ui): e2e checks match the current dashboard; trim stray label whitespace, keep Home/End in suggest input

This commit is contained in:
sam committed 2026-10-26 20:59:48 +11:00
1 parent acf9ce2cd5
commit 4fab3d766a
11 files changed
+51 -48

No files matched your search

@@ -14,6 +14,14 @@ const shown = computed(() => {
return props.options.filter((o) => o.toLowerCase().includes(needle)).slice(0, 50);
});
// The listbox claims Home and End for its items; in a text field they move the caret.
function caret(event: KeyboardEvent, end: boolean) {
const input = event.target as HTMLInputElement;
const at = end ? input.value.length : 0;
input.setSelectionRange(at, at);
input.scrollLeft = end ? input.scrollWidth : 0;
}
function type(value: string) {
typed.value = true;
model.value = value;
@@ -24,7 +32,7 @@ function type(value: string) {
<ComboboxRoot v-model="model" ignore-filter open-on-focus :display-value="(v: string) => v" @update:open="typed = false">
<ComboboxAnchor as-child>
<ComboboxInput as-child :model-value="model" @update:model-value="type">
<input v-bind="$attrs" data-slot="input" autocomplete="off" :class="cn(inputClass, props.class)" />
<input v-bind="$attrs" data-slot="input" autocomplete="off" @keydown.home="caret($event, false)" @keydown.end="caret($event, true)" :class="cn(inputClass, props.class)" />
</ComboboxInput>
</ComboboxAnchor>
<ComboboxPortal>
+1 -3
View File
@@ -87,9 +87,7 @@ async function run() {
</SelectGroup>
</SelectContent>
</Select>
<Button type="submit" :disabled="!prompt.trim() || !workflow || submitting">
<Spinner v-if="submitting" data-icon="inline-start" />Run
</Button>
<Button type="submit" :disabled="!prompt.trim() || !workflow || submitting"><Spinner v-if="submitting" data-icon="inline-start" />Run</Button>
</div>
<Alert v-if="loadError || error" variant="destructive"><AlertDescription>{{ loadError || error }}</AlertDescription></Alert>
<p v-else-if="!definitions.length" class="text-xs text-fg-subtle">
+1 -7
View File
@@ -160,13 +160,7 @@ onMounted(load);
</TableBody>
</Table>
<Button class="mt-4 self-start" :disabled="installing" @click="install">
{{
installing
? "Installing…"
: `Install ${updateable.map((c) => c.label || c.id).join(", ")}`
}}
</Button>
<Button class="mt-4 self-start" :disabled="installing" @click="install">{{ installing ? "Installing…" : `Install ${updateable.map((c) => c.label || c.id).join(", ")}`.trim() }}</Button>
<div
v-if="installProgress.length"
-3
View File
@@ -82,9 +82,6 @@ async function jumpToLog(): Promise<void> {
run.setTab("log");
await nextTick();
await router.replace({ query: runQuery("log", selected), hash: `#log-line-${entry.id}` });
const line = document.querySelector<HTMLElement>(`[data-log-id="${entry.id}"]`);
line?.scrollIntoView({ block: "center" });
line?.focus({ preventScroll: true });
} catch {
if (selected === run.attemptNumber) jumpError.value = "Could not read this attempt’s error log.";
} finally {