Skip to content

Commit

Permalink
Merge pull request #240 from nuyer/ug-cleanup
Browse files Browse the repository at this point in the history
Add page break to User Guide
  • Loading branch information
nuyer committed Apr 15, 2024
2 parents 9e6ddf7 + 251a576 commit 6f1e2b1
Showing 1 changed file with 42 additions and 68 deletions.
110 changes: 42 additions & 68 deletions docs/UserGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,13 @@ If you relate to this problem we identified, then NetConnect might be just right
- [Exiting the program : `exit`](#exiting-the-program-exit)
- [Saving the data](#saving-the-data)
- [Editing the data file](#editing-the-data-file)
- [Future Implementations](#future-implementations)
- [Truncate text in GUI](#truncate-text-in-gui)
- [Planned Enhancements](#planned-enhancements)
- [FAQ](#faq)
- [Known issues](#known-issues)
- [Command summary](#command-summary)

<div style="page-break-after: always;"></div>

# Quick start

1. Ensure you have Java `11` or above installed in your Computer.
Expand All @@ -61,6 +62,7 @@ If you relate to this problem we identified, then NetConnect might be just right
1. Refer to the [Features](#features) below for details of each command.

--------------------------------------------------------------------------------------------------------------------
<div style="page-break-after: always;"></div>

# Features

Expand All @@ -86,6 +88,8 @@ If you relate to this problem we identified, then NetConnect might be just right
* If you are using a PDF version of this document, be careful when copying and pasting commands that span multiple lines as space characters surrounding line-breaks may be omitted when copied over to the application.
</box>

<div style="page-break-after: always;"></div>

## Data Constraints

**Constraints:**
Expand All @@ -105,7 +109,7 @@ Here are the constraints for each field in the application:
* `TERMS OF SERVICE`: Terms of service can take any format.
* `PRODUCTS`: Product names should only contain alphanumeric characters and spaces.

<section id="help"><br>
<div style="page-break-after: always;"></div>

## Viewing help : `help`

Expand All @@ -115,10 +119,8 @@ Format: `help`

![help message](images/helpMessage.png)

</section>


<section id="add">
<div style="page-break-after: always;"></div>

## Adding a person: `add`

Expand All @@ -145,10 +147,8 @@ Format: `add n/NAME p/PHONE_NUMBER e/EMAIL a/ADDRESS role/ROLE [r/remark] [t/TAG

<box type="info">
<Strong>Info:</Strong> NetConnect checks for unique profiles by its NAME, PHONE NUMBER and EMAIL. It does not allow you to create two profiles with identical name, phone number and email.
</box>
<br>

<section id="delete">
<div style="page-break-after: always;"></div>

## Deleting a person : `delete`

Expand All @@ -173,9 +173,7 @@ Examples:
![Delete Warning](images/deletewarning.png)
</box> <br>

</section>

<section id="list">
<div style="page-break-after: always;"></div>

## Listing all contacts : `list`

Expand All @@ -184,9 +182,7 @@ Shows a list of all contacts in the address book.
Format: `list`
![list](images/list.png)

</section>

<section id="edit">
<div style="page-break-after: always;"></div>

## Editing a person : `edit`

Expand All @@ -208,9 +204,7 @@ Examples:
![EditResultExample](images/editExample.png)
* `edit i/2 n/Betsy Crower t/` Edits the name of the person with ID of 2 to be `Betsy Crower` and clears all existing tags.

</section>

<section id="find"> <br>
<div style="page-break-after: always;"></div>

## Locating Contacts : `find`

Expand Down Expand Up @@ -255,9 +249,7 @@ Stacking find by role and tag example

![result for 'find employee friends'](images/stackEmployeeFriends.png)

</section>

<section id="clear">
<div style="page-break-after: always;"></div>

## Clearing all entries : `clear`

Expand All @@ -272,10 +264,7 @@ Format: `clear`
![result for 'clear warning'](images/ClearWarning.png)
</box>


</section> <br>

<section id="relate">
<div style="page-break-after: always;"></div>

## Create Relations between Profiles : `relate`

Expand All @@ -287,9 +276,7 @@ Example: `relate i/1 i/3` creates a relation between the profiles with ID of 1 a

![result for 'relate result'](images/relateResult.png)

</section>

<section id="unrelate">
<div style="page-break-after: always;"></div>

## Remove Relations between Profiles : `unrelate`

Expand All @@ -301,10 +288,7 @@ Example: `unrelate i/1 i/23` removes a relation between the profiles with ID of

![result for 'unrelate result'](images/unrelateResult.png)


</section>

<section id="showrelated">
<div style="page-break-after: always;"></div>

## Show Relations Associated to a Person : `showrelated`

Expand All @@ -320,17 +304,12 @@ Example: `showrelated i/1` shows all relations between the profile with ID 1 and

![result for 'showrelated result'](images/showrelatedResult.png)

</section>

<section id="open-on-last-state">
<div style="page-break-after: always;"></div>

## Open on Last State
With every change to the command input, NetConnect saves and updates the command input in a separate file. When the app closes and is opened again, the last command present before closure will be retrieved from the separate file and input into the command field (if any). This way, you never have to worry about losing progress!

</section>


<section id="export">
<div style="page-break-after: always;"></div>

## Export view to CSV File : `export`
Retrieve information on a group of profiles at once with this function! This can be useful for consolidating all the emails or contact number at once, or to share information with third parties.
Expand Down Expand Up @@ -371,40 +350,31 @@ Step 2: `export client.csv`
The CSV file named clients.csv containing all client contacts is exported to a folder on your laptop located within the same directory as the NetConnect application.
![result for 'CSV file'](images/csvfile.png)

</section>

<section id="exit-program">
<div style="page-break-after: always;"></div>

## Exiting the program : `exit`

Exits the program.

Format: `exit`

</section>


<section id="saving-the-data">
<div style="page-break-after: always;"></div>

## Saving the data

NetConnect data are saved in the hard disk automatically after any command that changes the data. There is no need to save manually.

</section>


<section id="editing-the-data-file">

## Editing the data file

NetConnect data are saved automatically as a JSON file `[JAR file location]/data/netconnect.json`. Advanced users are welcome to update data directly by editing that data file.

**Caution:**
If your changes to the data file makes its format invalid, NetConnect will discard all data and start with an empty data file at the next run. Hence, it is recommended to take a backup of the file before editing it.<br> Furthermore, certain edits can cause the NetConnect to behave in unexpected ways (e.g., if a value entered is outside the acceptable range). Therefore, edit the data file only if you are confident that you can update it correctly.

</section>
--------------------------------------------------------------------------------------------------------------------

<div style="page-break-after: always;"></div>

# Planned Enhancements
The NetConnect team is working on new features and fixes for you, but they are unfortunately unavailable in this current implementation. We intend to have future fixes for these occurences below!

Expand All @@ -419,6 +389,8 @@ Further details on the planned enhancements can be found in the Developer Guide.

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

<div style="page-break-after: always;"></div>

# FAQ

**Q**: How do I transfer my data to another Computer?<br>
Expand All @@ -444,20 +416,22 @@ Further details on the planned enhancements can be found in the Developer Guide.

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

<div style="page-break-after: always;"></div>

# Command summary
| Action | Format | Examples |
|--------------------------|-----------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| **Help** | `help` | `help` |
| **Add (Employee)** | `add n/NAME p/PHONE_NUMBER e/EMAIL a/ADDRESS role/Employee [t/TAG] [dept/DEPARTMENT] [job/JOB] [skills/SKILL1] [skills/SKILL2] ` | `add n/Bob Ye p/8928732 e/[email protected] a/Blk 11, Clementi Ave 1, #03-32 t/friends t/coreTeam r/requires follow up on pay raise role/employee dept/HR job/Manager skills/Java` |
| **Add (Client)** | `add n/NAME p/PHONE_NUMBER e/EMAIL a/ADDRESS role/Client [t/TAG] [pref/PREFERENCES] [prod/PRODUCT 1] [prod/PRODUCT 2]` | `add n/Benson Mayer p/87728933 e/[email protected] a/311, Clementi Ave 2, #02-25 role/Client pref/Dairy-free prod/Sourdough bread prod/Raisin Bread` |
| **Add (Supplier)** | `add n/NAME p/PHONE_NUMBER e/EMAIL a/ADDRESS role/Supplier [t/TAG] [tos/TERMS OF SERVICE] [prod/PRODUCT 1] [prod/PRODUCT 2]` | `add n/Fiona Kunz p/94824272 e/[email protected] a/little tokyo role/Supplier tos/Delivery within 2 weeks prod/Office Supplies prod/Furniture` |
| **List** | `list` | `list` |
| **Delete** | `delete [i/ID] [n/NAME]` | `delete i/123`, `delete n/John Doe` |
| **Edit** | `add n/NAME p/PHONE_NUMBER e/EMAIL a/ADDRESS role/ROLE [t/TAG]…​` (other fields specific to the role) | `edit i/123 n/James Lee e/[email protected]` |
| **Find** | `find [n/NAME] [t/TAG] [p/PHONE] [role/ROLE] [r/REMARK]` | `find role/employee` , followed by `find n/Bob` to stack filters |
| **Relate Profiles** | `relate i/ID i/ID` | `relate i/1 i/2` |
| **Unrelate Profiles** | `unrelate i/ID i/ID` | `relate i/1 i/2` |
| **Show related Profile** | `showrelated i/ID` | `showrelated i/2` |
| **Export** | `export [filename]` | `export ClientInfo.csv` |
| **Clear** | `clear` | `clear` |
| **Exit** | `exit` | `exit` |
| Action | Format | Examples |
|--------------------------|----------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| **Help** | `help` | `help` |
| **Add (Employee)** | `add n/NAME p/PHONE_NUMBER e/EMAIL a/ADDRESS role/Employee [r/REMARK] [t/TAG]... [dept/DEPARTMENT] [job/JOB] [skills/SKILL]... ` | `add n/Bob Ye p/8928732 e/[email protected] a/Blk 11, Clementi Ave 1, #03-32 t/friends t/coreTeam r/requires follow up on pay raise role/employee dept/HR job/Manager skills/Java` |
| **Add (Client)** | `add n/NAME p/PHONE_NUMBER e/EMAIL a/ADDRESS role/Client [r/REMARK] [t/TAG]... [pref/PREFERENCES] [prod/PRODUCT]...` | `add n/Benson Mayer p/87728933 e/[email protected] a/311, Clementi Ave 2, #02-25 role/Client pref/Dairy-free prod/Sourdough bread prod/Raisin Bread` |
| **Add (Supplier)** | `add n/NAME p/PHONE_NUMBER e/EMAIL a/ADDRESS role/Supplier [r/REMARK] [t/TAG].. [tos/TERMS OF SERVICE] [prod/PRODUCT]...` | `add n/Fiona Kunz p/94824272 e/[email protected] a/little tokyo role/Supplier tos/Delivery within 2 weeks prod/Office Supplies prod/Furniture` |
| **List** | `list` | `list` |
| **Delete** | `delete [i/ID] [n/NAME]` | `delete i/123`, `delete n/John Doe` |
| **Edit** | `edit i/ID [n/NAME] [p/PHONE_NUMBER] [e/EMAIL] [a/ADDRESS] [r/REMARK] [t/TAG]…​` (other fields specific to the role) | `edit i/123 n/James Lee e/[email protected]` |
| **Find** | `find [n/NAME] [t/TAG] [p/PHONE_NUMBER] [role/ROLE] [r/REMARK]` | `find role/employee` , followed by `find n/Bob` to stack filters |
| **Relate Profiles** | `relate i/ID i/ID` | `relate i/1 i/2` |
| **Unrelate Profiles** | `unrelate i/ID i/ID` | `relate i/1 i/2` |
| **Show related Profile** | `showrelated i/ID` | `showrelated i/2` |
| **Export** | `export [filename]` | `export ClientInfo.csv` |
| **Clear** | `clear` | `clear` |
| **Exit** | `exit` | `exit` |

0 comments on commit 6f1e2b1

Please sign in to comment.