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

[Kok Bo Chang] iP #635

Open
wants to merge 91 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
91 commits
Select commit Hold shift + click to select a range
68c58c1
Add Gradle support
May 24, 2020
03523ec
Bump gradle and lib version
Eclipse-Dominator Aug 5, 2023
81a9c53
build.gradle: Prevent generating a second JAR file
aureliony Jul 16, 2024
7e01237
README: Update chatbot name to Lawrence
C5hives Aug 23, 2024
73fe471
Lawrence.java: Implement skeletal chatbot version
C5hives Aug 23, 2024
8feb9bd
Lawrence.java: Add echo feature to chatbot
C5hives Aug 23, 2024
e296f23
Lawrence.java: Add ability to store & display tasks
C5hives Aug 23, 2024
83bec1a
Task.java: Add new class that allows task tracking
C5hives Aug 23, 2024
003c59f
Tasks.java: Add collection to track multiple tasks
C5hives Aug 23, 2024
d4ccf38
Lawrence.java: Modify class to use Tasks class for tracking
C5hives Aug 23, 2024
a5f69a9
Add different task types to be tracked
C5hives Aug 23, 2024
dce9306
Add basic automated text UI testing
C5hives Aug 23, 2024
6e74ca5
Add error messages for user
C5hives Aug 23, 2024
8d61db8
Add ability to delete existing tasks
C5hives Aug 23, 2024
096fb10
Add enums to handle different user commands
C5hives Aug 23, 2024
8b83b68
Add ability to save and read tasks from hard disk
C5hives Sep 3, 2024
f612386
Add overloaded constructors to Task implementation
C5hives Sep 3, 2024
9c8d9cb
Add statement to close scanner after use
C5hives Sep 3, 2024
d455ca6
Separate logic for parsing file and user inputs
C5hives Sep 3, 2024
550c9d7
Add factory class to handle parse method
C5hives Sep 3, 2024
9c20de3
Add option to skip faulty lines when reading file
C5hives Sep 3, 2024
617c7cf
Fix bug from using wrong delimiter to split string
C5hives Sep 3, 2024
3d49f2d
Integrate file saving with bot runtime
C5hives Sep 3, 2024
6e7edcb
Merge branch 'branch-Level-7'
C5hives Sep 3, 2024
c534c0b
Convert stored dates and time in LocalDateTime objects
C5hives Sep 3, 2024
d8af860
Merge branch 'branch-Level-8'
C5hives Sep 3, 2024
8c3a80a
Refactor existing classes to be less coupled
C5hives Sep 3, 2024
161b6d9
Refactor command classes
C5hives Sep 3, 2024
16c1db0
Create command factory to handle command creation
C5hives Sep 4, 2024
d103678
Merge branch 'oop-refactor'
C5hives Sep 4, 2024
316ecc4
Refactor classes into packages
C5hives Sep 4, 2024
aae8857
Rename factory classes into parsers
C5hives Sep 4, 2024
62dd75f
Merge branch 'organise-packages'
C5hives Sep 4, 2024
f9960a6
Merge branch 'add-gradle-support'
C5hives Sep 4, 2024
4b97380
Add gradle support into project
C5hives Sep 4, 2024
fa93129
Add JUnit tests for CommandParser and Deadline
C5hives Sep 4, 2024
45de8a5
Modify build.gradle to generate jar file
C5hives Sep 4, 2024
a2c24f7
Add javadoc comments for Lawrence.java
C5hives Sep 4, 2024
46356d4
Add javadoc for Command.java
C5hives Sep 4, 2024
c5e9f74
Add javadoc for AddTaskCommand.java
C5hives Sep 4, 2024
09c16b1
Add javadoc to CommandType.java
C5hives Sep 4, 2024
0f1242d
Add javadoc for CompleteTaskCommand.java
C5hives Sep 4, 2024
12b18f7
Add javadoc for DeleteTaskCommand.java
C5hives Sep 4, 2024
1e78e4b
Add javadoc for DisplayTasksCommand.java
C5hives Sep 4, 2024
2805de6
Add javadoc to ExitSessionCommand.java
C5hives Sep 4, 2024
0093c6e
Add javadocs for UncompleteTaskCommand.java
C5hives Sep 4, 2024
aae3bdf
Add javadoc for TaskFileManager.java
C5hives Sep 4, 2024
1f0109e
Add javadocs for CommandParser.java
C5hives Sep 4, 2024
9f07503
Add javadocs for classes in the parser package
C5hives Sep 4, 2024
395c3cf
Add javadocs for classes in the task package
C5hives Sep 4, 2024
487dbcd
Add find functionality to list of valid commands
C5hives Sep 4, 2024
8839695
Refactor manager and ui to be mutable
C5hives Sep 4, 2024
916d097
Refactor to meet coding standard
C5hives Sep 4, 2024
213db3b
Merge branch 'branch-Level-9'
C5hives Sep 4, 2024
c66443a
Merge branch 'branch-A-CodingStandard'
C5hives Sep 4, 2024
cbb6582
Refactor to adhere to coding standard
C5hives Sep 7, 2024
6aec2d3
Refactor to adhere to checkstyle guidelines
C5hives Sep 7, 2024
1054af9
Merge branch 'A-CheckStyle'
C5hives Sep 7, 2024
b2e0603
Add javaFX UI to replace console
C5hives Sep 10, 2024
5b0c22e
Add javadocs and ensure code follows checkstyle
C5hives Sep 10, 2024
fcec4f9
Merge branch 'add-gui'
C5hives Sep 10, 2024
7e00c82
Refactor manager and ui to be final
C5hives Sep 11, 2024
317727a
Merge branch 'branch-Level-10'
C5hives Sep 11, 2024
25e6700
Modify javadoc for TaskList::findTasks method
C5hives Sep 15, 2024
04a939e
Add assertions at certain points in program
C5hives Sep 15, 2024
262a452
Change behaviour of fromString method
C5hives Sep 15, 2024
abdb75b
Refactor bot's return values after commands
C5hives Sep 15, 2024
6a16fe5
Refactor comments to use consistent capitalisation
C5hives Sep 15, 2024
50849ba
Merge pull request #2 from C5hives/A-Streams
C5hives Sep 15, 2024
a0f9b78
Revert "Merge pull request #2 from C5hives/A-Streams"
C5hives Sep 15, 2024
d27789e
Rephrase javadocs for TaskList::findTasks
C5hives Sep 15, 2024
d3752c4
Merge branch 'master' into branch-A-Streams
C5hives Sep 15, 2024
6093cde
Merge pull request #3 from C5hives/branch-A-Streams
C5hives Sep 15, 2024
c67b5ca
Merge branch 'master' into branch-A-Assertions
C5hives Sep 15, 2024
3af0d19
Merge branch 'master' into branch-A-CodeQuality
C5hives Sep 15, 2024
adb6db1
Merge pull request #4 from C5hives/branch-A-Assertions
C5hives Sep 15, 2024
95913dd
Merge branch 'master' into branch-A-CodeQuality
C5hives Sep 15, 2024
476b5b3
Merge pull request #5 from C5hives/branch-A-CodeQuality
C5hives Sep 15, 2024
955bc7a
Add github actions for continuous integration
C5hives Sep 15, 2024
c338338
Update workflow.yml for CI
C5hives Sep 15, 2024
f66473e
Change command type parsing to be flexible
C5hives Sep 18, 2024
79d4ec3
Update test case for CommandParser
C5hives Sep 18, 2024
0f27ba5
Merge branch 'branch-BCD-Extension'
C5hives Sep 18, 2024
d31873c
Add window name for chatbot UI
C5hives Sep 18, 2024
d900777
Add welcome message on chatbot startup
C5hives Sep 18, 2024
ea1abaa
Add screenshot of ui
C5hives Sep 18, 2024
71d005b
Update README
C5hives Sep 18, 2024
f7865e6
Add config file for github pages
C5hives Sep 18, 2024
6df19ef
Add more examples to README
C5hives Sep 18, 2024
5c853f4
Rename Lawrence instance variable
C5hives Sep 18, 2024
6a6fd19
Rename boolean variables in TaskFileManager
C5hives Sep 21, 2024
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
34 changes: 34 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Java CI

on: [push, pull_request]

jobs:
build:
strategy:
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}

steps:
- name: Set up repository
uses: actions/checkout@master

- name: Set up repository
uses: actions/checkout@master
with:
ref: master

- name: Merge to master
run: git checkout --progress --force ${{ github.sha }}

- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1

- name: Setup JDK 17
uses: actions/setup-java@v1
with:
java-version: '17'
java-package: jdk+fx

- name: Build and check with Gradle
run: ./gradlew check
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ bin/

/text-ui-test/ACTUAL.TXT
text-ui-test/EXPECTED-UNIX.TXT
/data/
3 changes: 3 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
remote_theme: pages-themes/[email protected]
plugins:
- jekyll-remote-theme
60 changes: 60 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
plugins {
id 'java'
id 'application'
id 'com.github.johnrengelman.shadow' version '7.1.2'
id 'checkstyle'
}

repositories {
mavenCentral()
}

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

String javaFxVersion = '17.0.7'

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 {
mainClass.set("lawrence.ui.Launcher")
}

shadowJar {
archiveFileName = "lawrence.jar"
}

checkstyle {
toolVersion = '10.2'
}

run {
standardInput = System.in
}
Loading