Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Shulong] iP #467

Open
wants to merge 48 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
3b19ba1
Add Gradle support
May 24, 2020
cc6c420
Level-1
Aug 29, 2020
f13b06c
Level-2
Aug 29, 2020
2fae636
Level-3
Aug 29, 2020
1492099
Level-4
Aug 29, 2020
da4753a
A-TextUiTesting
Aug 29, 2020
974e054
Level-5
Aug 29, 2020
8adb9f2
Level-6
Aug 29, 2020
0f7a149
Level-7
Aug 30, 2020
52f0b98
merge branch-level-7
Aug 30, 2020
02639bc
Level-8
Aug 30, 2020
df5b0b0
A-MoreOOP
Sep 2, 2020
17e5b38
A-JUnit
Sep 3, 2020
e9da59c
A-Jar
Sep 3, 2020
9e01d9f
A-JavaDoc
Sep 3, 2020
da712d0
A-CodingStandard
Sep 4, 2020
bdc38e7
Level-9
Sep 4, 2020
782a52b
A-JavaDoc
Sep 4, 2020
c0e5707
A-CodingStandard
Sep 4, 2020
258d6a3
merge branch-A-JavaDoc
Sep 4, 2020
9aed463
merge confilct
Sep 4, 2020
1cb9417
current version
Sep 4, 2020
d2a5a1c
merge gardle files
Sep 4, 2020
a842d79
fixed merge with gradle
Sep 4, 2020
56f75db
A-Gradle
Sep 4, 2020
89551fe
Level-10
Sep 8, 2020
3b5b52d
A-Assertions
Sep 8, 2020
20b255c
A-CodeQuality
Sep 8, 2020
479fca4
Merge pull request #1 from DreamerDragon/branch-A-Assertions
DreamerDragon Sep 9, 2020
ce7907f
updated master branch
Sep 9, 2020
a8122c7
Merge pull request #2 from DreamerDragon/branch-A-CodeQuality
DreamerDragon Sep 9, 2020
3bf5aa3
BCD-Extension
Sep 9, 2020
abe3628
Merge branch 'master' into C-findDuplicates
DreamerDragon Sep 9, 2020
9944c9e
Merge pull request #3 from DreamerDragon/C-findDuplicates
DreamerDragon Sep 9, 2020
928832c
A-BetterGui
Sep 16, 2020
173d7bb
A-UserGuide
Sep 16, 2020
e5a4502
A-betterGui
Sep 16, 2020
b6cd165
updates master branch with Parser and ParserGUI classes
Sep 16, 2020
6dab289
A-BetterGui
Sep 16, 2020
ccf2246
Set theme jekyll-theme-architect
DreamerDragon Sep 16, 2020
92c2ab3
Finalise KaTo
Sep 17, 2020
df831bb
add in docs/_config.yml
Sep 17, 2020
c40eb7a
Added clear command in ParserGui and GUI class
Sep 27, 2020
2080a0e
Update UG with the clear feature
Sep 27, 2020
6bf9cec
Added javaDoc for the clear command
Sep 27, 2020
0ce5803
Fixed import spacing issues
Sep 30, 2020
21dc446
removed clear command from the user guide
Oct 3, 2020
81272a5
removed clear command from the user guide
Oct 3, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Duke project template
# duke.Duke project template

This is a project template for a greenfield Java project. It's named after the Java mascot _Duke_. Given below are instructions on how to use it.

Expand All @@ -15,7 +15,7 @@ Prerequisites: JDK 11, update Intellij to the most recent version.
1. Click `Open or Import`.
1. Select the project directory, and click `OK`
1. If there are any further prompts, accept the defaults.
1. After the importing is complete, locate the `src/main/java/Duke.java` file, right-click it, and choose `Run Duke.main()`. If the setup is correct, you should see something like the below:
1. After the importing is complete, locate the `src/main/java/duke.Duke.java` file, right-click it, and choose `Run duke.Duke.main()`. If the setup is correct, you should see something like the below:
```
Hello from
____ _
Expand Down
59 changes: 59 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
plugins {
id 'java'
id 'application'
//id 'checkstyle'
id "com.github.johnrengelman.shadow" version "6.0.0"
}

repositories {
mavenCentral()
}

dependencies {
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: '5.5.0'
testRuntimeOnly group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: '5.5.0'
}

dependencies {
String javaFxVersion = '11'

implementation group: 'org.openjfx', name: 'javafx-base', version: javaFxVersion, classifier: 'win'
implementation group: 'org.openjfx', name: 'javafx-base', version: javaFxVersion, classifier: 'mac'
implementation group: 'org.openjfx', name: 'javafx-base', version: javaFxVersion, classifier: 'linux'
implementation group: 'org.openjfx', name: 'javafx-controls', version: javaFxVersion, classifier: 'win'
implementation group: 'org.openjfx', name: 'javafx-controls', version: javaFxVersion, classifier: 'mac'
implementation group: 'org.openjfx', name: 'javafx-controls', version: javaFxVersion, classifier: 'linux'
implementation group: 'org.openjfx', name: 'javafx-fxml', version: javaFxVersion, classifier: 'win'
implementation group: 'org.openjfx', name: 'javafx-fxml', version: javaFxVersion, classifier: 'mac'
implementation group: 'org.openjfx', name: 'javafx-fxml', version: javaFxVersion, classifier: 'linux'
implementation group: 'org.openjfx', name: 'javafx-graphics', version: javaFxVersion, classifier: 'win'
implementation group: 'org.openjfx', name: 'javafx-graphics', version: javaFxVersion, classifier: 'mac'
implementation group: 'org.openjfx', name: 'javafx-graphics', version: javaFxVersion, classifier: 'linux'
}

test {
useJUnitPlatform()

testLogging {
events "passed", "skipped", "failed"

showExceptions true
exceptionFormat "full"
showCauses true
showStackTraces true
showStandardStreams = false
}
}

application {
mainClassName = "duke.Launcher"
}

shadowJar {
archiveBaseName = "duke"
archiveClassifier = null
}

run{
standardInput = System.in
}
Empty file added data/duke.txt
Empty file.
158 changes: 149 additions & 9 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,160 @@
# User Guide

## Features
KaTo Task Manager (KTM) is a desktop app for managing tasks,
optimized for use via a Chat Window with Ka To.
Ka To can keep track of all your remaining tasks,
and help you to finish the tasks on time.
At the same time, you could update Ka To to mark the tasks as done or delete them.
KTM helps you to be more aware of your schedule and become a better task manager.

## Features with commands
Notes about the command format:

- `+` represents typing down the information in order, without the `+` itself,
e.g. `Done + " " + 3` can be typed as `Done 3` in the send box
- `" "` represents a space,
e.g. `todo + " " + info` can be typed as `todo info` in the text box
- `Number` represents any number sequence of the task lists,
e.g. `Done 3` is one possible way of `Done + " " + Number`
- `info` represents any details provided for the task",
e.g. `todo eat` is one possible way of `todo + "_" + info`
- `time` represents any date target for the task and it must be in the format of "yyyy-MM-dd"
e.g. 2020-09-09 is one possible way of time

Feature List:
1. Checking for food left in fridge: `food`
2. Checking for allowance left in account: `allowance`
3. Adding a todo task: `todo + " " + info`
4. Adding a deadline task: `deadline + " " + info + "/by" + time`
5. Adding a event task: `event + " " + info + "/at" + time`
6. Deleting a task: `delete + " " + Number`
7. Marking a task as done: `done + " " + Number`
8. Finding relevant tasks: `find + " " + info`
9. Viewing the task list: `tasks`
10. Saying bye to KaTo: `bye`
11. Exiting KTM : `exit`


### Feature 1
Description of feature.
Checking for food left in fridge: `food`

## Usage
- Example of usage:
`food left`

### `Keyword` - Describe action
- Expected outcome:
KaTo will reply `"Only an apple pie"` in the window

Describe action and its outcome.
### Feature 2
Checking for allowance left in account: `allowance`

Example of usage:
- Example of usage:
`allowance left`

`keyword (optional arguments)`
- Expected outcome:
KaTo will reply `I have checked, it is 2000000 SGD` in the window

Expected outcome:
### Feature 3
Adding a todo task: `todo + " " + info`

- Example of usage:
`todo finish my ip`

- Expected outcome:
KaTo will add `todo finish my ip` to the list,
KaTo will inform you whether it is successful
and state the total number of tasks in the task list.

### Feature 4
Adding a deadline task: `deadline + " " + info + "/by" + time`
( The time format must be "yyyy-MM-dd" )
- Example of usage:
`deadline finish my ip /by 2020-09-17`

- Expected outcome:
KaTo will add `deadline finish my ip /by 2020-09-17` to the list,
KaTo will inform you whether it is added successfully
and state the total number of tasks in the task list.

### Feature 5
Adding a event task: `event + " " + info + "/at" + time`
( The time format must be "yyyy-MM-dd" )
- Example of usage:
`event finish my ip /at 2020-09-17`

- Expected outcome:
KaTo will add `event finish my ip /at 2020-09-17` to the list,
KaTo will inform you whether it is added successfully
and state the total number of tasks in the task list.

### Feature 6
Deleting a task: `delete + " " + Number`

- Example of usage:
`delete 3`

- Expected outcome:
KaTo will delete the task with sequence number 3 in the list.

Note:
(The number must be not be larger than the size of the current task list
and be a positive integer number)

KaTo will inform you whether it is successful and update the task list and storage.

### Feature 7
Marking a task as done: `done + " " + Number`

- Example of usage:
`done 3`

- Expected outcome:
KaTo will change the status of the respective task from a cross to a tick.

Note:
(The number must be not be larger than the size of the current task list
and be a positive integer number)

KaTo will inform you whether it is successful and update the task list and storage.

### Feature 8
Finding relevant tasks: `find + " " + info`

- Example of usage:
`find ip`

- Expected outcome:

KaTo will list out the relevant tasks that contain `info`.

### Feature 9
Viewing the task list: `tasks`

- Example of usage:
`tasks`

- Expected outcome:

KaTo will list out the current tasks in the task list and inform the user if it is empty.

### Feature 10

Saying bye to KaTo: `bye`

- Example of usage:
`bye`

- Expected outcome:

KaTo will print out the bye message to the user.

### Feature 11
Exiting KTM : `exit`

- Example of usage:
`exit`

- Expected outcome:

The user will exit the KTM application.


`outcome`
Binary file added docs/Ui.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions docs/_config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
theme: jekyll-theme-architect
Binary file added gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
6 changes: 6 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#Fri Sep 04 16:49:21 SGT 2020
distributionUrl=https\://services.gradle.org/distributions/gradle-6.2-all.zip
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
Loading