Add automatic project snapshots

This commit is contained in:
2026-07-25 23:27:51 +02:00
parent 59d442593f
commit 1a77eedaa8
23 changed files with 2232 additions and 26 deletions
@@ -24,6 +24,7 @@ import {
import {
getProjectRevisionDescription,
getProjectRevisionSourceLabel,
getProjectSnapshotKindLabel,
mergeProjectRevisionPages,
} from "../utils/project-version-history";
@@ -352,6 +353,15 @@ export function ProjectVersionHistory({
<tr key={snapshot.id}>
<td>
<strong>{snapshot.name}</strong>
<span
className={`badge ms-2 ${
snapshot.kind === "automatic"
? "text-bg-info"
: "text-bg-secondary"
}`}
>
{getProjectSnapshotKindLabel(snapshot.kind)}
</span>
{snapshot.description ? (
<div className="small text-secondary">
{snapshot.description}