Use Cases Demo 2 - COS301-SE-2026/Mealchemy GitHub Wiki


Use Cases

Acronyms

TUCBW - This use case begins with
TUCEW - This use case ends with


Profile and Preferences Use Case Diagram


1: Register

TUCBW the user opens the registration screen and enters their required account details.
TUCEW the user account is created and the user can proceed to set up their profile and preferences.

2: Log In

TUCBW the user enters their email address and password on the login screen and clicks "Log in."
TUCEW the user is authenticated and redirected to the application home screen.

3: Sign Out

TUCBW the logged-in user selects the sign out option from their account or profile area.
TUCEW the user session is ended and the user is returned to the login screen.

4: Manage User Profile

TUCBW the logged-in user opens the user profile section.
TUCEW the user has viewed or updated their profile details, including display name, profile picture, preferred units, and available cooking equipment.

5: Manage Preference Profile

TUCBW the logged-in user opens the preference profile section.
TUCEW the user has viewed or updated their saved food preferences.

6: Set Dietary Restrictions

TUCBW the user opens the dietary restrictions section in their preference profile.
TUCEW the user has selected and saved their dietary restrictions.

7: Set Allergies

TUCBW the user opens the allergies section in their preference profile.
TUCEW the user has selected and saved their allergy constraints.

8: Set Disliked Ingredients

TUCBW the user opens the disliked ingredients section in their preference profile.
TUCEW the user has added or removed disliked ingredients from their preference profile.

9: Set Flavour Profile

TUCBW the user opens the flavour profile section in their preference profile.
TUCEW the user has selected and saved their preferred flavour profile.

10: Set Cooking Equipment

TUCBW the user opens the cooking equipment section in their profile.
TUCEW the user has selected and saved the cooking equipment available to them.

11: Set Preferred Units

TUCBW the user opens the preferred units section in their profile.
TUCEW the user has selected and saved their preferred unit system, such as metric or imperial.

Recipe and Vault Editing Use Case Diagram


1: View Recipe Vault

TUCBW the logged-in user navigates to their recipe vault.
TUCEW the user can see all saved recipes and folders in their personal vault.

2: Create Recipe Folder

TUCBW the logged-in user selects the option to create a new folder within their recipe vault and enters a folder name.
TUCEW the new folder is created and appears in the user's vault, ready to have recipes moved into it.

3: Upload Custom Recipe

TUCBW the logged-in user selects the option to add a custom recipe and enters the recipe title, ingredients, steps, and an optional photo.
TUCEW the recipe is saved to the user's personal vault and is immediately accessible.

4: View Saved Recipe

TUCBW the logged-in user selects a recipe from their vault.
TUCEW the full recipe details including title, ingredients, steps, and nutritional information are displayed.

5: Edit Recipe

TUCBW the logged-in user opens a saved recipe and selects the option to edit it.
TUCEW the user has updated one or more recipe fields and the changes are saved to their vault.

6: Delete Recipe

TUCBW the logged-in user selects the option to delete a recipe from their vault and confirms the action.
TUCEW the recipe is permanently removed from the user's vault.

7: Publish Recipe to Global Vault

TUCBW the logged-in user opens a saved recipe and selects the option to publish it to the global vault.
TUCEW the recipe is marked as public and becomes visible to all users in the community repository.

8: Browse Global Vault

TUCBW the logged-in user navigates to the global vault.
TUCEW the user can see all the recipes that have been published to the community repository.

9: Save Recipe from Global Vault

TUCBW the logged-in user browses the global vault and selects a recipe to save.
TUCEW a copy of the recipe is added to the user's personal vault and can be edited independently of the original.

10: Manage Shared Vault

TUCBW the logged-in user navigates to a shared vault they own.
TUCEW the user can view the vault's current members, recipes, and folders, and access member and content management options.

11: Add Member to Shared Vault

TUCBW the logged-in user opens the member management section of a shared vault they own and enters the details of the user to add.
TUCEW the specified user is added as a member of the shared vault and gains access to its contents.

12: Remove Member from Shared Vault

TUCBW the logged-in user opens the member management section of a shared vault they own and selects a member to remove.
TUCEW the selected user is removed from the shared vault and can no longer access its contents.

13: Upload Recipe to Shared Vault

TUCBW the logged-in user selects a recipe from their personal vault and chooses to upload it to a shared vault they belong to.
TUCEW the recipe is added to the shared vault and becomes accessible to all members of that vault.

Pantry and Shopping List Use Case Diagram


1: View Pantry Ingredients

TUCBW the logged-in user navigates to their personal pantry.
TUCEW the user can see all the ingredients with details like name, quantity and unit that are currently in their pantry.

2: Add Ingredient to Pantry

TUCBW the logged-in user selects the option to add a pantry ingredient, then searches the catalogue and selects the name and enters the quantity and unit of measure.
TUCEW the ingredient is saved to the user’s pantry and can be view under the corresponding ingredient category.

3: Edit Pantry Ingredient

TUCBW the logged-in user selects the option to edit a pantry ingredient.
TUCEW the user has updated one or more of the pantry ingredient fields and the changes are saved to their pantry.

4: Remove Ingredient from Pantry

TUCBW the logged-in user selects the option to remove a pantry ingredient.
TUCEW the pantry ingredient is permanently removed from their pantry.

5. View Shopping Lists

TUCBW the logged-in user navigates to their personal shopping lists.
TUCEW the user can see all their shopping lists with the respective names and number of items.

6. Generate Shopping List

TUCBW the logged-in user selects the option to create a new shopping list and enters the new shopping list name.
TUCEW the new list is saved to the user’s shopping lists and is ready for items to be added to it.

7. Delete Shopping List

TUCBW the logged-in user selects the option to delete an entire shopping list.
TUCEW the shopping list and all its items are permanently deleted from the user’s shopping lists.

8. Add Manual Shopping List Item

TUCBW the logged-in user navigates to a shopping list and selects the option to add a new item to the list, then enters the name, quantity and unit of measure of the item.
TUCEW the item is saved to the user’s selected shopping list and can be view under the corresponding category.

9. Remove Item from Shopping List

TUCBW the logged-in user navigates to a shopping list and selects the option to remove an item.
TUCEW the item is permanently removed from the shopping list.

10. Check off Purchased Item

TUCBW the logged-in user navigates to a shopping list and selects items.
TUCEW the items are marked as purchased.

11. Update Pantry from Shopping List

TUCBW the logged-in user navigates to a shopping list and selects the option to update pantry.
TUCEW all the items marked as purchased are automatically added to the user’s personal pantry and permanently removed from the shopping list.

Note: Will be added to throughout the next sprint