This PR focuses on the backend functionality for service provider profiles, laying the groundwork for future UI implementation. Key features include:
Database Updates: We've enabled updates to the service_providers table in the database to ensure data integrity and functionality.
S3 Bucket Configuration: The S3 bucket has been provisioned manually, with policies in place allowing users to upload profile and background images.
New API Endpoint: A new endpoint using the NextJS API router has been set up for image uploads.
Code Organisation: Introduced a new actions folder to streamline the interaction with the Supabase table and API calls, enhancing code readability and maintainability.
User Feedback: Implemented the Sonner toaster for real-time feedback via toast notifications when profile updates occur.
This is an initial step, with further developments planned for additional profile fields and UI considerations. To manage complexity, subsequent updates will be split into smaller PRs, focusing separately on provider profile updates and customer-facing profile views.
How to Test:
Database Reset: Ensure your database is seeded by running pnpm run supabase:reset. Caution: This will remove existing data.
This PR focuses on the backend functionality for service provider profiles, laying the groundwork for future UI implementation. Key features include:
service_providers
table in the database to ensure data integrity and functionality.actions
folder to streamline the interaction with the Supabase table and API calls, enhancing code readability and maintainability.This is an initial step, with further developments planned for additional profile fields and UI considerations. To manage complexity, subsequent updates will be split into smaller PRs, focusing separately on provider profile updates and customer-facing profile views.
How to Test:
pnpm run supabase:reset
. Caution: This will remove existing data.Preview:
@davidtaing @washington-shoji once this is all good and merged, I will share the updated
.env.local
with the AWS credentials.