Full-Stack-Collective / connectient

Connectient: Your bridge to effortless healthcare appointments, ensuring seamless scheduling for patients and providers
https://connectient.co
1 stars 1 forks source link

Appointment Dashboard Details Popup: Show the time dropdown filled with the default value #123

Open 5hraddha opened 1 year ago

5hraddha commented 1 year ago

This was working before as intended but broke somewhere with other changes. As part of this

  1. In case the appointment has not been scheduled yet, the time dropdown should be filled with something like either the first time slot of the business for the day or some word like - Select or something. What we had before was the first time slot of the business for the day.
  2. In case the appointment has been scheduled before, the time dropdown should be filled with the last scheduled time.
image image

This feature is not working now because in the Frontend code, we've changed the time format from 24 to 12 hours but the backend has the data in 24 hours format. So, the possible solution could be:

  1. In Frontend code, before assigning the default time value, convert it first back to 24 hours format so that it matches with the DB values.
  2. Or change the format of the time stored in DB to 12 hours format.