Commit Graph

11 Commits

Author SHA1 Message Date
M1ngdaXie
e363b99966 fix: Update environment variable examples in .env files for clarity and completeness 2026-01-12 17:45:15 -08:00
M1ngdaXie
a1f2102c90 fix: Update permission handling in Editor and EditorPage components 2026-01-12 16:57:51 -08:00
M1ngdaXie
b19eafb497 feat: Add Vercel configuration for URL rewrites 2026-01-12 16:40:13 -08:00
M1ngdaXie
192bcba109 fix: Add /api and /ws paths to backend URLs for correct routing 2026-01-12 01:33:27 -08:00
M1ngdaXie
1058299933 fix: Add production fallbacks for API and WebSocket URLs 2026-01-12 01:19:29 -08:00
M1ngdaXie
819760662a set up for deployment 2026-01-12 00:16:55 -08:00
M1ngdaXie
6b1ed8d11c feat: Implement document permission handling and sharing features 2026-01-10 21:19:12 -08:00
M1ngdaXie
6ba18854bf feat: Improve OAuth handling and user data extraction in authentication flow 2026-01-08 16:35:38 -08:00
M1ngdaXie
0a5e6661f1 feat: Implement Share Modal for document sharing functionality
- Added ShareModal component to manage user and link sharing for documents.
- Created AuthContext to handle user authentication state and token management.
- Updated useYjsDocument hook to support sharing via tokens.
- Enhanced Yjs document creation to include user information and authentication tokens.
- Introduced AuthCallback page to handle authentication redirects and token processing.
- Modified EditorPage and KanbanPage to include share functionality.
- Created LoginPage with Google and GitHub authentication options.
- Added styles for LoginPage.
- Defined types for authentication and sharing in respective TypeScript files.
2026-01-06 22:03:07 -08:00
M1ngdaXie
7f5f32179b feat: Enhance real-time collaboration features with user awareness and document sharing
- Added user information (UserID, UserName, UserAvatar) to Client struct for presence tracking.
- Implemented failure handling in the broadcastMessage function to manage send failures and disconnect clients if necessary.
- Introduced document ownership and sharing capabilities:
  - Added OwnerID and Is_Public fields to Document model.
  - Created DocumentShare model for managing document sharing with permissions.
  - Implemented functions for creating, listing, and managing document shares in the Postgres store.
- Added user management functionality:
  - Created User model and associated functions for user management in the Postgres store.
  - Implemented session management with token hashing for security.
- Updated database schema with migrations for users, sessions, and document shares.
- Enhanced frontend Yjs integration with awareness event logging for user connections and disconnections.
2026-01-03 12:59:53 -08:00
M1ngdaXie
37d89b13b9 first commit 2025-12-29 16:29:24 -08:00