refactor: format markdown files using prettier, fix spelling concerns, reduce Taskfile bloat

This commit is contained in:
sam committed 2026-09-25 01:10:28 +10:00
1 parent 2051ca94d2
commit 2e00777f07
608 files changed
+63317 -10219

No files matched your search

+23 -6
View File
@@ -1,7 +1,14 @@
<script setup lang="ts">
import { computed } from "vue";
import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "@/components/ui/table";
import {
Table,
TableBody,
TableCell,
TableHead,
TableHeader,
TableRow,
} from "@/components/ui/table";
import { fileStatusLabel } from "./changed-files";
import type { Capture } from "./task-run";
@@ -13,12 +20,17 @@ import type { Capture } from "./task-run";
const props = defineProps<{ capture: Capture }>();
const files = computed(() => props.capture.files || []);
const total = computed(() => Number(props.capture.totals?.files) || files.value.length);
const total = computed(
() => Number(props.capture.totals?.files) || files.value.length,
);
</script>
<template>
<p v-if="!files.length" class="py-3 text-xs text-fg-muted">
This capture recorded no file entries{{ total ? `, though its totals cover ${total} file${total === 1 ? "" : "s"}` : ""
This capture recorded no file entries{{
total
? `, though its totals cover ${total} file${total === 1 ? "" : "s"}`
: ""
}}.
</p>
<template v-else>
@@ -34,13 +46,17 @@ const total = computed(() => Number(props.capture.totals?.files) || files.value.
<TableBody>
<TableRow v-for="(file, i) in files" :key="`${file.path}:${i}`">
<TableCell class="font-mono break-all whitespace-normal">
<span v-if="file.old_path" class="text-fg-muted">{{ file.old_path }} → </span>{{ file.path }}
<span v-if="file.old_path" class="text-fg-muted"
>{{ file.old_path }} → </span
>{{ file.path }}
</TableCell>
<TableCell>
{{ fileStatusLabel(file.status) }}
<!-- binary means "no textual hunks were recorded", not "this is a
binary file on disk": the counts beside it are still real. -->
<span v-if="file.binary" class="block text-xs text-fg-muted">no textual hunks</span>
<span v-if="file.binary" class="block text-xs text-fg-muted"
>no textual hunks</span
>
</TableCell>
<TableCell class="text-right font-mono whitespace-nowrap">
{{ file.additions ? `+${file.additions}` : "—" }}
@@ -52,7 +68,8 @@ const total = computed(() => Number(props.capture.totals?.files) || files.value.
</TableBody>
</Table>
<p v-if="capture.truncated" class="mt-2 text-xs text-fg-muted">
Showing the first {{ files.length }} of {{ total }} files. The totals above cover every file in this capture.
Showing the first {{ files.length }} of {{ total }} files. The totals
above cover every file in this capture.
</p>
</template>
</template>