fix(ui): workflow names in the sans face
This commit is contained in:
1 parent
fbe0742ef6
commit
f2a1aedbc2
4 files changed
+5
-5
No files matched your search
@@ -78,7 +78,7 @@ async function run() {
|
||||
<form class="grid gap-1.5" @submit.prevent="run">
|
||||
<div class="flex gap-2 max-sm:flex-wrap">
|
||||
<Input v-model="prompt" class="min-w-0 flex-1" placeholder="Describe a task" aria-label="Task" />
|
||||
<NativeSelect v-model="workflow" aria-label="Workflow" class="font-mono text-[13px]" :disabled="!definitions.length">
|
||||
<NativeSelect v-model="workflow" aria-label="Workflow" class="text-[13px]" :disabled="!definitions.length">
|
||||
<NativeSelectOption v-for="d in definitions" :key="d.id" :value="d.id">{{ d.name || d.id }}</NativeSelectOption>
|
||||
</NativeSelect>
|
||||
<Button type="submit" :disabled="!prompt.trim() || !workflow || submitting">
|
||||
|
||||
@@ -130,7 +130,7 @@ async function submit() {
|
||||
:value="d.id"
|
||||
class="rounded-md border border-border bg-card px-3 py-2.5 text-left transition-colors hover:bg-secondary focus-visible:outline-2 focus-visible:outline-ring data-[state=checked]:border-primary data-[state=checked]:bg-secondary"
|
||||
>
|
||||
<span class="block truncate font-mono text-[13px] font-medium">{{ d.name || d.id }}</span>
|
||||
<span class="block truncate text-[13px] font-medium">{{ d.name || d.id }}</span>
|
||||
<span class="block text-xs text-fg-subtle">
|
||||
{{ statFor(d.id)?.runs || 0 }} runs<template v-if="statFor(d.id)?.runs">
|
||||
· {{ Math.round((delivered(statFor(d.id)) / (statFor(d.id)?.runs || 1)) * 100) }}% delivered</template
|
||||
|
||||
@@ -56,7 +56,7 @@ const heading = "mb-2 text-[11px] font-medium tracking-[0.06em] text-fg-subtle u
|
||||
<h2 id="rail-details" :class="heading">Details</h2>
|
||||
<dl class="grid grid-cols-[6.5rem_1fr] gap-x-3 gap-y-2 text-sm">
|
||||
<dt class="text-fg-subtle">Workflow</dt>
|
||||
<dd class="truncate font-mono text-xs leading-5">{{ run.task.workflow || "none" }}</dd>
|
||||
<dd class="truncate text-xs leading-5">{{ run.task.workflow || "none" }}</dd>
|
||||
<template v-if="run.task.repo">
|
||||
<dt class="text-fg-subtle">Repository</dt>
|
||||
<dd class="truncate font-mono text-xs leading-5">
|
||||
|
||||
@@ -185,7 +185,7 @@ const rate = (deliveredRuns = 0, total = 0) => (total ? deliveredRuns / total :
|
||||
@click="selected = row.id"
|
||||
>
|
||||
<span class="flex items-baseline gap-2">
|
||||
<span class="min-w-0 flex-1 truncate font-mono text-[13px]" :class="row.id === selected && 'font-medium'">{{ row.id }}</span>
|
||||
<span class="min-w-0 flex-1 truncate text-[13px]" :class="row.id === selected && 'font-medium'">{{ row.id }}</span>
|
||||
<Badge v-if="store.drafts.some((draft) => draft.id === row.id)" variant="outline">Draft</Badge>
|
||||
<span v-if="row.avg_tokens" class="font-mono text-xs text-fg-subtle">{{ compact(row.avg_tokens) }}</span>
|
||||
</span>
|
||||
@@ -216,7 +216,7 @@ const rate = (deliveredRuns = 0, total = 0) => (total ? deliveredRuns / total :
|
||||
<header class="mb-2 flex items-center gap-2">
|
||||
<!-- Below lg the list is gone: this picks the workflow instead. -->
|
||||
<div class="min-w-0 flex-1 lg:hidden"><WorkflowPicker class="w-full" :value="selected" :workflows="rows" label="Workflow" @pick="selected = $event" /></div>
|
||||
<h2 class="min-w-0 truncate font-mono text-[15px] font-medium max-lg:hidden">{{ selected }}</h2>
|
||||
<h2 class="min-w-0 truncate text-[15px] font-medium max-lg:hidden">{{ selected }}</h2>
|
||||
<Badge v-if="provenance" variant="outline" class="shrink-0">{{ provenance }}</Badge>
|
||||
<Badge v-if="drafted" variant="outline" class="shrink-0 lg:hidden">Draft</Badge>
|
||||
<div class="ml-auto flex shrink-0 items-center gap-3">
|
||||
|
||||
Reference in new issue
Block a user