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

Visual indicator for overdue reminders and test cases for meetings and reminders commands #114

Merged
merged 11 commits into from
Oct 19, 2020
Merged

Conversation

sebastiantoh
Copy link

Closes #110, #60

  • Enabled assertions in gradle (required for the coming week's tutorial)
  • Added a visual indicator for overdue reminders
    • Reminders which are overdue will have its date label in red instead of white
  • Updated the command feedback from running reminder list so that it will not display the entire reminder list in the chatbox.
  • Extracted ModelStub from a private class in seedu.address.commands.contact.AddCommandTest to a public class in seedu.address.model
  • Added tests cases for commands.reminder and commands.meeting

Demo:
image

@sebastiantoh sebastiantoh added this to the v1.3 milestone Oct 16, 2020
# Conflicts:
#	src/test/java/seedu/address/logic/commands/contact/AddCommandTest.java
Copy link

@hakujitsu hakujitsu left a comment

Choose a reason for hiding this comment

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

Tested locally, LGTM! Good idea to abstract ModelStub out to another class.

Can I just check: whether a reminder is overdue or not is evaluated at program startup, are there any plans to either have the reminder display update immediately when the reminder time has passed, or to have a command to manually refresh the reminder display (like perhaps on reminder list?

@sebastiantoh
Copy link
Author

Tested locally, LGTM! Good idea to abstract ModelStub out to another class.

Can I just check: whether a reminder is overdue or not is evaluated at program startup, are there any plans to either have the reminder display update immediately when the reminder time has passed, or to have a command to manually refresh the reminder display (like perhaps on reminder list?

Good point! I've added a force-refresh at the end of every command. Idk if this would be too inefficient though...

@hakujitsu
Copy link

I think that should be fine, we could relook it if the refreshes cause any issues later!

Copy link

@hakujitsu hakujitsu left a comment

Choose a reason for hiding this comment

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

Just checking: is the meeting panel refresh is implemented in this PR too?

// Force refresh of the following UI components which are time sensitive
// Overdue reminders should be displayed differently
this.reminderListPanel.refresh();
// Past meetings should be filtered out

Choose a reason for hiding this comment

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

Is this something that was implemented in this PR? I didn't experience any filtering out of past meetings when executing commands to refresh the display.

Copy link
Author

Choose a reason for hiding this comment

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

Not yet! Just adding this in here so that I won't forget. Sorry for the confusion

Choose a reason for hiding this comment

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

Great, thanks for clarifying! Will approve and merge.

@hakujitsu hakujitsu merged commit 7bcfc4a into AY2021S1-CS2103T-T11-1:master Oct 19, 2020
@sebastiantoh sebastiantoh deleted the overdue-reminders branch October 21, 2020 12:19
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.

As a visual person, I can quickly identify overdue reminders
2 participants