diff --git a/build.gradle b/build.gradle index 0db3743584e..072272bdcb2 100644 --- a/build.gradle +++ b/build.gradle @@ -61,7 +61,6 @@ dependencies { implementation group: 'com.fasterxml.jackson.datatype', name: 'jackson-datatype-jsr310', version: '2.7.4' testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: jUnitVersion - testRuntimeOnly group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: jUnitVersion } diff --git a/docs/images/helpMessage.png b/docs/images/helpMessage.png index b1f70470137..2eafffd44b9 100644 Binary files a/docs/images/helpMessage.png and b/docs/images/helpMessage.png differ diff --git a/src/main/java/seedu/address/logic/commands/EditCommand.java b/src/main/java/seedu/address/logic/commands/EditCommand.java index 160d3026b90..4c98a81c9d0 100644 --- a/src/main/java/seedu/address/logic/commands/EditCommand.java +++ b/src/main/java/seedu/address/logic/commands/EditCommand.java @@ -41,13 +41,13 @@ public class EditCommand extends Command { + "by the studentId assigned to the corresponding student. " + "Existing values will be overwritten by the input values.\n" + "Parameters: STUDENTID (must be a valid and existing 8-digit Student ID) " - + "[" + PREFIX_STUDENTID + "STUDENTID] " - + "[" + PREFIX_NAME + "NAME] " - + "[" + PREFIX_PHONE + "PHONE] " - + "[" + PREFIX_EMAIL + "EMAIL] " - + "[" + PREFIX_ADDRESS + "ADDRESS] " - + "[" + PREFIX_COURSE + " COURSE] " - + "[" + PREFIX_TAG + "TAG]...\n" + + PREFIX_STUDENTID + "STUDENTID " + + PREFIX_NAME + "NAME " + + PREFIX_PHONE + "PHONE " + + PREFIX_EMAIL + "EMAIL " + + PREFIX_ADDRESS + "ADDRESS " + + PREFIX_COURSE + " COURSE " + + PREFIX_TAG + "TAG...\n" + "Example: " + COMMAND_WORD + " 12345678 " + PREFIX_PHONE + "91234567 " + PREFIX_EMAIL + "johndoe@example.com"; diff --git a/src/main/java/seedu/address/ui/HelpWindow.java b/src/main/java/seedu/address/ui/HelpWindow.java index 3f16b2fcf26..4b75cbfae5d 100644 --- a/src/main/java/seedu/address/ui/HelpWindow.java +++ b/src/main/java/seedu/address/ui/HelpWindow.java @@ -16,7 +16,64 @@ public class HelpWindow extends UiPart { public static final String USERGUIDE_URL = "https://se-education.org/addressbook-level3/UserGuide.html"; - public static final String HELP_MESSAGE = "Refer to the user guide: " + USERGUIDE_URL; + public static final String HELP_MESSAGE = + "============================================================================================\n" + + " H E L P M E N U\n" + + "============================================================================================\n" + + "\n1. Add Student\n" + + " - Purpose: Adds a student and their details to the address book.\n" + + " - Command Format:\n" + + " add id/ [STUDENT_ID] n/ [STUDENT_NAME] p/ [PHONE_NUMBER] a/ [ADDRESS] c/ [COURSE] t/ [TAGS]\n" + + " - Example:\n" + + " add id/ 12345678 n/ John Doe p/ 99999999 a/ 123 Jane Doe Road " + + "c/ Computer Science t/ Student\n" + + "\n2. Add a Student Grade\n" + + " - Purpose: Adds a grade for a student in a module.\n" + + " - Command Format:\n" + + " grade id/ [STUDENT_ID] m/ [MODULE] g/ [GRADE]\n" + + " - Example:\n" + + " grade id/ 12345678 m/ CS2103T g/ A\n" + + "\n3. Add Module\n" + + " - Purpose: Adds a module for a student.\n" + + " - Command Format:\n" + + " module id/ [STUDENT_ID] m/ [MODULE]\n" + + " - Example:\n" + + " module id/ 12345678 m/ CS2103T\n" + + "\n4. Edit Student\n" + + " - Purpose: Edits a student's details according to the fields specified.\n" + + " - Command Format:\n" + + " edit [STUDENT_ID] [FIELD_TO_EDIT_PREFIX] [NEW_VALUE]\n" + + " - Editable Fields:\n" + + " n/ [STUDENT_NAME], p/ [PHONE_NUMBER], e/ [EMAIL], a/ [ADDRESS], c/ [COURSE], t/ [TAG]\n" + + " - Example:\n" + + " edit 12345678 n/ Jane Doe p/ 88888888 e/ janedoe@gmail.com " + + "a/ 456 John Doe Road c/ Physics t/ Student\n" + + "\n5. Delete Student\n" + + " - Purpose: Removes a student from the address book.\n" + + " - Command Format:\n" + + " delete id/ [STUDENT_ID]\n" + + " - Example:\n" + + " delete id/ 12345678\n" + + "\n6. List Students\n" + + " - Purpose: Displays all students currently stored in the address book.\n" + + " - Command Format:\n" + + " list\n" + + " - Example:\n" + + " list\n" + + "\n7. Clear Data\n" + + " - Purpose: Clears all student data from the address book.\n" + + " - Command Format:\n" + + " clear\n" + + " - Example:\n" + + " clear\n" + + "\n8. Exit Application\n" + + " - Purpose: Exits the application.\n" + + " - Command Format:\n" + + " exit\n" + + " - Example:\n" + + " exit\n" + + "\n============================================================================================\n" + + "For more details, refer to the user guide: \n" + USERGUIDE_URL; private static final Logger logger = LogsCenter.getLogger(HelpWindow.class); private static final String FXML = "HelpWindow.fxml"; diff --git a/src/main/resources/view/HelpWindow.fxml b/src/main/resources/view/HelpWindow.fxml index e01f330de33..2fc068b4077 100644 --- a/src/main/resources/view/HelpWindow.fxml +++ b/src/main/resources/view/HelpWindow.fxml @@ -6,7 +6,7 @@ - + @@ -19,17 +19,17 @@ - + @@ -38,7 +38,7 @@ - +