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{' '}

View File

@@ -53,7 +53,9 @@ export function QueueOverview({ queues }: QueueOverviewProps) {
onKeyDown={(e) => e.key === 'Enter' && handleQueueClick(queue.name)}
>
<CardHeader className="p-3 pb-0">
<CardTitle className="text-xs font-semibold capitalize truncate">{queue.name}</CardTitle>
<CardTitle className="text-xs font-semibold capitalize truncate">
{queue.name}
</CardTitle>
</CardHeader>
<CardContent className="p-3 pt-2">
<div className="grid grid-cols-2 gap-x-2 gap-y-1">

View File

@@ -90,29 +90,20 @@ export function TagList() {
{
accessorKey: 'createdAt',
header: 'Created',
cell: ({ row }) =>
new Date(row.original.createdAt).toLocaleDateString(),
cell: ({ row }) => new Date(row.original.createdAt).toLocaleDateString(),
},
{
id: 'actions',
header: '',
cell: ({ row }) => (
<div className="flex items-center justify-end gap-1">
<Button
variant="ghost"
size="sm"
onClick={() => handleEditTag(row.original)}
>
<Button variant="ghost" size="sm" onClick={() => handleEditTag(row.original)}>
<Pencil className="h-4 w-4" />
<span className="sr-only">Edit</span>
</Button>
<ConfirmationDialog
trigger={
<Button
variant="ghost"
size="sm"
className="text-destructive hover:text-destructive"
>
<Button variant="ghost" size="sm" className="text-destructive hover:text-destructive">
<Trash2 className="h-4 w-4" />
<span className="sr-only">Delete</span>
</Button>
@@ -158,12 +149,7 @@ export function TagList() {
}
/>
<TagForm
open={formOpen}
onOpenChange={setFormOpen}
tag={editingTag}
onSuccess={fetchTags}
/>
<TagForm open={formOpen} onOpenChange={setFormOpen} tag={editingTag} onSuccess={fetchTags} />
</div>
);
}

View File

@@ -93,10 +93,7 @@ export function WebhookEventSelector({ selected, onChange }: WebhookEventSelecto
checked={selected.includes(event)}
onCheckedChange={() => toggle(event)}
/>
<Label
htmlFor={`event-${event}`}
className="text-xs font-mono cursor-pointer"
>
<Label htmlFor={`event-${event}`} className="text-xs font-mono cursor-pointer">
{event}
</Label>
</div>

View File

@@ -28,11 +28,7 @@ export function WebhookSecretDisplay({ plaintext, masked }: WebhookSecretDisplay
<strong>Copy this secret now.</strong> It will not be shown again.
</div>
<div className="flex items-center gap-2">
<Input
readOnly
value={plaintext}
className="font-mono text-sm"
/>
<Input readOnly value={plaintext} className="font-mono text-sm" />
<Button type="button" variant="outline" size="sm" onClick={copySecret}>
{copied ? 'Copied!' : 'Copy'}
</Button>
@@ -43,12 +39,10 @@ export function WebhookSecretDisplay({ plaintext, masked }: WebhookSecretDisplay
return (
<div className="flex items-center gap-2">
<Input
readOnly
value={masked}
className="font-mono text-sm text-muted-foreground"
/>
<span className="text-xs text-muted-foreground">Use &quot;Regenerate&quot; to get a new secret</span>
<Input readOnly value={masked} className="font-mono text-sm text-muted-foreground" />
<span className="text-xs text-muted-foreground">
Use &quot;Regenerate&quot; to get a new secret
</span>
</div>
);
}