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 remark feature #166

Merged

Conversation

songfangyl
Copy link

this is how the UI look like:
image

I limit the length of remark to 150 characters long, longer the 150 is invalid remark.
If there is no remark, UI will show "No remark"

For the logic part,
implement remark feature by create RemarkCommmand class,
RemarkCommand parser and make sure can parse the command correctly.

For the model part add the remark into person,
modify all other class that use the person constructor.

After that is the UI part,
integrate remark as a label into PersonCard,
add the label into the PersonListCard.fxml.

Lastly, implement the junit testcases to make sure everythin works
correctly.
# Conflicts:
#	src/main/java/seedu/address/logic/commands/EditCommand.java
#	src/main/java/seedu/address/logic/parser/AddCommandParser.java
#	src/main/java/seedu/address/logic/parser/AddressBookParser.java
#	src/main/java/seedu/address/logic/parser/CliSyntax.java
#	src/main/java/seedu/address/model/person/Person.java
#	src/main/java/seedu/address/model/util/SampleDataUtil.java
#	src/main/java/seedu/address/storage/jsonadaptedperson/JsonAdaptedPerson.java
#	src/main/java/seedu/address/ui/PersonCard.java
#	src/main/resources/view/PersonListCard.fxml
#	src/test/java/seedu/address/logic/commands/CommandTestUtil.java
#	src/test/java/seedu/address/model/person/PersonTest.java
#	src/test/java/seedu/address/testutil/PersonBuilder.java
update components including storage, model, logic to pass all the
current test cases.
@songfangyl songfangyl added this to the v1.3 milestone Oct 25, 2023
@songfangyl songfangyl self-assigned this Oct 25, 2023
@yucongkoo
Copy link

Is it better to not show the remark card if there is not remark?

Copy link

@yucongkoo yucongkoo left a comment

Choose a reason for hiding this comment

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

LGTM

Choose a reason for hiding this comment

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

Would excluding this file from you commit be better, since it is not ready?

@yucongkoo yucongkoo merged commit d3271d4 into AY2324S1-CS2103T-W16-2:master Oct 26, 2023
3 checks passed
@yucongkoo
Copy link

Do you plan to update the output display when adding a person with remarks? Currently when we use the add command, the output will not show information about the remarks. However, remarks tend to be lengthy and I am not very sure should we show it in the output. What do you think?

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.

2 participants