forked from nus-cs2103-AY2223S1/tp
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #75 from rui-han-crh/Update-UI
Update UI
- Loading branch information
Showing
66 changed files
with
1,883 additions
and
218 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -254,6 +254,16 @@ Examples: | |
* `findTag Finance` returns `John`, `Caroline` and `Bob` | ||
![result for 'findTag Finance'](images/findTagFinance.png) | ||
|
||
|
||
### Inspecting a person : `inspect` | ||
|
||
Updates the inspect panel with the basic information and loan history of the person inspected. | ||
|
||
![help message](images/helpMessage.png) | ||
|
||
Format: `inspect <INDEX> or <NAME>` | ||
|
||
|
||
### Editing loan of a person: `editLoan` | ||
|
||
Edits an existing club member's loan amount in the SectresBook. | ||
|
@@ -330,12 +340,12 @@ Format: `listNote` | |
|
||
Edits an existing specified note in the SectresBook. | ||
|
||
Format: `editNote INDEX [title/TITLE] [content/CONTENT] [tag/TAG]...` | ||
Format: `editNote INDEX <OR> TITLE [title/TITLE] [content/CONTENT] [tag/TAG]...` | ||
|
||
Example of usage: | ||
|
||
* `editNote 1 content/Second club meeting` can be used to easily update the first note's contents. | ||
* `editeNote 2 title/2020 alumni meeting` can be used to easily update the second note's title. | ||
* `editNote alumni title/2020 alumni meeting` can be used to amend a note with the title "2020 alumni mtg", only if it is the only note containing "2021" in its title. | ||
|
||
### Locating a note by title: `findNote` | ||
|
||
|
@@ -371,6 +381,17 @@ Format: `deleteNote INDEX` | |
Examples: | ||
* `listNote` followed by `deleteNote 2` deletes the 2nd note in the SectresBook. | ||
|
||
### Hiding notes panel : `hideNotes` | ||
|
||
Hides the notes panel to the right side of the screen if visible, otherwise, no operation is performed. | ||
|
||
Format: `hideNotes` | ||
|
||
### Showing notes panel : `showNotes` | ||
|
||
Slides the notes panel into view if hidden, otherwise, no operation is performed. | ||
|
||
Format: `showNotes` | ||
|
||
### Exiting the program : `exit` | ||
|
||
|
@@ -435,25 +456,28 @@ Word | Definition | |
|
||
### AddressBook Commands | ||
|
||
Action | Format | Examples | ||
--------|-------------------------------------------------------------------------------------------------------|-------- | ||
**Add** | `add name/NAME phone/PHONE_NUMBER email/EMAIL home/ADDRESS bday/BIRTHDAY [tag/TAG]…` | `add name/James Ho phone/22224444 email/[email protected] home/123, Clementi Rd, 1234665 bday/01/01/2000 tag/friend tag/colleague` | ||
**Clear** | `clear` | `clear` | ||
**Delete** | `delete INDEX`<br>`delete NAME` | `delete 3` <br> `delete Jane` | ||
Action | Format | Examples | ||
--------|------------------------------------------------------------------------------------------------------|-------- | ||
**Add** | `add name/NAME phone/PHONE_NUMBER email/EMAIL home/ADDRESS bday/BIRTHDAY [tag/TAG]…` | `add name/James Ho phone/22224444 email/[email protected] home/123, Clementi Rd, 1234665 bday/01/01/2000 tag/friend tag/colleague` | ||
**Clear** | `clear` | `clear` | ||
**Delete** | `delete INDEX`<br>`delete NAME` | `delete 3` <br> `delete Jane` | ||
**Edit** | `edit INDEX [name/NAME] [phone/PHONE_NUMBER] [email/EMAIL] [home/ADDRESS] [bday/BIRTHDAY][tag/TAG]…` | `edit 2 name/James Lee email/[email protected]` | ||
**Find** | `find KEYWORD [MORE_KEYWORDS]` <br> `find NUMBER` | `find James Jake` <br> `find 8651` | ||
**Find Tag** | `findTag TAG [MORE_TAGS]` | `findTag Operations Outreach` | ||
**Edit Loan** | `editLoan INDEX AMOUNT REASON` | `editLoan 1 -20 Buy Logistics` | ||
**List** | `list` | `list` | ||
**Help** | `help` | `help` | ||
**Exit** | `exit` | `exit` | ||
**Find** | `find KEYWORD [MORE_KEYWORDS]` <br> `find NUMBER` | `find James Jake` <br> `find 8651` | ||
**Find Tag** | `findTag TAG [MORE_TAGS]` | `findTag Operations Outreach` | ||
**Edit Loan** | `editLoan INDEX AMOUNT REASON` | `editLoan 1 -20 Buy Logistics` | ||
**List** | `list` | `list` | ||
**Inspect** | `inspect NAME <OR> INDEX` | `inspect 1` or `inspect Alex` | ||
**Show Notes Panel** | `showNotes` | `showNotes` | ||
**Hide Notes Panel** | `hideNotes` | `hideNotes` | ||
**Help** | `help` | `help` | ||
**Exit** | `exit` | `exit` | ||
|
||
### Note Commands | ||
|
||
Action | Format | Examples | ||
--------|---------------------------|------------- | ||
**Add Note** | `addNote title/TITLE content/CONTENT [tag/TAG]...` | `addNote title/Create Excel Sheet content/Create sheet for blockchain department` | ||
**Edit Note** | `editNote INDEX [title/TITLE] [content/CONTENT] [tag/TAG]...` | `editNote 1 title/Check meeting availability tag/president` | ||
**Delete Note** | `deleteNote INDEX` | `deleteNote 1` | ||
**List Notes** | `listNote` | `listNote` | ||
**Find Note** | `findNote KEYWORD [MORE_KEYWORDS]` | `findNote meeting` | ||
Action | Format | Examples | ||
--------|--------------------------------------------------------------------------|------------- | ||
**Add Note** | `addNote title/TITLE content/CONTENT [tag/TAG]...` | `addNote title/Create Excel Sheet content/Create sheet for blockchain department` | ||
**Edit Note** | `editNote INDEX <OR> TITLE [title/TITLE] [content/CONTENT] [tag/TAG]...` | `editNote 1 title/Check meeting availability tag/president` | ||
**Delete Note** | `deleteNote INDEX` | `deleteNote 1` | ||
**List Notes** | `listNote` | `listNote` | ||
**Find Note** | `findNote KEYWORD [MORE_KEYWORDS]` | `findNote meeting` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,51 @@ | ||
package seedu.address.commons.core; | ||
|
||
import seedu.address.logic.parser.CliSyntax; | ||
|
||
/** | ||
* Container for user visible messages. | ||
*/ | ||
public class Messages { | ||
|
||
public static final String MESSAGE_UNKNOWN_COMMAND = "Unknown command"; | ||
|
||
public static final String MESSAGE_INVALID_COMMAND_FORMAT = "Invalid command format! \n%1$s"; | ||
|
||
public static final String MESSAGE_INVALID_AMBIGUOUS_TITLE = "There is more than 1 note with %s in their title!\n" | ||
+ "Please use a more unique specifier or use indices to edit."; | ||
|
||
public static final String MESSAGE_INVALID_TITLE = "There are no notes with %s in their titles in the list!"; | ||
|
||
public static final String MESSAGE_INVALID_NOTE_DISPLAYED_INDEX = "The note index provided is invalid"; | ||
|
||
public static final String MESSAGE_INVALID_PERSON_DISPLAYED_INDEX = "The person index provided is invalid"; | ||
|
||
public static final String MESSAGE_PERSONS_LISTED_OVERVIEW = "%1$d persons listed!"; | ||
|
||
public static final String MESSAGE_NOTES_LISTED_OVERVIEW = "%1$d notes listed!"; | ||
|
||
public static final String MESSAGE_NUMBER_TOO_SHORT = "Number to check must be at least 2 digits"; | ||
|
||
public static final String MESSAGE_INVALID_KEYWORD = "Keyword is invalid,keyword cannot contain special characters"; | ||
public static final String MESSAGE_INVALID_AMBIGUOUS_NAME = "There is more than 1 person with %s in their name!"; | ||
public static final String MESSAGE_INVALID_NAME = "There is no one with the name %s in the list!"; | ||
|
||
public static final String MESSAGE_INVALID_AMBIGUOUS_NAME = "There is more than 1 person with %s in their name!\n" | ||
+ "Please use a more unique specifier or use indices to edit."; | ||
|
||
public static final String MESSAGE_INVALID_NAME = "There is no one with the name %s found!"; | ||
|
||
public static final String AMOUNT_NOT_SPECIFIED = "No amount to was specified to edit the loan with.\n" | ||
+ "Please use " + CliSyntax.PREFIX_LOAN_AMOUNT + " to specify a change in loan amount!"; | ||
|
||
public static final String REASON_NOT_SPECIFIED = "A reason must be given to change loan amounts.\n" | ||
+ "Please use " + CliSyntax.PREFIX_LOAN_REASON + " to specify a reason to change the loan value!"; | ||
|
||
public static final String OUT_OF_BOUNDS = "The index given to be inspected must be within " | ||
+ "the bounds of the list!"; | ||
|
||
public static final String NOT_AN_INTEGER = "The index given was not an integer value"; | ||
|
||
public static final String AMBIGUOUS_NAME_INSPECT_FIRST = "There was more than one person of that name found.\n" | ||
+ "Showing the first person matching the given name.\n" | ||
+ "Note that inspection works on the currently filtered list, " | ||
+ "perhaps you would like to filter away some persons first?"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
|
||
import static java.util.Objects.requireNonNull; | ||
import static seedu.address.logic.parser.CliSyntax.PREFIX_ADDRESS; | ||
import static seedu.address.logic.parser.CliSyntax.PREFIX_BIRTHDAY; | ||
import static seedu.address.logic.parser.CliSyntax.PREFIX_EMAIL; | ||
import static seedu.address.logic.parser.CliSyntax.PREFIX_LOAN; | ||
import static seedu.address.logic.parser.CliSyntax.PREFIX_NAME; | ||
|
@@ -25,13 +26,15 @@ public class AddCommand extends Command { | |
+ PREFIX_PHONE + "PHONE " | ||
+ PREFIX_EMAIL + "EMAIL " | ||
+ PREFIX_ADDRESS + "ADDRESS " | ||
+ PREFIX_BIRTHDAY + "BIRTHDAY " | ||
+ "[" + PREFIX_TAG + "TAG]..." | ||
+ "[" + PREFIX_LOAN + "10]\n" | ||
+ "Example: " + COMMAND_WORD + " " | ||
+ PREFIX_NAME + "John Doe " | ||
+ PREFIX_PHONE + "98765432 " | ||
+ PREFIX_EMAIL + "[email protected] " | ||
+ PREFIX_ADDRESS + "311, Clementi Ave 2, #02-25 " | ||
+ PREFIX_BIRTHDAY + "28/10/2000 " | ||
+ PREFIX_TAG + "friends " | ||
+ PREFIX_LOAN + "50"; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.