OlhenShu / ProjectStage_Team2_May

0 stars 0 forks source link

Manage TO DO list on My habit’s page #133

Open OlhenShu opened 5 months ago

OlhenShu commented 5 months ago

As a user, I want to be able to manage my To do list from My habit’s page so that I don’t need to open the Habit’s page each time I want to mark an item as bought.

Preconditions:

Business rule: User is able to manage maximum six habits in progress at the same time.

Acceptance criteria:

  1. When user doesn’t have habits in progress or doesn’t set up a To do list for a habit, he/she sees a message in the section of the To do list on the "My Habits" page: “No items added yet. Please add a habit with some items to see them in your list”: a. system displays “0” items in the counter. image

  2. When the user adds a product to the To do list on the "My Habits" page, the number displayed in the counter increases by the number of added products.

  3. When the user removes a product from the To do list on the "My Habits" page, the number displayed in the counter decreases by the number of removed products.

  4. When user has habits in progress with items in the To do list, the system displays those items in the To do checklist on the "My Habits" page: a. system accumulates all items from To do lists from all habits in progress; b. when there are 2 similar items from different habits, the system displays both of them; c. items are displayed in chronological sequence of adding habits: items of habits that were added recently are displayed at the top of the list and items of habits that were added earlier are displayed at the bottom of the list; d. system displays 3 items by default, to see all list user should click on the button “See all”; e. system represents “See all” list by an expanded area; f. when user hovers a cursor over the item, the system displays the whole item’s name;

  5. System displays items in the shopping list on the "My Habits" page until the habit is in progress: a. when the habit is acquired or given up all items related to the specific habit disappear from the To do list on the "My Habits" page.

  6. User can mark an item as bought in the To do list by checking the checkbox near the item’s name: a. after clicking on the checkbox the item’s name is strikethrough.

  7. User can reactivate an item in the To do list by unchecking the checkbox: a. after unchecking the checkbox the item’s name is displayed without crossing.

  8. System updates changes (checking or unchecking of items) in the To do list of the respective habit in progress on the habit’s page.

Epic My habits #7