Skip to content

Commit

Permalink
Merge pull request #129 from MGRL2201/branch-edit-ug
Browse files Browse the repository at this point in the history
Update UG, build.gradle and exception messages
  • Loading branch information
eezj35 committed Oct 13, 2021
2 parents 10bfe97 + e814490 commit b0057f4
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 22 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ dependencies {
}

shadowJar {
archiveName = 'addressbook.jar'
archiveName = 'TuitiONE.jar'
}

defaultTasks 'clean', 'test'
31 changes: 16 additions & 15 deletions docs/UserGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,35 +9,35 @@ If you can type fast, TuitiONE can get your contact management tasks done faster
* Table of Contents
{:toc}

[comment]: <> (--------------------------------------------------------------------------------------------------------------------)
--------------------------------------------------------------------------------------------------------------------

[comment]: <> (## Quick start)
## Quick start

[comment]: <> (1. Ensure you have Java `11` or above installed in your Computer.)
1. Ensure you have Java `11` or above installed in your Computer.

[comment]: <> (1. Download the latest `TuitiONE.jar` from [here]&#40;https://github.com/AY2122S1-CS2103T-F13-4/tp/releases&#41;.)
1. Download the latest `TuitiONE.jar` from [here](https://github.com/AY2122S1-CS2103T-F13-4/tp/releases).

[comment]: <> (1. Copy the file to the folder you want to use as the _home folder_ for your TuitiONE.)
1. Copy the file to the folder you want to use as the _home folder_ for your TuitiONE.

[comment]: <> (1. Double-click the file to start the app. The GUI similar to the below should appear in a few seconds. Note how the app contains some sample data.<br>)
1. Double-click the file to start the app. The GUI similar to the below should appear in a few seconds. _Note how the app contains some sample data_.<br>

[comment]: <> ( ![Ui]&#40;images/Ui.png&#41;)
![Ui](images/Ui.png)

[comment]: <> (1. Type the command in the command box and press Enter to execute it. e.g. typing **`help`** and pressing Enter will open the help window.<br>)
1. Type the command in the command box and press Enter to execute it. e.g. typing **`help`** and pressing Enter will open the help window.<br>

[comment]: <> ( Some example commands you can try:)
Some example commands you can try:

[comment]: <> ( * **`list`** : Lists all contacts.)
* **`list`** : Lists all students.

[comment]: <> ( * **`add`**`n/John Doe p/98765432 e/johnd@example.com a/John street, block 123, #01-01` : Adds a contact named `John Doe` to the Address Book.)
* **`add`**`n/John Doe p/98765432 e/jd@gmail.com a/John street, block 123, #01-01 g/P2` : Adds a student named `John Doe` to the TuitiONE app.

[comment]: <> ( * **`delete`**`3` : Deletes the 3rd contact shown in the current list.)
* **`delete`**`3` : Deletes the 3rd student shown in the student list.

[comment]: <> ( * **`clear`** : Deletes all contacts.)
* **`clear`** : Deletes all data (students and lessons).

[comment]: <> ( * **`exit`** : Exits the app.)
* **`exit`** : Exits the app.

[comment]: <> (1. Refer to the [Features]&#40;#features&#41; below for details of each command.)
1. Refer to the [Features](#features) below for details of each command.

--------------------------------------------------------------------------------------------------------------------

Expand Down Expand Up @@ -240,3 +240,4 @@ Action | Format, Examples
**Find** | `find KEYWORD [MORE_KEYWORDS]`<br> e.g. `find James Jake`
**List** | `list`
**Help** | `help`
**Exit** | `exit`
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public class EnrollCommand extends Command {
public static final String MESSAGE_USAGE = COMMAND_WORD + ": Enrolls a specified student "
+ "from a given TuitiONE lesson\n"
+ "Parameters: INDEX (must be a positive integer) "
+ "LESSON_CODE\n"
+ "l/LESSON_CODE\n"
+ "Example: " + "enroll 1 " + PREFIX_LESSON + "Science-P5-Wed-1230";

public static final String MESSAGE_STUDENT_IN_LESSON = "%1$s is already enrolled in the existing %2$s";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class UnenrollCommand extends Command {
public static final String MESSAGE_USAGE = COMMAND_WORD + ": Unenroll a specified student "
+ "from a given TuitiONE lesson\n"
+ "Parameters: INDEX (must be a positive integer) "
+ "LESSON_CODE\n"
+ "l/LESSON_CODE\n"
+ "Example: " + "unenroll 1 " + PREFIX_LESSON + "Science-P5-Wed-1230";

public static final String MESSAGE_UNENROLL_STUDENT_SUCCESS = "Unenrolled Student: %1$s from Lesson: %2$s";
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/seedu/tuitione/model/lesson/Subject.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class Subject {
public static final String SUBJECT_VALIDATION_REGEX = "\\p{Alnum}+";
public static final int MAXIMUM_SUBJECT_LENGTH = 20;
public static final String SUBJECT_MESSAGE_CONSTRAINTS = String.format("Subject names should be alphanumeric and"
+ "within %1$d characters", MAXIMUM_SUBJECT_LENGTH);
+ " within %1$d characters", MAXIMUM_SUBJECT_LENGTH);

public final String value;

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/seedu/tuitione/model/student/Grade.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*/
public class Grade {
public static final String GRADE_MESSAGE_CONSTRAINTS = "Prefix should either be S (to denote secondary) "
+ "or P (to denote Primary)."
+ "or P (to denote Primary). "
+ "Level number should be from 1 to 6 for primary and 1 to 4 for secondary.";

public static final String[] VALID_GRADES = {"P1", "P2", "P3", "P4", "P5", "P6", "S1", "S2", "S3", "S4"};
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/seedu/tuitione/ui/LessonCard.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class LessonCard extends UiPart<Region> {
private static final String FXML = "LessonListCard.fxml";
private static final String STRING_FORMAT_SUBJECT = "Subject: \t%s";
private static final String STRING_FORMAT_GRADE = "Grade: \t%s";
private static final String STRING_FORMAT_DAY = "Day: \t\t%s";
private static final String STRING_FORMAT_DAY = "Day: \t%s";
private static final String STRING_FORMAT_TIME = "Time: \t%s - %s";
private static final String STRING_FORMAT_PRICE = "Price: \t%s";
/**
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/seedu/tuitione/ui/StudentCard.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class StudentCard extends UiPart<Region> {

private static final String FXML = "StudentListCard.fxml";
private static final String STRING_FORMAT_PARENT_CONTACT = "Parent's Contact: \t%s";
private static final String STRING_FORMAT_ADDRESS = "Address: \t\t\t%s";
private static final String STRING_FORMAT_ADDRESS = "Address: \t\t%s";
private static final String STRING_FORMAT_EMAIL = "Email Address: \t%s";
private static final String STRING_FORMAT_GRADE = "Grade: \t\t\t%s";
private static final String STRING_FORMAT_LESSON = "Lesson(s): \t";
Expand Down

0 comments on commit b0057f4

Please sign in to comment.