refactor(ui): build settings, org, task, workflow and dashboard pages from the shared components

This commit is contained in:
sam committed 2026-10-24 12:34:29 +11:00
1 parent 5fdd968fca
commit 0a8465e687
77 files changed
+505 -744

No files matched your search

+4 -4
View File
@@ -117,7 +117,7 @@ const scopedLogs = computed(() => logs.value ? { ...logs.value, entries: (logs.v
<p class="text-xs text-fg-muted">Agent's own report · {{ describeTimelineEvent(report).title }}</p>
</div>
<div v-if="group.tools.length" class="space-y-1">
<h4 class="text-xs font-medium text-fg-muted">Tool calls · {{ group.tools.length }}</h4>
<h4 class="text-caption font-medium uppercase text-fg-muted">Tool calls · {{ group.tools.length }}</h4>
<ol class="divide-y divide-border rounded-md border border-border">
<li v-for="(tool, i) in expanded ? group.tools : group.tools.slice(0, 12)" :key="i" class="px-3 py-2">
<div class="flex justify-between gap-2 text-xs"><span class="font-mono">{{ tool.data?.tool }}</span><span :class="tool.data?.failed ? 'text-danger' : 'text-fg-muted'">{{ tool.data?.failed ? 'Failed' : 'Returned' }}</span></div>
@@ -130,18 +130,18 @@ const scopedLogs = computed(() => logs.value ? { ...logs.value, entries: (logs.v
<p v-else-if="group.agents.length" class="text-xs text-fg-muted">{{ group.agents.reduce((sum, agent) => sum + agent.tokens_used, 0).toLocaleString() }} tokens recorded</p>
</section>
<section v-if="suppressed.length" class="space-y-1">
<h3 class="text-xs font-medium text-fg-muted">Skipped in test run</h3>
<h3 class="text-caption font-medium uppercase text-fg-muted">Skipped in test run</h3>
<ul class="divide-y divide-border rounded-md border border-border">
<li v-for="(event, i) in suppressed" :key="i" class="px-3 py-2 text-xs break-words whitespace-pre-wrap">{{ event.detail }}</li>
</ul>
</section>
<section class="space-y-3">
<h3 class="text-xs font-medium text-fg-muted">Captured changes</h3>
<h3 class="text-caption font-medium uppercase text-fg-muted">Captured changes</h3>
<p v-if="changesError" role="alert" class="text-danger">{{ changesError }}</p>
<ChangeCapture v-for="(capture, i) in captures" :key="i" :capture="capture" :task="task" />
</section>
<section class="space-y-2">
<h3 class="text-xs font-medium text-fg-muted">Log</h3>
<h3 class="text-caption font-medium uppercase text-fg-muted">Log</h3>
<TaskLogs :state="scopedLogs" :attempt="attempt" :filterable="false" />
</section>
</div>