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

feature appointment confirmation, error message display #62

Closed NuriyaAkh closed 1 year ago

NuriyaAkh commented 1 year ago

Description

the AppointmentForm component to display either a successful appointment request details or an error popup. The changes ensure that when there are no errors in creating an appointment, the requested appointment details are displayed in the popup. In case of an error, a popup with an error message is displayed instead. The user can close the popup by clicking the close button.

-Updated the AppointmentForm component to conditionally render the AppointmentDetailsPopup component or the ErrorPopup component based on the presence of errors. -Created the AppointmentDetailsPopup component to display the requested appointment details. -Created the ErrorPopup component to display an error message. -Created and reused the Popup component for both the AppointmentDetailsPopup and ErrorPopup components to maintain consistent styling. P.S. 🤫 Shraddha, I re-used your styles for the Popup

Related Issue

closes #19

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

mentalcaries commented 1 year ago

It's looking good @NuriyaAkh !!

I think before submitting to the database, the user should have the option to confirm the details(maybe in the same popup) "Does this look right?" Once they click yes, then the database request is made