Skip to content

Conversation

@suiramdev
Copy link
Owner

No description provided.

@suiramdev suiramdev changed the title Add / Replace with convex Draft: Add / Replace with convex Aug 28, 2025
@suiramdev suiramdev marked this pull request as draft August 28, 2025 08:28
@suiramdev suiramdev changed the title Draft: Add / Replace with convex Add / Replace with convex Aug 28, 2025
@suiramdev
Copy link
Owner Author

Having issues related to get-convex/convex-backend#193 (comment)

…t variables, and refactor user management components

- Added Zero API endpoints for fetching and mutating data.
- Updated .env.example with new Zero API URLs.
- Refactored user management components to utilize the new Zero API.
- Introduced a new UsersTable component with improved structure and functionality.
- Updated package dependencies and configurations for Zero integration.
This commit marks the first production implementation of Zero Replicache in
the codebase, enabling real-time data synchronization with optimistic updates
and offline capabilities. The refactoring of Zero queries to use related()
establishes the query patterns that will be used throughout the application
for collaborative features.
- Added EditUserDialog component for editing user details.
- Updated BanUserDialog and DeleteUserDialog to use new mutator functions.
- Introduced createUserMutator for user-related operations including banning, deleting, and updating users.
- Refactored user table actions to integrate the new EditUserDialog and handle user actions more effectively.
Replace Zero with Convex as the backend-as-a-service (BaaS) solution.
Zero proved to be too unstable for production use, while Convex
provides a more stable and reliable foundation for the application.

Key changes:
- Remove Zero package and all related API routes
- Remove Prisma/PostgreSQL database package (packages/db)
- Add Convex package with BetterAuth integration
- Update authentication helpers to work with Convex
- Refactor organization and user management to use Convex queries/mutations
- Update admin app to use Convex provider instead of Zero client
- Simplify routing structure by removing organization-scoped routes
- Updated member table components to utilize Convex for fetching organization members.
- Refactored member-related types and queries to align with Convex's structure.
- Introduced new mutations for creating accounts, users, and members within the BetterAuth framework.
- Improved user interface components for member actions, including selection and status display.
- Added support for organization-specific member queries and streamlined data handling.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants