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

[Lim Yu Long] ip #634

Open
wants to merge 51 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
d839859
Add Gradle support
May 24, 2020
eec5f1f
Level-1
yulonglim Aug 18, 2021
e5177f0
Level-1
yulonglim Aug 18, 2021
6328329
Level-2
yulonglim Aug 18, 2021
df8688b
Level-3
yulonglim Aug 18, 2021
c66222c
Level-4
yulonglim Aug 18, 2021
4e953c0
Level-4
yulonglim Aug 18, 2021
9e177ea
Level-6
yulonglim Aug 18, 2021
c6600c4
Added options to save file + more OOP
yulonglim Aug 25, 2021
ec68756
Second week work
yulonglim Aug 25, 2021
bc9975c
Merge pull request #1 from yulonglim/branch-Level-7
yulonglim Aug 25, 2021
b220aca
Added gradle support
yulonglim Aug 31, 2021
e9865c3
Merge pull request #2 from yulonglim/add-gradle-support
yulonglim Aug 31, 2021
1c62cc6
Added gui
yulonglim Aug 31, 2021
501bae5
Update build.gradle
yulonglim Aug 31, 2021
546cdf1
Merge branch 'master' into branch-Level-10
yulonglim Aug 31, 2021
30d2353
Merge pull request #3 from yulonglim/branch-Level-10
yulonglim Aug 31, 2021
1567d4d
Update Controller.java
yulonglim Aug 31, 2021
281f074
Updated readme
yulonglim Sep 1, 2021
65ecfad
Merge pull request #4 from yulonglim/Use-GFMD
yulonglim Sep 1, 2021
2f476f2
Update README.md
yulonglim Sep 1, 2021
503fa60
Update README.md
yulonglim Sep 2, 2021
1ad1526
Merge pull request #5 from yulonglim/Use-GFMD-1
yulonglim Sep 2, 2021
f46338a
Merge pull request #6 from yulonglim/Use-GFMD
yulonglim Sep 2, 2021
864e258
Current find is case sensitive
yulonglim Sep 5, 2021
ead486c
Merge pull request #8 from yulonglim/A-Assertions
yulonglim Sep 5, 2021
f08b6f3
Current Code is not of high quality
yulonglim Sep 7, 2021
08ca499
Merge pull request #9 from yulonglim/A-CodeQuality
yulonglim Sep 7, 2021
0340b8a
Current Code does not allow for updating of task
yulonglim Sep 7, 2021
1ba4022
Merge pull request #10 from yulonglim/C-update
yulonglim Sep 7, 2021
0c5c99b
Current Code does not allow for updating of task
yulonglim Sep 7, 2021
7e17e7f
Merge pull request #11 from yulonglim/C-update
yulonglim Sep 7, 2021
b5c99c3
Ui.png added
yulonglim Sep 14, 2021
6dd13f2
Added User Guide
yulonglim Sep 14, 2021
db716a6
Updated UserGuide
yulonglim Sep 14, 2021
3623e91
Improved code coverage for certain use case
yulonglim Sep 14, 2021
ea2de4a
Updated some method headers to reflect changes from 2103 bot
yulonglim Sep 14, 2021
3f00b07
Updated code to be able to build and run at java 11
yulonglim Sep 14, 2021
3121a7a
Current code requires users to press load at first run
yulonglim Sep 14, 2021
6634b2a
Merge pull request #13 from yulonglim/A-UserGuide
yulonglim Sep 14, 2021
121c99f
added inline text
yulonglim Sep 16, 2021
297c3e9
Merge pull request #14 from yulonglim/Use-GFMD
yulonglim Sep 16, 2021
ddae27e
Current code had a small bug due to previous update which caused some…
yulonglim Oct 2, 2021
38f6f32
Merge remote-tracking branch 'origin/master'
yulonglim Oct 2, 2021
23edda1
Update Controller.java
yulonglim Oct 2, 2021
770f309
DukeTest file was moved by accident during one of the updates and was…
yulonglim Oct 2, 2021
96f960a
Merge remote-tracking branch 'origin/master'
yulonglim Oct 2, 2021
a57ae3a
TaskList.java does not have javadocs
yulonglim Oct 11, 2021
3639cac
Storage load() method was too long and had parsing elements written in
yulonglim Oct 11, 2021
b022b4f
Cleaned up code
yulonglim Oct 11, 2021
c340be3
More abstraction done to make the code less nested given feedback fro…
yulonglim Oct 12, 2021
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
55 changes: 31 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,31 @@
# 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.

## Setting up in Intellij

Prerequisites: JDK 11, update Intellij to the most recent version.

1. Open Intellij (if you are not in the welcome screen, click `File` > `Close Project` to close the existing project first)
1. Open the project into Intellij as follows:
1. Click `Open`.
1. Select the project directory, and click `OK`.
1. If there are any further prompts, accept the defaults.
1. Configure the project to use **JDK 11** (not other versions) as explained in [here](https://www.jetbrains.com/help/idea/sdk.html#set-up-jdk).<br>
In the same dialog, set the **Project language level** field to the `SDK default` option.
3. After that, locate the `src/main/java/Duke.java` file, right-click it, and choose `Run Duke.main()` (if the code editor is showing compile errors, try restarting the IDE). If the setup is correct, you should see something like the below as the output:
```
Hello from
____ _
| _ \ _ _| | _____
| | | | | | | |/ / _ \
| |_| | |_| | < __/
|____/ \__,_|_|\_\___|
```
# DukePro

DukePro frees your mind of having to remember things you need to do. It's,

- easy to learn
- ~~FAST~~ _SUPER FAST_ to use

All you need to do is,

download it from [here](https://github.com/yulonglim/ip/archive/refs/heads/master.zip).
1. click load.
2. add your tasks.
3. let it manage your tasks for you 😉
And it is FREE!

Features:

- [x] Managing tasks
- [ ] Managing deadlines
- [ ] Reminders


If you Java programmer, you can use it to practice Java too. Here's the `main` method:

```java
public class Main {
public static void main(String[] args) {
Application.launch(MainApp.class, args);
}
}
```
62 changes: 62 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
plugins {
id 'java'
id 'application'
id 'com.github.johnrengelman.shadow' version '5.1.0'
}

group 'org.example'
version '1.0-SNAPSHOT'

repositories {
mavenCentral()
}



test {
useJUnitPlatform()

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

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

dependencies {
implementation 'org.junit.jupiter:junit-jupiter:5.7.0'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.7.0'

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'
}

application {
mainClassName = "duke.Launcher"
}

shadowJar {
archiveBaseName = "duke"
archiveClassifier = null
}

run{
standardInput = System.in
}
98 changes: 88 additions & 10 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,106 @@

## Features

### Feature-ABC
### Add Task

Description of the feature.
Add your task to the list with the inputs you give

### Feature-XYZ
### Complete Task

Description of the feature.
Mark task that have been completed

### Find Task

Filter your list for specific tasks

### Update Task

Made an error? no worries simply update the task through the update tab

### Delete Task

Easily delete any task that have expired/done

## Usage

### `Keyword` - Describe action
### `Gui Based` - No long commands needed to add items

This bot allows for simple entries in the correct text field

### Example of add Task:

type: `T`

description: `Cook Lunch`

date:

Expected outcome:

Todo task of description cook lunch added to the list

```
Here are the tasks in your list:
1. [T][ ] Cook Lunch
```
### Example of Complete Task:

index: `1`

Expected outcome:

Task marked with 1 marked as completed

Describe the action and its outcome.
```
Here are the tasks in your list:
1. [T][X] Cook Lunch
```
### Example of find Task:

filter word: `cook`

Example of usage:
Expected outcome:

`keyword (optional arguments)`
list will now only show task with "cook" in it (Case-insensitive

```
Here are the matching tasks in your list:
1. [T][X] Cook Lunch
Press load to go back!
```
### Example of Update Task:

index: `1`

new description: `Eat Lunch`

new date:

Expected outcome:

Description of the outcome.
Task at index 1 has been updated, and marked as undone.

```
expected output
Here are the tasks in your list:
1. [T][ ] Eat Lunch
```
### Example of Delete Task:

index: `1`

Expected outcome:

Task 1 in the list will be deleted

```
There are no task in your list
```
## FAQ

What if I want to change the type of task?

`As changing the type of task is a large change I believe that user should delete the task completely and add a new one!`

How will I know if I entered some fields wrongly?

`The GUI will automatically show error fields if there are errors in the input!`
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.
26 changes: 26 additions & 0 deletions duke.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
true|T|123
false|T|123
false|T|72
false|T|3525253
true|D|123414|2021-10-21
false|D|twe|2021-10-15
false|D|123414|2021-10-21
false|T|asffa
false|T|asffa
false|T|asffa
false|T|asffa
true|T|34
false|T|34
false|T|34
false|E|12515|2021-10-21
false|E|12515|2021-10-21
false|E|12515|2021-10-21
false|E|12515|2021-10-21
false|E|12515|2021-10-21
false|D|12515|2021-10-21
true|D|12515|2021-10-21
false|D|12515|2021-10-21
false|D|12515|2021-10-21
false|T|12515
false|T|12515
false|T|12515
Binary file added gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
5 changes: 5 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading