You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
UI state comes from a single server-enriched metadata field (`google.connectionState`) plus one client-only loading state:
@@ -346,6 +347,15 @@ Important constraint:
346
347
347
348
-`connectionState` values are uppercase string literals shared with backend/core (`NOT_CONNECTED`, `RECONNECT_REQUIRED`, `IMPORTING`, `HEALTHY`, `ATTENTION`); lowercase variants will not match UI state guards.
348
349
350
+
Connect-later guardrail:
351
+
352
+
- In the password-session "connect Google" flow, `useConnectGoogle` calls
353
+
`syncPendingLocalEvents(dispatch)` before `AuthApi.connectGoogle(...)`.
354
+
- If local sync fails, connect is aborted and a toast is shown:
355
+
`"We could not sync your local events. Your changes are still saved on this device."`
356
+
- This prevents IndexedDB-only Compass events from disappearing during the
357
+
Google-triggered metadata/import refresh.
358
+
349
359
## What To Read Before Editing
350
360
351
361
- Auth/session issue: read session provider, user provider, router loaders.
0 commit comments