style(13-03): apply Prettier formatting across repo

Mechanical reformat — no logic changes. 398 files changed, 19125
insertions(+), 16457 deletions(-). Prettier 3.8.4 with .prettierrc
(singleQuote:true, semi:true, tabWidth:2, trailingComma:all,
printWidth:100). Isolated per D-13-08 for reviewability.
This commit is contained in:
Lucas Berger
2026-06-11 20:35:18 -04:00
parent 4bc0445173
commit 982438dc10
398 changed files with 19050 additions and 16382 deletions
+18 -18
View File
@@ -31,15 +31,15 @@
* isPending — whether delete mutation is in-flight
*/
import { useEffect, useRef } from 'react'
import { Trash2 } from 'lucide-react'
import type { List } from '../api/listsClient.js'
import { useEffect, useRef } from 'react';
import { Trash2 } from 'lucide-react';
import type { List } from '../api/listsClient.js';
interface ListDeleteDialogProps {
list: List | null
onClose: () => void
onConfirm: () => void
isPending?: boolean
list: List | null;
onClose: () => void;
onConfirm: () => void;
isPending?: boolean;
}
export function ListDeleteDialog({
@@ -48,28 +48,28 @@ export function ListDeleteDialog({
onConfirm,
isPending = false,
}: ListDeleteDialogProps) {
const dialogRef = useRef<HTMLDivElement>(null)
const dialogRef = useRef<HTMLDivElement>(null);
// Focus trap — focus the dialog when it opens
useEffect(() => {
if (list && dialogRef.current) {
dialogRef.current.focus()
dialogRef.current.focus();
}
}, [list])
}, [list]);
// Escape key listener — cancel without deleting (D-06: two-tap confirmation)
useEffect(() => {
if (!list) return
if (!list) return;
const onKeyDown = (e: KeyboardEvent) => {
if (e.key === 'Escape') {
onClose()
onClose();
}
}
document.addEventListener('keydown', onKeyDown)
return () => document.removeEventListener('keydown', onKeyDown)
}, [list, onClose])
};
document.addEventListener('keydown', onKeyDown);
return () => document.removeEventListener('keydown', onKeyDown);
}, [list, onClose]);
if (!list) return null
if (!list) return null;
return (
<>
@@ -192,5 +192,5 @@ export function ListDeleteDialog({
</div>
</div>
</>
)
);
}