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

Add personal tasks #34

Merged
merged 13 commits into from
Mar 15, 2024
Merged

Conversation

Kaya3842
Copy link

As a student, I can add personal tasks, so that I can keep up to date with the different tasks to complete.

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.
@Kaya3842 Kaya3842 added type.Story User stories Priority.High Requires high attention labels Mar 13, 2024
@Kaya3842 Kaya3842 added this to the v1.2 milestone Mar 13, 2024
@Kaya3842 Kaya3842 requested review from Yskie and nobodyishappy March 13, 2024 10:44
@Kaya3842 Kaya3842 self-assigned this Mar 13, 2024
Copy link

codecov bot commented Mar 13, 2024

Codecov Report

Attention: Patch coverage is 75.86207% with 35 lines in your changes are missing coverage. Please review.

Project coverage is 75.40%. Comparing base (787cb93) to head (c809106).

Files Patch % Lines
src/main/java/seedu/address/MainApp.java 0.00% 13 Missing ⚠️
...ava/seedu/address/storage/JsonTaskListStorage.java 71.42% 6 Missing ⚠️
...a/seedu/address/logic/commands/AddTaskCommand.java 83.33% 2 Missing and 1 partial ⚠️
.../java/seedu/address/model/util/SampleDataUtil.java 0.00% 3 Missing ⚠️
...ain/java/seedu/address/storage/StorageManager.java 72.72% 3 Missing ⚠️
...rc/main/java/seedu/address/model/ModelManager.java 87.50% 2 Missing ⚠️
src/main/java/seedu/address/model/TaskList.java 77.77% 2 Missing ⚠️
src/main/java/seedu/address/model/UserPrefs.java 81.81% 1 Missing and 1 partial ⚠️
src/main/java/seedu/address/model/Model.java 0.00% 1 Missing ⚠️
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.
📢 Have feedback on the report? Share it here.

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.
@Yskie
Copy link

Yskie commented Mar 15, 2024

Looks good to me!

@nobodyishappy
Copy link

Looks great! Would be good to include a task name for the task.

Copy link

@breezetall breezetall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGM!

Copy link

@chin-herng chin-herng left a 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) {
Copy link

@chin-herng chin-herng Mar 15, 2024

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?

@Yskie Yskie merged commit abd9989 into AY2324S2-CS2103T-W13-4:master Mar 15, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority.High Requires high attention type.Story User stories
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants