Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FE] Edit Medication Flow #63

Open
7 tasks
michaelhyi opened this issue Mar 4, 2025 · 0 comments
Open
7 tasks

[FE] Edit Medication Flow #63

michaelhyi opened this issue Mar 4, 2025 · 0 comments

Comments

@michaelhyi
Copy link
Contributor

Description

Frontend engineers should implement the Edit Medication Flow:

Image Image

Acceptance Criteria

  • The Edit Medication modal should exist at the following route: /edit-medication/{medicationId}
  • The flow should reuse the components utilized for the Add New Medication modal, with low coupling between modal and edit logic
  • The modal should first fetch the medication info, and display it in the "Review" section
  • If any of the pencils are clicked, it should THEN navigate to the respective page for editing
  • All changes, if the save button is clicked, should send a PATCH request to save the medication
  • Error handling should be implemented exhaustively
  • Test exhaustively for edge cases

Other Notes

  • The medicationId referenced in the first bullet point of the Acceptance Criteria refers to the primary key of the Medication entity. The type should be of ObjectId
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants