Commit Graph

8 Commits

Author SHA1 Message Date
29ce631901 fix: update user fields to match schema
- Replace firstName/lastName with name field in users API route
- Update user formatting in UsersTab component
- Add email fallback when name is not available
2024-12-04 14:45:24 -05:00
95b106d9e9 chore(deps): Update dependencies and enhance API error handling
- Added '@vercel/analytics' to package.json for improved analytics tracking.
- Updated 'next' version from 15.0.2 to 15.0.3 to incorporate the latest features and fixes.
- Refactored API routes for invitations and studies to improve error handling and response structure.
- Enhanced permission checks in the invitations and studies API to ensure proper access control.
- Removed the participants dashboard page as part of a restructuring effort.
- Updated the database schema to include environment settings for users and studies.
- Improved the dashboard components to handle loading states and display statistics more effectively.
2024-12-04 12:32:54 -05:00
64ecf69202 refactor(api): Update invitation handling and dashboard components
- Refactored invitation API routes to improve error handling and response structure.
- Enhanced the GET and POST methods for invitations to return JSON responses.
- Updated the DELETE method to provide clearer success and error messages.
- Improved the dashboard page to display statistics for studies, participants, and active invitations.
- Added loading states and error handling in the dashboard and participants pages.
- Updated TypeScript configuration to relax strict checks and include additional type roots.
- Modified the Next.js configuration to ignore type errors during builds.
- Added new dependencies for Radix UI components in the pnpm lock file.
2024-12-04 09:52:37 -05:00
3ec8b2fe46 feat(env): Update environment configuration and enhance email functionality
- Renamed DATABASE_URL to POSTGRES_URL in .env.example for clarity.
- Added SMTP configuration for email sending, including host, port, user, password, and from address.
- Updated package.json to include new dependencies for email handling and UI components.
- Modified middleware to handle public and protected routes more effectively.
- Enhanced API routes for studies to support user roles and permissions.
- Updated database schema to include invitations and user roles related to studies.
- Improved user permissions handling in the permissions module.
- Added new utility functions for managing user roles and study access.
2024-12-03 23:02:23 -05:00
3a955a0568 feat(api): Enhance study creation and user management with improved error handling and logging
- Updated the study creation endpoint to return JSON responses for errors and success.
- Added user existence verification before creating a study.
- Enhanced error logging for better debugging.
- Refactored user creation in webhooks to use transactions for atomicity.
- Improved response structure for webhook processing.
- Updated the seed script to streamline role and permission insertion.
- Added new permissions for editing studies and participants.
2024-12-03 15:42:43 -05:00
1715f6eeb8 Implement permissions on participants page 2024-11-20 23:35:44 -05:00
0d2b18217d Update participants page UI 2024-11-20 22:50:17 -05:00
b4a05e0bcd Clean codebase- start from scratch 2024-11-19 22:14:54 -05:00