Commit Graph

34 Commits

Author SHA1 Message Date
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
cb4c0f9c87 chore(deps): Remove unused '@radix-ui/react-toast' dependency from pnpm-lock.yaml
- Deleted the '@radix-ui/react-toast' package and its associated entries from the lock file.
- Cleaned up the dependency tree to streamline package management and reduce potential bloat.
2024-12-04 10:00:52 -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
09b24a0e74 docs(repo): update README to link to website 2024-11-21 02:03:57 -05:00
07a04e9e8b fix(perms): Fix wrong table names in permissions scope 2024-11-21 01:57:50 -05:00
645b4b63aa feat(auth): Add Clerk user sync to database using webhooks 2024-11-21 01:53:43 -05:00
8fc8da036c build(repo): 2024-11-21 01:52:55 -05:00
a59834591c chore(repo): Add example .env file 2024-11-21 01:08:29 -05:00
15fce87c6c style(repo): Update README.md to show screenshot of homepage 2024-11-21 00:50:32 -05:00
e06babd7a0 fix(homepage): update sign-up button to open account creation modal 2024-11-21 00:47:22 -05:00
59a9aa67b9 feat: Add landing page 2024-11-21 00:26:31 -05:00
f700cad564 Remove delete routes 2024-11-20 23:35:49 -05:00
1715f6eeb8 Implement permissions on participants page 2024-11-20 23:35:44 -05:00
f90b6d54c0 Dependency updates 2024-11-20 23:35:26 -05:00
0d2b18217d Update participants page UI 2024-11-20 22:50:17 -05:00
e5d32830e7 Clean up unused imports 2024-11-20 22:50:07 -05:00
6d4527d732 Update .env and build process 2024-11-20 22:49:54 -05:00
d4a4d1c687 Add LICENSE file 2024-11-19 22:18:06 -05:00
1dea322cb7 Update README.md 2024-11-19 22:16:42 -05:00
b4a05e0bcd Clean codebase- start from scratch 2024-11-19 22:14:54 -05:00
9d9aa52285 Add roles system 2024-10-03 17:50:07 -04:00
7ef9180026 ability to create trials added; form uploader cleaned up 2024-10-03 16:35:19 -04:00
93e2b0323b Update .gitignore for test data 2024-09-30 08:20:22 -04:00
be56ead43f Finalize form display 2024-09-26 18:14:04 -04:00
6584a48f27 Form implementation, api routes 2024-09-26 16:04:57 -04:00
66137ff7b4 Begin file upload, add theme change 2024-09-26 01:00:46 -04:00
ccc3423953 Update participant and study API routes 2024-09-25 22:13:29 -04:00
33d36007c8 Delete pnpm-lock.yaml 2024-09-18 18:38:59 -04:00
0e019e3c30 create database connection 2024-09-18 18:38:35 -04:00
dab127aed7 dockerized build system 2024-09-18 18:32:16 -04:00
ce046c2062 Initial commit 2024-09-14 23:38:24 -04:00
e48ab0aa6e Initial commit 2024-09-13 00:19:21 -04:00