This PR is fairly large and addresses multiple related issues:
Added dynamic routes for each practice registered on the system, ideally in kebab case to be created at the time of registration. Eg of route will now be /appointment/pure-smiles-dentistry
Based on the params, the page will check and fetch public data for the office: id, name, logo, address, social media links, etc
Updated appointment form to include the practice id
Fixed a bug in the appointment form where the form state still was not resetting
Updated the main Footer component for the page to reflect Connectient as a product developed by us
Created a secondary footer component and moved the address/social media links for the practices to that footer instead.
Adjusted the tables and RLS in Supabase to suit, and also updated the types to match.
Appointments and Users now belong to a specific practice
Admin users can only access the appointments for their practice
Related Issue
Closes #63 #88
Acceptance Criteria
Type of Changes
Type
:bug: Bug fix
✓
:sparkles: New feature
:hammer: Refactoring
:100: Add tests
:link: Update dependencies
:scroll: Docs
Updates
Before
After
Testing Steps / QA Criteria
Right now, there are two practices set up:
Appointment route: http://localhost:3000/appointment/pure-smiles-dentistry
Admin login admin@admin.com
Description
This PR is fairly large and addresses multiple related issues:
/appointment/pure-smiles-dentistry
Related Issue
Closes #63 #88
Acceptance Criteria
Type of Changes
Updates
Before
After
Testing Steps / QA Criteria
Right now, there are two practices set up: Appointment route:
http://localhost:3000/appointment/pure-smiles-dentistry
Admin login admin@admin.comAppointment route:
http://localhost:3000/appointment/pearly-whites
Admin login donjoe@gmail.com