Skip to content

Commit

Permalink
Merge pull request #190 from itsmejr257/junRong-BugFixes-Menu
Browse files Browse the repository at this point in the history
Add bug-fixes for Menu Feature
  • Loading branch information
itsmejr257 authored Apr 9, 2024
2 parents 8d4ef57 + cfb1aa1 commit 6d8264a
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 21 deletions.
4 changes: 2 additions & 2 deletions docs/UserGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ Displays the corresponding features of BudgetBuddy

Format: `menu [INDEX]`

* The `INDEX` refers to the number associated with each menu option. If `INDEX` is not provided, the overall
menu list will be displayed
* The `INDEX` refers to the number associated with each menu option. If `INDEX` is not provided **OR**
is of value `0`, the overall menu list will be displayed
* `INDEX` must be either be empty OR a positive integer and a valid index in the menu list

Example of usage:
Expand Down
25 changes: 12 additions & 13 deletions src/main/java/seedu/budgetbuddy/Ui.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,12 @@ public void showWelcome() {
"to view commands for the respective functions");
System.out.println("To view all menu items again, type \"menu\".");
System.out.println(DIVIDER);
System.out.println("1. Manage Expenses 3. View Expenses");
System.out.println("2. Manage Savings 4. View Savings");
System.out.println("5. Find Expenses 6. Split Expenses");
System.out.println("7. Manage Recurring Bills");
System.out.println("8. Change Currency 9. Manage Budget");
System.out.println("10. Get Graphical Insights");

System.out.println("0. Display the whole menu");
System.out.println("1. Manage Expenses 2. View Expenses");
System.out.println("3. View Expenses 4. View Savings");
System.out.println("5. Find Expenses 6. Split Expenses");
System.out.println("7. Manage Recurring Bills 8. Change Currency");
System.out.println("9. Manage Budget 10. Get Graphical Insights");
System.out.println(DIVIDER);
}

Expand All @@ -33,12 +32,12 @@ public void showGoodbye() {
public void showMenuTitles() {
System.out.println(DIVIDER);
System.out.println("Menu Options:");
System.out.println("1. Manage Expenses 3. View Expenses");
System.out.println("2. Manage Savings 4. View Savings");
System.out.println("5. Find Expenses 6. Split Expenses");
System.out.println("7. Manage Recurring Bills ");
System.out.println("8. Change Currency 9. Manage Budget");
System.out.println("10. Get Graphical Insights");
System.out.println("0. Display the whole menu");
System.out.println("1. Manage Expenses 3. View Expenses");
System.out.println("2. Manage Savings 4. View Savings");
System.out.println("5. Find Expenses 6. Split Expenses");
System.out.println("7. Manage Recurring Bills 8. Change Currency");
System.out.println("9. Manage Budget 10. Get Graphical Insights");
System.out.println("Use 'menu INDEX' to select an option");
System.out.println(DIVIDER);
}
Expand Down
12 changes: 6 additions & 6 deletions text-ui-test/EXPECTED.TXT
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ __________________________________________________
Welcome to BudgetBuddy, to start, please type "menu INDEX" to view commands for the respective functions
To view all menu items again, type "menu".
__________________________________________________
1. Manage Expenses 3. View Expenses
2. Manage Savings 4. View Savings
5. Find Expenses 6. Split Expenses
7. Manage Recurring Bills
8. Change Currency 9. Manage Budget
10. Get Graphical Insights
0. Display the whole menu
1. Manage Expenses 2. View Expenses
3. View Expenses 4. View Savings
5. Find Expenses 6. Split Expenses
7. Manage Recurring Bills 8. Change Currency
9. Manage Budget 10. Get Graphical Insights
__________________________________________________
Goodbye! Thank you for using BudgetBuddy.

0 comments on commit 6d8264a

Please sign in to comment.