Skip to content

Commit 8805fef

Browse files
committed
Add User Guide
1 parent 27a4d83 commit 8805fef

6 files changed

Lines changed: 207 additions & 8 deletions

File tree

data/contact.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
/name jason /number 80804858 /address
55
/name yannick /number 0 /address trinidad and tobago
66
/name david /number 98128712 /address valencia, spain
7+
/name marouane /number 0 /address goodison park

docs/README.md

Lines changed: 197 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,209 @@
11
# User Guide
2+
Welcome to LukBot!
3+
4+
LukBot is here to help you keep track of your activities, as well as your friends!
5+
6+
When using LukBot, simply type 'help' if you are unsure of what you can do.
27

38
## Features
49

5-
### Feature 1
6-
Description of feature.
10+
### Managing Tasks
11+
LukBot offers task management! You can add, remove, view and search for specific tasks.
12+
You can also mark your tasks as done if you have completed them. LukBot also allows you to
13+
categorise your tasks into three types: To-dos, Deadlines and Events!
14+
15+
### Managing Contacts
16+
LukBot also offers contact management! You can add, remove, edit and remove contacts. Keeping track
17+
of your friends' phone numbers and addresses has never been easier!
18+
19+
## Commands
20+
21+
### Adding Tasks
22+
23+
* #### `todo` - Adds To-do
24+
25+
Adds a **To-do** to your task list.
26+
27+
Example of usage:
28+
29+
todo Homework
30+
31+
Expected outcome:
32+
33+
I have added the following task to your list:
34+
[T][ ] Homework
35+
There are 1 tasks in your list. I hope this pleases you.
736

8-
## Usage
37+
* #### `deadline` - Adds Deadline
938

10-
### `Keyword` - Describe action
39+
Adds a **Deadline** to your task list.
1140

12-
Describe action and its outcome.
41+
Example of usage:
1342

14-
Example of usage:
43+
deadline IP Submission /by 19/02/2021 2359
1544

16-
`keyword (optional arguments)`
45+
Expected outcome:
46+
47+
I have added the following task to your list:
48+
[D][ ] IP submission (by: 19-02-2021 2359)
49+
There are 2 tasks in your list. I hope this pleases you.
50+
51+
* #### `event` - Adds Event
52+
53+
Adds an **Event** to your task list.
54+
55+
Example of usage:
56+
57+
event Xmas Party /from 25/12/2021 1700 /to 25/12/2021 2300
1758

1859
Expected outcome:
1960

20-
`outcome`
61+
I have added the following task to your list:
62+
[E][ ] Xmas Party (from: 25-12-2021 1700 - 25-12-2021 2300)
63+
There are 3 tasks in your list. I hope this pleases you.
64+
65+
### Managing Task List
66+
67+
* #### `delete` - Deletes Task
68+
69+
**Delete** a task from your task list.
70+
71+
Example of usage:
72+
73+
delete 2
74+
75+
Expected outcome:
76+
77+
I have removed the following task from your list:
78+
[D][ ] IP submission (by: 19-02-2021 2359)
79+
Does this bring you the satisfaction you so crave?
80+
81+
* #### `done` - Checks Task
82+
83+
Marks a task from your task list as **Done**.
84+
85+
Example of usage:
86+
87+
done 1
88+
89+
Expected outcome:
90+
91+
Congratulations on conquering this task:
92+
[T][X] Homework
93+
You are one step closer to victory
94+
95+
* #### `find` - Finds Tasks
96+
97+
**Finds** tasks from your task list containing a *keyword*.
98+
99+
Example of usage:
100+
101+
find Xmas
102+
103+
Expected outcome:
104+
105+
Here are the tasks that fit your search criteria:
106+
[E][ ] Xmas Party (from: 25-12-2021 1700 - 25-12-2021 2300)
107+
I can only pray that I have been of use to you.
108+
109+
* #### `list` - Lists Tasks
110+
111+
**List** all tasks from your task list.
112+
113+
Example of usage:
114+
115+
list
116+
117+
Expected outcome:
118+
119+
Here are the tasks in your list:
120+
1. [T][X] Homework
121+
2. [E][ ] Xmas Party (from: 25-12-2021 1700 - 25-12-2021 2300)
122+
Do what you will with this information.
123+
124+
### Managing Contacts
125+
126+
* #### `contact add` - Adds Contact
127+
128+
**Adds** a contact to your contact list.
129+
130+
Examples of usage:
131+
132+
contact add /name Romelu /number 98765432 /address San Siro, Milan, Italy
133+
134+
contact add /name Fellaini /address Goodison Park, Liverpool, England
135+
136+
contact add /name Richard Tan /number 98128723
137+
138+
Expected outcome:
139+
140+
I have added a new companion to your list of allies:
141+
Romelu [Num: 98765432] [Address: San Siro, Milan, Italy]
142+
Keep your friends close, and your enemies closer.
143+
144+
I have added a new companion to your list of allies:
145+
Fellaini [Address: Goodison Park, Liverpool, England]
146+
Keep your friends close, and your enemies closer.
147+
148+
I have added a new companion to your list of allies:
149+
Richard Tan [Num: 98128723]
150+
Keep your friends close, and your enemies closer.
151+
152+
* #### `contact delete` - Deletes Contact
153+
154+
**Delete** a contact from your contact list.
155+
156+
Examples of usage:
157+
158+
contact delete 3
159+
160+
Expected outcome:
161+
162+
Friends turn to foes in a blink of an eye. I shall remove:
163+
Richard Tan [Num: 98128723]
164+
I pray for your safety.
165+
166+
* #### `contact edit` - Edits Contact
167+
168+
**Edits** a contact from your contact list.
169+
170+
Examples of usage:
171+
172+
contact edit 1 /name Romelu Lukaku
173+
174+
contact edit 2 /number 91827364
175+
176+
contact edit 2 /address UTown Residence
177+
178+
Expected outcome:
179+
180+
Your mistake has been forgiven. Do check if this is the correct contact:
181+
Romelu Lukaku [Num: 98765432] [Address: San Siro, Milan, Italy]
182+
Feel free to make as many mistakes as you please. I am here to resolve all.
183+
184+
Your mistake has been forgiven. Do check if this is the correct contact:
185+
Fellaini [Num: 91827364] [Address: Goodison Park, Liverpool, England]
186+
Feel free to make as many mistakes as you please. I am here to resolve all.
187+
188+
Your mistake has been forgiven. Do check if this is the correct contact:
189+
Fellaini [Num: 91827364] [Address: UTown Residence]
190+
Feel free to make as many mistakes as you please. I am here to resolve all.
191+
192+
* #### `contact list` - List Contacts
193+
194+
**Lists** all contacts from your contact list.
195+
196+
Examples of usage:
197+
198+
contact list
199+
200+
Expected outcome:
201+
202+
Here are your reliable comrades:
203+
1. Romelu Lukaku [Num: 98765432] [Address: San Siro, Milan, Italy]
204+
2. Fellaini [Num: 91827364] [Address: UTown Residence]
205+
Do not fear to call upon their friendship.
206+
207+
## Acknowledgement
208+
209+
Reused @banchiang code for GUI implementation.

docs/Ui.png

81.9 KB
Loading

src/main/java/duke/DialogBox.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ public class DialogBox extends HBox {
2525
@FXML
2626
private ImageView displayPicture;
2727

28+
//@@ banchiang-reused
29+
//Reused from https://github.com/banchiang/ip/blob/master/src/main/java/duke/DialogBox.java
2830
private DialogBox(String text, Image img) {
2931
try {
3032
FXMLLoader fxmlLoader = new FXMLLoader(MainWindow.class.getResource("/view/DialogBox.fxml"));
@@ -37,6 +39,7 @@ private DialogBox(String text, Image img) {
3739
dialog.setText(text);
3840
displayPicture.setImage(img);
3941
}
42+
//@@ banchiang
4043

4144
/**
4245
* Flips the dialog box such that the ImageView is on the left and text on the right.

src/main/java/duke/Main.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ public class Main extends Application {
1515

1616
private Duke duke = new Duke();
1717

18+
//@@ banchiang-reused
19+
//Reused from https://github.com/banchiang/ip/blob/master/src/main/java/duke/Main.java
1820
@Override
1921
public void start(Stage stage) {
2022
try {
@@ -28,4 +30,5 @@ public void start(Stage stage) {
2830
e.printStackTrace();
2931
}
3032
}
33+
//@@ banchiang
3134
}

src/main/java/duke/MainWindow.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ public void setDuke(Duke d) {
4343
duke = d;
4444
}
4545

46+
//@@ banchiang-reused
47+
//Reused from https://github.com/banchiang/ip/blob/master/src/main/java/duke/MainWindow.java
4648
/**
4749
* Creates two dialog boxes, one echoing user input and the other containing Duke's reply and then appends them to
4850
* the dialog container. Clears the user input after processing.
@@ -67,4 +69,5 @@ public void run() {
6769
timer.schedule(timertask, 800);
6870
}
6971
}
72+
//@@ banchiang
7073
}

0 commit comments

Comments
 (0)