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 | 11x 11x 12x 12x 11x 12x | <template>
<StatusPill
v-if="supersession"
:label="supersession.label"
tone="bad"
:to="supersession.to"
:hint="supersession.hint"
/>
<StatusPill v-if="status" :label="status.label" :tone="status.tone" />
<DocSource :source :words="report?.words" :updated-at="report?.updatedAt" />
</template>
<script setup lang="ts">
import type { DecisionReport } from "#layers/decisions/shared/decisionReports.ts";
interface Props {
report: DecisionReport | null;
/** The repo path of the report's markdown file. */
source: string;
}
const { report, source } = defineProps<Props>();
const { t } = useI18n();
const supersession = computed(() => {
const by = report?.decision === "superseded" ? report.supersededBy : null;
return by
? {
label: t("decisions.outcome.superseded"),
to: `/decisions/${by.replace(/\.md$/, "")}`,
hint: t("decisions.supersededBy", { by }),
}
: null;
});
const status = computed(() =>
report?.status
? { label: t(`decisions.status.${report.status}`), tone: decisionStatusTone(report.status) }
: null,
);
</script>
|