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 popup showing Today's Appointments #74

Conversation

Dominic-Khoo
Copy link

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.

@Dominic-Khoo Dominic-Khoo added this to the v1.5 milestone Oct 29, 2024
@Dominic-Khoo Dominic-Khoo self-assigned this Oct 29, 2024
Copy link

@reidenong reidenong left a 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()

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. */

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

Copy link

@itsnotsherm itsnotsherm left a 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.

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

Choose a reason for hiding this comment

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

clean code

@itsnotsherm itsnotsherm merged commit f6e72d5 into AY2425S1-CS2103T-W11-1a:master Nov 6, 2024
0 of 3 checks passed
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.

3 participants