-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add personal tasks #34
Add personal tasks #34
Conversation
Create the Task class to represent the tasks for the user to add to the app.
Let's create an AddTaskCommand class to represent the command that adds a task to the book. Let's create an AddTaskCommand Parser class to process the user input for an add task command.
Create the TaskList class to store the tasks from users.
Update AddressBookParser.parseCommand() to recognize the addtask keyword. Modify AddTaskCommandParser.java to parse user input. Modify AddTaskCommand.java to add task to the task list. Update TaskList.java to include methods to add class and to check duplicate tasks. Update ModelManager.java and MainApp.java to include TaskList in the constructor. Update Messages.java to include the method for formatting task description.
Create TaskList Storage to store tasks into the data file. Create Json adapted classes to store tasks in a Json file.
Let's update the Storage package to store the task list in the json data file. Let's update the model package to contain the task list. Let's update the logic package to save the tasks to the task list.
Change the test files to include the task list in model and storage classes.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #34 +/- ##
============================================
+ Coverage 75.26% 75.40% +0.14%
- Complexity 419 463 +44
============================================
Files 71 78 +7
Lines 1338 1472 +134
Branches 126 134 +8
============================================
+ Hits 1007 1110 +103
- Misses 301 330 +29
- Partials 30 32 +2 ☔ View full report in Codecov by Sentry. |
Add test classes for new classes and methods. Update old tests in ModelManagerTest and StorageManager to test TaskList methods.
Add more test classes for new classes and methods.
Add more tests for more methods.
Add test to taskList methods in StorageManager.
Fix tests for taskList methods in StorageManager.
Add more test classes for new classes and methods.
Looks good to me! |
Looks great! Would be good to include a task name for the task. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks for the hard work and apologies for the late review.
/** | ||
* Formats the {@code task} for display to the user. | ||
*/ | ||
public static String formatTask(Task task) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit-pick, might be better to just overload the format(Person)
method and name this format
as well?
As a student, I can add personal tasks, so that I can keep up to date with the different tasks to complete.