Skip to content

[yosonteo] iP#663

Open
yosonteo wants to merge 41 commits into
nus-cs2103-AY2526S1:masterfrom
yosonteo:master
Open

[yosonteo] iP#663
yosonteo wants to merge 41 commits into
nus-cs2103-AY2526S1:masterfrom
yosonteo:master

Conversation

@yosonteo

@yosonteo yosonteo commented Sep 4, 2025

Copy link
Copy Markdown

No description provided.

damithc and others added 15 commits July 11, 2024 16:52
In build.gradle, the dependencies on distZip and/or distTar causes
the shadowJar task to generate a second JAR file for which the
mainClass.set("seedu.duke.Duke") does not take effect.
Hence, this additional JAR file cannot be run.
For this product, there is no need to generate a second JAR file
to begin with.

Let's remove this dependency from the build.gradle to prevent the
shadowJar task from generating the extra JAR file.
Comment thread src/main/java/Jone.java Outdated

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Might want to consider moving user input handling and tasks function to dedicated classes? Makes main Jone class cleaner and should be very easy with the help of brother Chat.

@Sengernest Sengernest left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Overall, the code LGTM. Just a few minor nits to address for consistency with the coding standards.

private static final String DATETIME_FORMAT_ERROR =
"Invalid datetime format. Please use yyyy-MM-dd HHmm.";

private final LocalDateTime start;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I like that you extracted DATETIME_FORMAT and DATETIME_FORMAT_ERROR into constants which follows the coding standard.

@@ -0,0 +1,119 @@
package jone;

/**

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I like that you have used header comments for each public function and class that follows the conding standard.

Comment thread src/main/java/jone/Jone.java Outdated
String command = parts[0];

try {
switch (command) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Please adjust your IDE settings to disable the default indentation for switch–case statements so that case labels are not indented. This will ensure the formatting follows the coding standards.

Comment thread nonexistent.txt

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Any reason to keep this file?

Fixing errors from the merge conflicts
Add assertions in Parser, TaskList, Storage, and Ui
Added a new 'help' command in Jone.java and Ui.java that displays the
list of available commands and their usage. This improves usability by
making the application more self-explanatory for first-time users.

Benefits:
- Users no longer need to rely on external documentation
- Reduces friction when recalling command syntax
- Makes the chatbot more user-friendly and accessible
- Added tests for Todo, Deadline, Event default state
- Verified mark/unmark works correctly
- Added exception tests for invalid Deadline and Event inputs

These tests increase code coverage and ensure robustness against invalid
date formats, while confirming that mark and unmark behaviour is
consistent across all subclasses
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants