Commit Graph

12 Commits

Author SHA1 Message Date
iamkiddy
cea4747da5 Enhance appointment detail and user dashboard components to conditionally render meeting links and buttons based on availability. Update appointment stats fetching logic to remove email dependency, improving user experience and API interaction. Refactor UI elements for better accessibility and clarity. 2025-11-27 20:35:26 +00:00
iamkiddy
a864d909a8 Refactor appointment handling in appointments.ts to improve error extraction, response parsing, and slot validation. Introduce new helper functions for better readability and maintainability, while ensuring compatibility with updated API response formats. 2025-11-27 19:53:35 +00:00
iamkiddy
6b83b092e3 Refactor Booking and AppointmentDetail components to integrate new appointment scheduling format. Update time slot management to use selected_slots, enhance availability loading logic, and improve error handling. Replace legacy date and time handling with a more robust API-driven approach for better user experience and data consistency. 2025-11-27 19:18:59 +00:00
iamkiddy
b2877dd36c Improve error handling in createAppointment function by using [\s\S] regex for better compatibility in parsing HTML error messages. 2025-11-26 11:44:16 +00:00
iamkiddy
cef17ea895 Add React DatePicker and styles, update package dependencies, and enhance booking validation 2025-11-26 11:42:31 +00:00
iamkiddy
a1611e1782 Enhance AdminSettingsPage to fetch and update user profile. Implement profile data retrieval on component mount, update form structure to include first and last name, and add validation for required fields. Improve loading indicators and error handling for profile updates. Update API integration for fetching and updating user profile data. 2025-11-25 21:25:53 +00:00
iamkiddy
f6bd813c07 Refactor Booking component to manage time slots instead of time ranges. Update localStorage handling for time slots, enhance UI for selecting time slots, and improve validation for selected slots. Integrate public availability fetching in BookNowPage to display available time slots based on admin settings. 2025-11-25 21:04:22 +00:00
iamkiddy
85afc8c840 Enhance Booking component for admin availability management. Implement time range selection for each day, load saved time ranges from localStorage, and validate time inputs. Update API integration to ensure available_days is an array of numbers and improve error handling for availability updates. Refactor UI for better user experience in managing weekly availability. 2025-11-25 20:38:37 +00:00
iamkiddy
0297e6e3e5 Implement admin availability management in Booking component. Add functionality to manage weekly availability, including day and time selection, and integrate a dialog for updating availability. Enhance API integration for fetching and updating admin availability data. Update UI elements for better user experience. 2025-11-25 20:15:37 +00:00
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
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
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