Milestone v1.0: FamilySync MVP #1

Merged
luckberg merged 376 commits from gsd/v1.0-milestone into main 2026-06-10 17:39:19 -04:00
Showing only changes of commit 814d29dbdd - Show all commits
@@ -155,6 +155,14 @@ export function usePushSubscription(): UsePushSubscriptionReturn {
const existingSub = await registration.pushManager.getSubscription()
if (existingSub) {
// Re-confirm server-side record (handles 410-prune recovery — D-10).
// The upsert on endpoint is idempotent; this is a no-op if the record exists.
await fetch('/api/push/subscription', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
credentials: 'include',
body: JSON.stringify(existingSub.toJSON()),
}).catch(() => {}) // non-blocking — ignore network failures
setIsSubscribed(true)
return
}