Skip to content

Commit

Permalink
Merge branch 'master' into week11/update-website-styling
Browse files Browse the repository at this point in the history
  • Loading branch information
tingkai-mai authored Oct 27, 2022
2 parents 0e63d9f + 454c956 commit d2906d9
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
6 changes: 3 additions & 3 deletions docs/_dg/InstructionsForManualTesting.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ Prerequisite: There is at least 1 item in the Item List Box.
### Tags

#### Creating a Tag
Test Case: `newtag n/Fruits`<br> Expected Output in Command Output Box: New tag added and its details.
1. Test Case: `newtag n/Fruits`<br> Expected Output in Command Output Box: New tag added and its details.

Test Case: `newtag n/!`<br> Expected Output in Command Output Box: Error message for invalid name format.
1. Test Case: `newtag n/!`<br> Expected Output in Command Output Box: Error message for invalid name format.

#### Renaming a Tag
Prerequisite: Original tag to be renamed exists.
Expand Down Expand Up @@ -72,4 +72,4 @@ Prerequisite: Tag currently exists in FoodRem


### Exit
Test Case: `exit`<br> Expected Output: FoodRem application closes.
1. Test Case: `exit`<br> Expected Output: FoodRem application closes.
2 changes: 1 addition & 1 deletion docs/_dg/ModelComponent.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

The `Model` component,

* stores the food rem data i.e., all `Item` and `Tag` objects (which are contained in the respective `UniqueItemList` and `UniqueTagList` objects).
* stores FoodRem data i.e., all `Item` and `Tag` objects (which are contained in the respective `UniqueItemList` and `UniqueTagList` objects).
* stores the currently 'selected' `Item` and `Tag` objects (e.g., results of a search query) as a separate _filtered_ list which is exposed to outsiders as unmodifiable `ObservableList<Item>` and `ObservableList<Tag>` that can be 'observed' e.g. the UI can be bound to this list so that the UI automatically updates when the data in the list change.
* stores a `UserPref` object that represents the user’s preferences. This is exposed to the outside as a `ReadOnlyUserPref` objects.
* does not depend on any of the other three components (as the `Model` represents data entities of the domain, they should make sense on their own without depending on other components)
10 changes: 10 additions & 0 deletions docs/_dg/UseCases.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ MSS:
1. User adds a new Item to the inventory with the specified arguments.
1. FoodRem informs user that item has been successfully created.

Use case ends.

Extensions:

* 1a. If the item name already exists in the inventory, FoodRem will throw an error.
Expand All @@ -35,6 +37,9 @@ MSS:
1. User enters the command to edit the item with new fields.
1. FoodRem informs user that item has been successfully edited.

Use case ends.


Extensions:

* 3a. If the item name does not exist in the inventory, FoodRem will throw an error.
Expand All @@ -61,6 +66,8 @@ MSS:
1. User enters the command to delete an item.
1. FoodRem informs user that item has been successfully deleted.

Use case ends.

Extensions:

* 3b. FoodRem detects that there is an issue with the command entered.
Expand All @@ -79,6 +86,8 @@ MSS:
1. User adds a new Tag to the inventory with the specified arguments.
1. FoodRem informs user that tag has been successfully created.

Use case ends.

Extensions:

* 3a. If the tag name already exists in the inventory, FoodRem will throw an error.
Expand All @@ -102,6 +111,7 @@ MSS:
1. FoodRem shows a list containing the items.
1. User searches for an Item with one or more criteria.
1. FoodRem displays all items in inventory which matches the given criteria.

Use case ends.

* 3a. FoodRem detects that there is an issue with the command entered.
Expand Down

0 comments on commit d2906d9

Please sign in to comment.