Skip to content

Commit

Permalink
Merge pull request #310 from ForAeons/ug-add-screenshots
Browse files Browse the repository at this point in the history
docs: add screenshots to user guide
  • Loading branch information
saiutkarsh33 authored Apr 15, 2024
2 parents 92e13b7 + a2a82a5 commit fb84526
Show file tree
Hide file tree
Showing 6 changed files with 145 additions and 13 deletions.
153 changes: 140 additions & 13 deletions docs/UserGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,16 @@ The help window is resizable, so you can {{ macros.semiBold('easily reposition a
* On macOS, you can use the keyboard shortcut: {{ macros.keyFormat('⌘Cmd') }} + {{ macros.keyFormat('`') }}, to switch between windows quickly.
</box>

<box type="success" light>

**Screenshots of using the `help` command:**

<span class="semi-bold">#g#Help window:##</span>

<img src="images/ug-screenshots/help.png" alt="help window" class="fit-container"/>

</box>

{{ newPage }}

### <i class="fa-solid fa-chalkboard"></i> Name/Rename CS course : `setcrs`
Expand All @@ -359,25 +369,19 @@ The course code is shown at the top of TAPro's main window.
Course codes are case-insensitive.

</box>
<box type="warning" light>

**Course code should follow the format `XX1234Y`, where `Y` is optional:**
<box type="success" light>

<box type="info" light>
**Screenshots of using the `help` command:**

`X` and `Y` can be any letters, while `1234` can be any four-digit number.
</box>
<box type="tip" light>
<span class="semi-bold">#g#Before running `setcrs` command:##</span>

Course code is meant for CS coded courses, hence only two prefix letters are allowed.
</box>
<img src="images/ug-screenshots/setcrs_before.png" alt="before running set course command" class="fit-container"/>

<box type="wrong" light>
<span class="semi-bold">#g#After running `setcrs` command:##</span>

When an invalid course code is entered, the following error message appears:
<img src="images/ug-screenshots/setcrs_after.png" alt="after running set course command" class="fit-container"/>

<img src="images/ug/setcrs_error.png" alt="Setcrs Error" class="rounded-image" width="800px"/>
</box>
</box>

{{ newPage }}
Expand Down Expand Up @@ -458,7 +462,22 @@ If a student is undertaking a double degree programme, you can use a comma to se
* `addstu n/Betsy Crowe nn/E0123456 t/friend e/betsycrowe@example.com m/Mathematics, Physics p/1234567 t/club`

* `addstu n/Betsy Crowe nn/E0123456`
</box>

</box>

<box type="success" light>

**Screenshots of using the `addstu` command:**

<span class="semi-bold">#g#Before running `addstu` command:##</span>

<img src="images/ug-screenshots/addstu_before.png" alt="before running add student command" class="fit-container"/>

<span class="semi-bold">#g#After running `addstu` command:##</span>

<img src="images/ug-screenshots/addstu_after.png" alt="after running add student command" class="fit-container"/>

</box>

{{ newPage }}

Expand All @@ -473,6 +492,20 @@ Shows a list of all persons in the contact book.

If there are additional arguments behind `list` we will simply ignore them.

<box type="success" light>

**Screenshots of using the `list` command:**

<span class="semi-bold">#g#Before running `list` command:##</span>

<img src="images/ug-screenshots/list_before.png" alt="before running list student command" class="fit-container"/>

<span class="semi-bold">#g#After running `list` command:##</span>

<img src="images/ug-screenshots/list_after.png" alt="after running list student command" class="fit-container"/>

</box>

{{ newPage }}

### <i class="fa-solid fa-user-pen"></i> Editing a student : `edit`
Expand Down Expand Up @@ -520,6 +553,20 @@ Otherwise, TAPro will parse the input as adding multiple tags, which may lead to
This command differs from most other commands that uses `NUSNET` to identify a student. This command uses the index number shown in the displayed person list to identify the student to be edited.
</box>

<box type="success" light>

**Screenshots of using the `edit` command:**

<span class="semi-bold">#g#Before running `edit` command:##</span>

<img src="images/ug-screenshots/edit_before.png" alt="before running edit student command" class="fit-container"/>

<span class="semi-bold">#g#After running `edit` command:##</span>

<img src="images/ug-screenshots/edit_after.png" alt="after running edit student command" class="fit-container"/>

</box>

{{ newPage }}

### <i class="fa-solid fa-magnifying-glass"></i> Locating students by name: `find`
Expand Down Expand Up @@ -608,6 +655,20 @@ Both `KEYWORD` and `[MORE_KEYWORDS]…​` accept alphanumeric and special symbo
</box>
</box>

<box type="success" light>

**Screenshots of using the `find` command:**

<span class="semi-bold">#g#Before running `find` command:##</span>

<img src="images/ug-screenshots/find_before.png" alt="before running find student command" class="fit-container"/>

<span class="semi-bold">#g#After running `find` command:##</span>

<img src="images/ug-screenshots/find_after.png" alt="after running find student command" class="fit-container"/>

</box>

{{ newPage }}

### <i class="fa-solid fa-square-check"></i> Marking a student's attendance for a given week by their NUSNet ID: `mark`
Expand All @@ -623,6 +684,20 @@ Marks a student's attendance for a particular week.
**#g#Example:##** `mark nn/E1234567 wk/3`
</box>

<box type="success" light>

**Screenshots of using the `mark` command:**

<span class="semi-bold">#g#Before running `mark` command:##</span>

<img src="images/ug-screenshots/mark_before.png" alt="before running mark student attendance command" class="fit-container"/>

<span class="semi-bold">#g#After running `mark` command:##</span>

<img src="images/ug-screenshots/mark_after.png" alt="after running mark student attendance command" class="fit-container"/>

</box>

{{ newPage }}

### <i class="fa-solid fa-square-xmark"></i> Unmarking a student's attendance for a given week by their NUSNet ID: `unmark`
Expand All @@ -639,6 +714,20 @@ Unmarks a student's attendance for a particular week.
**#g#Example:##** `unmark nn/E1234567 wk/3`
</box>

<box type="success" light>

**Screenshots of using the `unmark` command:**

<span class="semi-bold">#g#Before running `unmark` command:##</span>

<img src="images/ug-screenshots/unmark_before.png" alt="before running unmark student attendance command" class="fit-container"/>

<span class="semi-bold">#g#After running `unmark` command:##</span>

<img src="images/ug-screenshots/unmark_after.png" alt="after running unmark student attendance command" class="fit-container"/>

</box>

{{ newPage }}

### <i class="fa-solid fa-trash"></i> Deleting a student: `delstu`
Expand All @@ -664,6 +753,20 @@ Deletes the specified student from the contact book.
If you cannot remember your student's NUSNet ID, you could use `find Betsy` or `list` followed by `delstu nn/<Betsy's NUSNET>` to find and delete the student.
</box>

<box type="success" light>

**Screenshots of using the `delstu` command:**

<span class="semi-bold">#g#Before running `delstu` command:##</span>

<img src="images/ug-screenshots/delstu_before.png" alt="before running delete student command" class="fit-container"/>

<span class="semi-bold">#g#After running `delstu` command:##</span>

<img src="images/ug-screenshots/delstu_after.png" alt="after running delete student command" class="fit-container"/>

</box>

{{ newPage }}

### <i class="fa-solid fa-broom"></i> Clearing all entries : `clear`
Expand All @@ -675,6 +778,20 @@ Clears all entries from the contact book.
**Format: `clear`**
</box>

<box type="success" light>

**Screenshots of using the `clear` command:**

<span class="semi-bold">#g#Before running `clear` command:##</span>

<img src="images/ug-screenshots/clear_before.png" alt="before running clear TAPro command" class="fit-container"/>

<span class="semi-bold">#g#After running `clear` command:##</span>

<img src="images/ug-screenshots/clear_after.png" alt="after running clea TAPro command" class="fit-container"/>

</box>

{{ newPage }}

### <i class="fa-solid fa-right-from-bracket"></i> Exiting the program : `exit`
Expand All @@ -686,6 +803,16 @@ Exits the program.
**Format: `exit`**
</box>

<box type="success" light>

**Screenshots of using the `exit` command:**

<span class="semi-bold">#g#Before running `exit` command:##</span>

<img src="images/ug-screenshots/exit_before.png" alt="before running exit TAPro command" class="fit-container"/>

</box>

{{ newPage }}

### <i class="fa-solid fa-wand-magic-sparkles"></i> Autocomplete
Expand Down
Binary file modified docs/images/help_window_ui.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/main_window_ui.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/ug-screenshots/edit_after.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/ug-screenshots/edit_before.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions docs/stylesheets/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -182,3 +182,8 @@ h6 {
border-radius: 10px;
overflow: hidden;
}

.fit-container {
width: 100%;
object-fit: contain;
}

0 comments on commit fb84526

Please sign in to comment.