-
Notifications
You must be signed in to change notification settings - Fork 5
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
Add remark feature #166
Conversation
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.
Is it better to not show the remark card if there is not remark? |
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
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.
Would excluding this file from you commit be better, since it is not ready?
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? |
this is how the UI look like:
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"