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

tahsinhasem iP #534

Open
wants to merge 168 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
168 commits
Select commit Hold shift + click to select a range
55f9f9f
docs/README.md: Tweak document template
Jan 7, 2024
f837ddb
Add Gradle support
May 24, 2020
a6f7324
Bump gradle and lib version
Eclipse-Dominator Aug 5, 2023
e7052e0
Renamed duke to dude, added greet and bye
tah5in Feb 5, 2024
0232b97
Added echo feature, added indentation to responses
tah5in Feb 5, 2024
6655cdb
Added TaskList.java, Implemented Adding Tasks
tah5in Feb 5, 2024
8f5c5b6
Changed Logo
tah5in Feb 5, 2024
cface25
Added Task.java
tah5in Feb 5, 2024
a8e470a
Refactored Task List to work with Task objects instead of Strings
tah5in Feb 5, 2024
198fa53
Refactored TaskList to throw errors
tah5in Feb 5, 2024
cce34ff
Changed TaskListFullException to be public
tah5in Feb 5, 2024
19b40a5
Renamed variable s to msg
tah5in Feb 5, 2024
397c9b1
Added mark_ as done feature
tah5in Feb 5, 2024
51ede74
Changed the output message to include task number for marking and unm…
tah5in Feb 5, 2024
90ce70d
Added Unmark Feature
tah5in Feb 5, 2024
6ecac32
Added handling case for empty input - "".
tah5in Feb 5, 2024
8ba0809
Added Todo class
tah5in Feb 5, 2024
a2106ed
Added Deadline class
tah5in Feb 5, 2024
354d0f4
Added Event class
tah5in Feb 5, 2024
f940395
Added a utils class containing utility function(s)
tah5in Feb 7, 2024
c469c03
Implemented a factory function for Todo
tah5in Feb 7, 2024
27166f7
Implemented todo
tah5in Feb 7, 2024
81016c0
Implemented deadline command
tah5in Feb 7, 2024
d92b44c
Changed task add message
tah5in Feb 7, 2024
ea0f810
Added deadline command
tah5in Feb 7, 2024
c7eeee8
Added deadline command
tah5in Feb 7, 2024
2aa5e2e
Bug fixes
tah5in Feb 7, 2024
2f7abe2
Added DukeException.java and subclasses for error handling
tah5in Feb 7, 2024
c2b69d0
Renamed DukeException to DudeException
tah5in Feb 7, 2024
adbedec
Added InvalidFormatException.java
tah5in Feb 7, 2024
8960bc5
Added appropriate exceptions to Event Class
tah5in Feb 7, 2024
6f2636f
Added appropriate exceptions to Todo Class
tah5in Feb 7, 2024
0bb1cb8
Added appropriate exceptions to Deadline Class
tah5in Feb 7, 2024
93ba8d6
Refactored to proper error handling
tah5in Feb 7, 2024
4c80fea
Removed default file
tah5in Feb 7, 2024
cc49f02
Removed default from switch statement
tah5in Feb 7, 2024
66b59f7
Merge branch 'master' of https://github.com/tahsinhasem/ip
tah5in Feb 7, 2024
8412be5
Refactored list from array to ArrayList<Task>
tah5in Feb 7, 2024
5336b7f
Removed use of count to keep track of tasks. Replaced with arraylist …
tah5in Feb 7, 2024
dd4918a
Handle error for non integer ids
tah5in Feb 7, 2024
4657d4a
Added testing for delete command
tah5in Feb 7, 2024
2d3a5ba
Added Storage Class
tah5in Feb 16, 2024
502845f
Added create storage function
tah5in Feb 16, 2024
473d1fd
Added Deleting to Storage Class
tah5in Feb 16, 2024
f384ae7
Refactored into Packages
tah5in Feb 16, 2024
a22e7d8
Added saving taskList functiuonality
tah5in Feb 16, 2024
6e42fff
Fixed edge case bug where exception would be thrown if there was an e…
tah5in Feb 16, 2024
1d0b813
Improved readability
tah5in Feb 16, 2024
331f8c8
Implemented Auto save
tah5in Feb 16, 2024
01e0265
Merge branch 'branch-Level-7'
tah5in Feb 16, 2024
2de57fc
Implemented ENUMs for commands
tah5in Feb 16, 2024
28c57a3
Added parseDate and fotmatDate functions to Task class
tah5in Feb 17, 2024
aba0281
Implemented parsing datetimes for Deadlines
tah5in Feb 17, 2024
83ff4fe
implemented date formatting for deadlines
tah5in Feb 17, 2024
ee7624b
Implemented DateTime parsing for Events
tah5in Feb 17, 2024
3772176
Implemented formatting of dates for Events
tah5in Feb 17, 2024
27a0db5
Changed printing of time format to `MMM d, yyyy @ h:mma`
tah5in Feb 17, 2024
0151ae5
Merge branch 'branch-Level-8'
tah5in Feb 17, 2024
f88ca27
Changed Storage to take in save file location. Make it more OOP
tah5in Feb 17, 2024
33a746f
removed main method from storage
tah5in Feb 17, 2024
e4c2d2f
added skeleton for command package
tah5in Feb 17, 2024
815d1c7
Added Commands
tah5in Feb 17, 2024
234ea0c
Added Command Type Enums
tah5in Feb 17, 2024
a67819f
Changed getTask to take in ID instead of index
tah5in Feb 17, 2024
04f467a
Dixed bug
tah5in Feb 17, 2024
b0e2405
Working duke in static context
tah5in Feb 17, 2024
adc493f
Better code quality
tah5in Feb 17, 2024
0fa5858
Merge branch 'A-OOP'
tah5in Feb 17, 2024
5b5d9f9
renamed CommandParser to Parser. Moved CommandTypes to Command Package
tah5in Feb 17, 2024
7acaeda
Merge branch 'A-OOP'
tah5in Feb 17, 2024
7dad305
moved all classes to dude package
tah5in Feb 17, 2024
0b25006
Merge branch 'add-gradle-support'
tah5in Feb 17, 2024
4f20ed0
updated build.gradle
tah5in Feb 18, 2024
7fef014
Added Checksyle. Changed Style for Dude.java
tah5in Feb 18, 2024
bceb8f0
Added tests for Storage and Parser
tah5in Feb 26, 2024
1749a88
Added .equals for Todo
tah5in Feb 26, 2024
a78c490
Added Test cases for Todo Task
tah5in Feb 26, 2024
d111cfd
Added Test cases for Deadline
tah5in Feb 26, 2024
273dc75
Added equals method
tah5in Feb 26, 2024
a30505e
changed method spelling mistake for deadline test
tah5in Feb 26, 2024
cea57bd
Added test cases for event class
tah5in Feb 26, 2024
5722427
Fixed main class not found bug. Fixed shadowJar error
tah5in Feb 26, 2024
801b077
Added JavaDoc for Dude and Storage Classes
tah5in Feb 26, 2024
7bb8350
added JavaDoc and coding style changes
tah5in Feb 26, 2024
0d38f71
Fixed ordering of import statements following coding standard
tah5in Feb 26, 2024
1240119
Added Javadoc to the Tasks package
tah5in Feb 26, 2024
255488f
Added Javadoc to the Exceptions package
tah5in Feb 26, 2024
a00cbb4
Added Javadoc to the Commands package
tah5in Feb 26, 2024
76dcd50
Implemented find function
tah5in Feb 26, 2024
5e6ebe0
Implemented find command
tah5in Feb 26, 2024
b78b6cc
Added find command to Parser
tah5in Feb 26, 2024
0f866ae
Added help support for find command
tah5in Feb 26, 2024
df5576e
Bug fixes for UI
tah5in Feb 26, 2024
360681a
Coding Style fixes for Deadline Class
tah5in Feb 26, 2024
3b6d76d
Merge branch 'branch-level-9'
tah5in Feb 26, 2024
5246c2c
Coding Style fixes for Event Class
tah5in Feb 26, 2024
2d22e8c
Added Javadoc for Task class
tah5in Feb 26, 2024
63484c2
Updated Event, TaskList, Todo classes to coding standards
tah5in Feb 26, 2024
5015a43
Updated code to coding standards
tah5in Feb 26, 2024
5350264
Renamed Tasks package to tasks
tah5in Feb 26, 2024
96f3f5e
Renamed all packages to lower-case
tah5in Feb 26, 2024
629cbc2
Updated to coding Standards
tah5in Feb 26, 2024
b2b86be
Updated to coding Standards
tah5in Feb 26, 2024
2552cc1
Changed array indenting for HelpCommand
tah5in Feb 26, 2024
fd7330c
Changed array indenting for HelpCommand
tah5in Feb 26, 2024
70c00dd
changed indent for Help copmmand
tah5in Feb 26, 2024
893948c
Added Javadoc to utils class
tah5in Feb 26, 2024
e80de01
Added Javadoc to utils class
tah5in Feb 26, 2024
191dc8d
Renamed utils class to Utils
tah5in Feb 26, 2024
3f506a4
Updated TaskListFullException to coding standards
tah5in Feb 26, 2024
22c9282
Updated MarkCommand to coding standards
tah5in Feb 26, 2024
935a832
Code quality updates from intelliJ suggestions
tah5in Feb 26, 2024
7184d0a
Minor style change
tah5in Feb 27, 2024
cd53e47
Fixed Merge Conflicts
tah5in Feb 29, 2024
cf3aa55
Fixed some Checkstyle errors
tah5in Feb 29, 2024
ec3137f
Implemented sending message to UI
tah5in Feb 29, 2024
933e721
Implemented exchange of dialog
tah5in Mar 3, 2024
14703f1
minor changes
tah5in Mar 3, 2024
dbdd4e7
Added proper images
tah5in Mar 3, 2024
8b67b7f
Added ActionTo Text Input Field, Changed color for labels
tah5in Mar 3, 2024
e68f6d5
Changed to string to return "No tasks in the list! :(" when empty
tah5in Mar 3, 2024
5451acd
Fixed bug where label was not showing entire text
tah5in Mar 3, 2024
a4688f0
Changed DialogBox.fxml so that the text has some margin
tah5in Mar 3, 2024
7925667
Merge branch 'branch-Level-10'
tah5in Mar 3, 2024
0b9c010
bug fix
tah5in Mar 3, 2024
d289644
Merge branch 'branch-Level-10'
tah5in Mar 3, 2024
5d1649a
cleaned imports
tah5in Mar 3, 2024
934b16f
Implmented var-args in TaskList
tah5in Mar 3, 2024
2a51624
Added padding to dialog container
tah5in Mar 3, 2024
443c0a6
Added Assertions to Commands.
tah5in Mar 3, 2024
a4ce754
added assertions to constructors of tasks packages
tah5in Mar 3, 2024
06cd136
Added assertions to Storage.java public functions
tah5in Mar 3, 2024
8ec53e5
Added assertion to dsicardFirstWord method, modified javadoc for find…
tah5in Mar 3, 2024
02ef742
Changed the main class in gradle
tah5in Mar 3, 2024
591614b
Refactored the GUI Views inside a GUI package
tah5in Mar 3, 2024
6de2f05
Extracted loadMainScene method out.
tah5in Mar 3, 2024
a7ef7be
Added javadoc to Launcher.java
tah5in Mar 3, 2024
8ee6346
Refactored to remove unnecessary methods from Dude.javb
tah5in Mar 3, 2024
a146d3b
Added more javadoc to dude.java
tah5in Mar 3, 2024
6d134e0
Code style improvements for Dude.java
tah5in Mar 3, 2024
8f5c707
Added javaDoc for main.start()
tah5in Mar 3, 2024
c33f9e7
better code quality for Task package
tah5in Mar 3, 2024
0696e64
better code quality for Task package
tah5in Mar 3, 2024
04323f7
fixed some checkstyle errors
tah5in Mar 3, 2024
c6fbb9b
Better code quality
tah5in Mar 3, 2024
1066bae
Better code quality
tah5in Mar 3, 2024
0f81339
Merging branch a assertions
tahsinhasem Mar 3, 2024
b0e6667
Merge branch 'branch-A-CodeQuality' into master
tahsinhasem Mar 3, 2024
4bff7a6
Merge Main into branch-A-CodeQuality (#3)
tahsinhasem Mar 3, 2024
0af6677
Merge branch-A-CodeQuality to master (#4)
tahsinhasem Mar 3, 2024
10f22e5
Added Assertions to Commands.
tah5in Mar 3, 2024
0efefff
added assertions to constructors of tasks packages
tah5in Mar 3, 2024
d5f106f
Added assertions to Storage.java public functions
tah5in Mar 3, 2024
3b13496
Added assertion to dsicardFirstWord method, modified javadoc for find…
tah5in Mar 3, 2024
15b7782
better code quality for Task package
tah5in Mar 3, 2024
552bbca
better code quality for Task package
tah5in Mar 3, 2024
33b11f6
fixed some checkstyle errors
tah5in Mar 3, 2024
aee980c
Better code quality
tah5in Mar 3, 2024
88e5bc4
Better code quality
tah5in Mar 3, 2024
d9c5bee
handled merge conflicts due to previous rebase
tah5in Mar 3, 2024
73f87d7
Changed Task::from methods to use Task:add_task method
tah5in Mar 3, 2024
2d2612b
Added Sorting functionality to Dude.
tah5in Mar 3, 2024
c239dc3
Added testing for sorting tasks
tah5in Mar 3, 2024
a94ef45
Removed white line from GUI
tah5in Mar 3, 2024
ce8663b
Added showing welcome message
tah5in Mar 3, 2024
88fd05e
Tried to fix bug where dialog is truncated
tah5in Mar 3, 2024
a6568f0
Added Documentation
tah5in Mar 3, 2024
ef8349d
Fixed bug where text was getting truncated
tah5in Mar 3, 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
Prev Previous commit
Next Next commit
Renamed variable s to msg
tah5in committed Feb 5, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 19b40a536ebc5b816e0e7953d9bcd5f7bc41bad1
9 changes: 3 additions & 6 deletions src/main/java/Dude.java
Original file line number Diff line number Diff line change
@@ -24,8 +24,8 @@ public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while(true){

String s = sc.nextLine();
String first_arg = s.split(" ")[0];
String msg = sc.nextLine();
String first_arg = msg.split(" ")[0];

switch (first_arg){
case "bye":
@@ -37,15 +37,12 @@ public static void main(String[] args) {
case "mark":

default:
System.out.println(add_task(s));
System.out.println(add_task(msg));
}
}

}




private static String greet(){
return "\t-----------------------------------\n" +
"\tHello! I'm Dude\n" +