Skip to content

Cycle 5 User Stories

Mauleen Ndlovu edited this page Apr 2, 2021 · 1 revision

US5:1: Users should be able to access an "info" page named, "Welcome to Harmony Mood!" that has information and instructions on how to use the app.

  • "Info" page will include:

    • version number, information, and instructions on how to track mood
  • For a user to get to the "Info" page, named "Welcome to Harmony Mood!" they need to:

    • first open up the simulation
    • click on the "Medications List" link from the "Tracking Points" page (first page the user will see when they enter the app) --> click on the "Add Medication" link from the "Medications List" page --> click on "Welcome to Harmony Mood!" from the "Add New Medication" page

 


US5:2: As a user, when I add a new medication I want to see it on the "Medications List" page.

  • The "Medication List" page will include:

    • name of the medication, # of mgs, and date started
  • For a user to get to the "Medications List" page, they need to:

    • first open up the simulation
    • click on the "Medications List" link from the "Tracking Points" page (first page the user will see when they enter the app)
  • A user will add a new medication by clicking on the "+" logo that says "Add" on the bottom of the "Medications List" page. When the user clicks on the "+" logo, the "Add New Medication" page will pop up. The user will be prompted to fill out the fields and when they are done they will press "Save". When they press "Save" they will receive a success message to inform them that their medication has been saved. Once saved, they will be able to see their medication on the "Medications List" page.

    • The "Add New Medication" page includes:
      • medication name (text field)
      • medication dosage (integer text field)
      • medication units (mg)
      • starting date (date)
      • save button

 


US5:3: As a user, I want to be able to edit a medication I added on the "Medications List" page.

  • Users can edit:

    • name of the medication, # of mgs, and date started
  • For a user to get to the "Medications List" page, they need to:

    • first open up the simulation
    • click on the "Medications List" link from the "Tracking Points" page (first page the user will see when they enter the app)
  • A user will edit a medication by clicking on the "..." logo that says "Edit" on the bottom of the "Medications List" page. When the user clicks on the "..." logo, the "Add New Medication" page will pop up with the already populated medication name, dosage, unit, and starting date. The user will be prompted to edit out the fields they need and when they are done they will press "Save". When they press "Save" they will receive a success message to inform them that their medication has been updated. Once saved, they will be able to see their medication on the "Medications List" page. When saved, users see the medication name and the # of mgs only.


 


US5:4: As a user, I want to be able to delete a medication I added on the "Medication List" page.

  • Users can delete by swiping to the left. Once the medication is deleted it will not show up on the "Medication List" page.

  • For a user to get to the "Medications List" page, they need to:

    • first open up the simulation
    • click on the "Medications List" link from the "Tracking Points" page (first page the user will see when they enter the app)
  • A user will delete a medication by swiping to the left of any medication on the "Medications List" page. When the user swipes left, they will get a pop up message that will ask if them if they want to delete the medication. The user will then say yes or no. If the user says yes, the medication will be deleted and once deleted, it will no longer show up on the "Medications List" page. If the user says no, the medication will still show up on the "Medications List" page.


 


Testing for US5:1, US5:2, US5:3, US5:4

  • SwiftUI tests

 


Things to consider

  • the "Medications List" page will have a 'TabView' at the bottom of the screen for easier navigation ... this is the only page that will have that (for now)
    • will include ...
      • Add
      • Edit
      • Delete

 

Clone this wiki locally