feat: multi-pet client group booking (closes #10) #31

Merged
ghost merged 2 commits from feat/multi-pet-group-booking into main 2026-03-17 21:36:04 +00:00
Showing only changes of commit 16a19eafc1 - Show all commits
+1 -3
View File
@@ -444,7 +444,7 @@ export function GroupBookingPage() {
useEffect(() => {
loadAll();
}, [clientFilter]); // eslint-disable-line react-hooks/exhaustive-deps
}, [clientFilter]); // re-fetch when client filter changes
async function cancelGroup(groupId: string) {
if (!confirm("Cancel all appointments in this group visit?")) return;
@@ -452,8 +452,6 @@ export function GroupBookingPage() {
if (res.ok) loadAll();
}
const clientMap = new Map(clients.map((c) => [c.id, c.name]));
if (loading && groups.length === 0) return <p style={{ padding: "1rem" }}>Loading</p>;
if (error) return <p style={{ padding: "1rem", color: "#dc2626" }}>Error: {error}</p>;