docs(sync): align google connect flow documentation#1584
Merged
tyler-dane merged 1 commit intomainfrom Mar 30, 2026
Merged
Conversation
Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
tyler-dane
added a commit
to Muhammad-Nur-Alamsyah-Anwar/compass
that referenced
this pull request
Mar 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
POST /api/auth/google/connectFiles updated
docs/features/google-sync-and-websocket-flow.mddocs/frontend/frontend-runtime-flow.mddocs/development/feature-file-map.mddocs/development/troubleshoot.mdCodepaths covered
useConnectGoogle,syncPendingLocalEvents,useGoogleAuth*,useGoogleLoginconnectGoogleToCurrentUser,restartGoogleCalendarSync/ import websocket lifecycleNotes
Note
Low Risk
Docs-only updates that don’t affect runtime behavior; risk is limited to potential developer/operator confusion if any described flow details are inaccurate.
Overview
Updates Google auth/sync documentation to match the post-refactor web hook paths (moves references from
auth/hooks/oauth/*toauth/hooks/google/*) across the feature file map and frontend/runtime flow docs.Documents the connect-Google-later guardrail:
useConnectGooglenow syncs pending local IndexedDB events viasyncPendingLocalEvents(dispatch)before callingPOST /api/auth/google/connect, and aborts with a specific toast on failure to avoid local-only events disappearing.Adds troubleshooting guidance for the new “local events sync error” abort path, clarifying expected backend side effects (no
connectGoogleToCurrentUsercall and no import restart).Written by Cursor Bugbot for commit dd58bae. This will update automatically on new commits. Configure here.