chore: prettier format pass on branch files

Auto-format all files modified during the documents-hub-split feature
branch that were not yet aligned with the project's Prettier config
(single quotes, semicolons, trailing commas).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-11 13:01:47 +02:00
parent eceb77a6c4
commit 0e8feb1073
77 changed files with 1174 additions and 1356 deletions

View File

@@ -50,7 +50,12 @@ export function TemplateVersionHistory({
}, [fetchVersions]);
async function handleRollback(version: number) {
if (!confirm(`Roll back to version ${version}? This will create a new version ${currentVersion + 1}.`)) return;
if (
!confirm(
`Roll back to version ${version}? This will create a new version ${currentVersion + 1}.`,
)
)
return;
setRollingBack(version);
setError(null);
@@ -70,9 +75,7 @@ export function TemplateVersionHistory({
if (loading) {
return (
<div className="py-4 text-center text-sm text-muted-foreground">
Loading version history
</div>
<div className="py-4 text-center text-sm text-muted-foreground">Loading version history</div>
);
}
@@ -81,8 +84,7 @@ export function TemplateVersionHistory({
<div className="flex flex-col items-center gap-2 rounded-md border border-dashed p-6 text-center">
<Clock className="h-6 w-6 text-muted-foreground" />
<p className="text-sm text-muted-foreground">
No previous versions found. Versions are saved whenever you update the
template content.
No previous versions found. Versions are saved whenever you update the template content.
</p>
</div>
);
@@ -91,28 +93,21 @@ export function TemplateVersionHistory({
return (
<div className="space-y-3">
{error && (
<p className="rounded bg-destructive/10 px-3 py-2 text-sm text-destructive">
{error}
</p>
<p className="rounded bg-destructive/10 px-3 py-2 text-sm text-destructive">{error}</p>
)}
<p className="text-sm text-muted-foreground">
Current version: <strong>v{currentVersion}</strong>. Click Restore to
roll back to a previous version (creates a new version).
Current version: <strong>v{currentVersion}</strong>. Click Restore to roll back to a
previous version (creates a new version).
</p>
<div className="divide-y rounded-md border">
{versions.map((v) => (
<div
key={v.auditLogId}
className="flex items-center justify-between px-4 py-3"
>
<div key={v.auditLogId} className="flex items-center justify-between px-4 py-3">
<div className="space-y-0.5">
<div className="flex items-center gap-2">
<Badge variant="outline">v{v.version}</Badge>
<span className="text-sm font-medium">
Version {v.version}
</span>
<span className="text-sm font-medium">Version {v.version}</span>
</div>
<p className="text-xs text-muted-foreground">
Saved{' '}