feat/authentication #21

Merged
Hammond merged 12 commits from feat/authentication into master 2025-11-24 22:09:51 +00:00

12 Commits

Author SHA1 Message Date
iamkiddy
7db02adbd7 Refactor Login and Signup components to utilize Suspense for improved loading states. Update error handling in LoginDialog to reference issues instead of errors for better validation feedback. Enhance appointment error handling by casting response data to unknown before extracting error messages. 2025-11-24 16:38:09 +00:00
iamkiddy
eec3976f94 Refactor login and OTP verification flow in Login component. Update success handling to switch to login step instead of redirecting, and enhance UI in LoginDialog for better responsiveness and accessibility. Adjust styling for form elements and improve layout consistency. 2025-11-24 16:21:21 +00:00
iamkiddy
c7871cfb46 Enhance Booking component with appointment scheduling and rejection functionality. Integrate dialogs for scheduling and rejecting appointments, improving user interaction. Update layout to suppress hydration warnings and refine appointment data handling in BookNowPage for consistent ID management. 2025-11-24 16:04:39 +00:00
iamkiddy
4f6e64bf99 Refactor Booking and Dashboard components to integrate appointment management and enhance data fetching logic. Replace mock data with API calls for appointments and user statistics, improving error handling and user feedback. Update UI elements for better search functionality and display of appointment details. 2025-11-23 22:28:02 +00:00
iamkiddy
43d0eae01f Refactor Navbar component to simplify button class names by removing conditional logic for styling. This improves readability and maintains consistent styling for logout buttons based on user state. 2025-11-23 21:58:14 +00:00
iamkiddy
37531f2b2b Refactor booking process in BookNowPage to integrate appointment creation via useAppointments hook. Enhance form submission logic to check user authentication before proceeding. Update API endpoint configurations for appointment management, including available dates and user appointments. Improve error handling and user feedback with toast notifications. 2025-11-23 21:43:13 +00:00
iamkiddy
041c36079d Enhance authentication and middleware logic by improving user role checks, adding OTP verification steps, and refining redirection based on user roles. Update login and signup forms to handle multiple user attributes and streamline error handling. Integrate logout functionality across components for better user experience. 2025-11-23 21:13:18 +00:00
iamkiddy
7b5f57ea89 Add Next.js Link import to Footer component for improved navigation 2025-11-23 19:14:23 +00:00
iamkiddy
41b60c930e Merge branch 'feat/login-integrations' into feat/authentication 2025-11-23 19:13:56 +00:00
iamkiddy
3180e48fe1 Merge branch 'master' of http://35.207.46.142/ATTUNE-HEART-THERAPY/website into feat/authentication 2025-11-23 19:06:39 +00:00
iamkiddy
72860dc63d Enhance Footer component by adding an Admin Panel link and updating quick links to support scroll behavior. Replace button elements with Next.js Link for navigation to the Admin Panel. 2025-11-23 19:06:09 +00:00
iamkiddy
eb8a800eb7 Enhance authentication flow by integrating @tanstack/react-query for improved data fetching, adding form validation in Login and LoginDialog components, and updating user redirection logic post-login. Also, include new dependencies: input-otp and zod for OTP input handling and schema validation. 2025-11-23 13:29:31 +00:00