-
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 popup showing Today's Appointments #74
Add popup showing Today's Appointments #74
Conversation
Codecov ReportAttention: Patch coverage is
|
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.
Overall LGTM!
*/ | ||
public boolean hasAppointmentsToday() { | ||
LocalDate currentDate = LocalDate.now(); | ||
List<Person> personsWithAppointments = filteredPersonList.stream() |
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.
functional code is clean and easy to read, nice
@@ -8,15 +9,21 @@ | |||
*/ | |||
public class Appointment { | |||
|
|||
/** Message constraints that indicate the valid format for appointments. */ |
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.
Nice improvements to the documentation of the appointment class
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, just need update test cases to cover added LOC in Appointment class
public final LocalDateTime value; | ||
|
||
/** | ||
* Constructs an {@code Appointment}. | ||
* Constructs an {@code Appointment} with the specified date and time string. |
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.
Added clarity is always nice
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.
clean code
f6e72d5
into
AY2425S1-CS2103T-W11-1a:master
Added Popup window that shows a list of patients with appointments on the current date. Pop-up will NOT appear if there are no patients with appointments on the current date.