feat: add Firebase email auth and Firestore cross-device sync#31
Open
wangsc2024 wants to merge 1 commit intomaciekt07:mainfrom
Open
feat: add Firebase email auth and Firestore cross-device sync#31wangsc2024 wants to merge 1 commit intomaciekt07:mainfrom
wangsc2024 wants to merge 1 commit intomaciekt07:mainfrom
Conversation
Add Firebase Authentication (email/password) with sign up, sign in, and password reset flows. Integrate Firestore for real-time data sync across devices while preserving localStorage guest mode. New files: - Firebase init with offline persistence (services/firebase.ts) - Firestore CRUD service with real-time listeners (services/firestoreService.ts) - AuthContext/AuthProvider for global auth state - useAuth hook for auth operations with zh-TW error messages - useFirestoreSync hook with merge logic and debounced writes - Auth page with tabbed sign-in/sign-up UI (繁體中文) - ForgotPasswordDialog component Modified: - main.tsx: wrap app with AuthProvider - router.tsx: add /auth route - UserProvider: integrate Firestore sync when authenticated - Sidebar: add sign-in menu item / cloud sync indicator - LogoutDialog: Firebase sign-out + conditional messaging - UserProfile: show auth status and email - syncUtils: export mergeTasks/mergeCategories for reuse - vite.config: separate firebase chunk https://claude.ai/code/session_01Thm5M1BQmTCGSZnyXfKJN9
✅ Deploy Preview for react-cool-todo-app ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
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.
Add Firebase Authentication (email/password) with sign up, sign in, and password reset flows. Integrate Firestore for real-time data sync across devices while preserving localStorage guest mode.
New files:
Modified:
https://claude.ai/code/session_01Thm5M1BQmTCGSZnyXfKJN9