Files
archie/ui/src/tasks/TimelineEvent.vue
T
sam 6adbdc55a9 feat(eda): sources own signing, with UUIDv7 paths and approved unsigned option
A source is the capture endpoint: a UUIDv7 path by default or a unique
URL-safe custom path, signed by default with an Archie-generated secret
(encrypted via the bindings cipher), or unsigned after an approval.
Intake verifies X-Hub-Signature-256/X-Signature-256 against the source
secret before redaction; an unauthenticated event on a signed source is
captured but never dispatched, an event on an approved unsigned source
dispatches and is marked unsigned. The binding secret is retired; migration
0006 derives sources from existing binding and capture source strings,
moving each binding's secret onto its source. SourceStore crosses the
State Store gRPC contract. The dashboard gains a sources panel and flags
unsigned in the capture inspector, binding list and task timeline.
2026-09-24 14:26:21 +10:00

36 lines
1.1 KiB
Vue

<script setup lang="ts">
import { computed } from "vue";
import { ago } from "@/lib/format";
import { describeTimelineEvent } from "./timeline-event";
import type { TaskEvent } from "./task-run";
/**
* One entry in a task's event timeline: what happened, any detail the event
* carries, and when.
*
* It renders an `<li>`, so its host supplies the list. The words come from
* describeTimelineEvent, which the stage rail's agent reports read too, so a
* timeline and a rail can never describe the same event differently.
*/
const props = defineProps<{ event: TaskEvent }>();
const line = computed(() => describeTimelineEvent(props.event));
</script>
<template>
<li class="flex items-start gap-3">
<span
class="mt-[5px] size-2 shrink-0 rounded-full"
:class="line.tone === 'warn' ? 'bg-warn' : 'bg-primary'"
aria-hidden="true"
/>
<div>
<div class="text-sm font-medium">{{ line.title }}</div>
<div v-if="line.detail" class="mt-0.5 text-xs text-fg-muted">{{ line.detail }}</div>
<div class="mt-0.5 text-xs text-fg-subtle">{{ ago(event.at) }}</div>
</div>
</li>
</template>