Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | 16x 16x 2x 2x 16x 16x 16x 16x 16x 16x | <template>
<NuxtLink
:to="`/decisions/${report.id}`"
class="flex items-center gap-3 px-4 py-2.5 transition-colors hover:bg-elevated/50"
>
<span class="shrink-0 font-mono text-xs text-dimmed">{{ report.number }}</span>
<span class="flex-1 truncate text-sm">{{ report.title }}</span>
<StatusPill
v-if="superseded"
:label="superseded.label"
tone="bad"
:hint="superseded.hint"
/>
<StatusPill v-if="status" :label="status.label" :tone="status.tone" />
<span class="w-24 shrink-0 text-right text-xs text-dimmed">{{ updated }}</span>
</NuxtLink>
</template>
<script setup lang="ts">
import type { DecisionReport } from "#layers/decisions/shared/decisionReports.ts";
interface Props {
report: DecisionReport;
}
const { report } = defineProps<Props>();
const { t } = useI18n();
const superseded = computed(() =>
report.decision === "superseded"
? {
label: t("decisions.outcome.superseded"),
hint: t("decisions.supersededBy", { by: report.supersededBy }),
}
: null,
);
const status = computed(() =>
report.status
? { label: t(`decisions.status.${report.status}`), tone: decisionStatusTone(report.status) }
: null,
);
const updated = computed(() => relativeTime(report.updatedAt, t));
</script>
|