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

Big changes to UI and list-appt is working #117

Merged
merged 4 commits into from
Apr 2, 2019

Conversation

amuletxheart
Copy link

No description provided.

@amuletxheart amuletxheart changed the title Big changes to UI and add-appt is working Big changes to UI and list-appt is working Apr 2, 2019
@@ -401,6 +421,37 @@ private void ensureSelectedMedHistIsValid(ListChangeListener.Change<? extends Me
}
}

/**
* Ensures {@code selectedAppointment} is a valid appointment in {@code filteredAppointments}.
Copy link

Choose a reason for hiding this comment

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

neat and clean logic that ensures a selected appointment. However it would be better to provide some test cases.

}

boolean wasSelectedAppointmentReplaced =
change.wasReplaced() && change.getAddedSize() == change.getRemovedSize()
Copy link

Choose a reason for hiding this comment

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

hacky way of comparing the size of the change to check if the appointment is replaced. Perhaps can find a better check by comparing other factors

@@ -11,7 +11,7 @@
public class GuiSettings implements Serializable {

private static final double DEFAULT_HEIGHT = 600;
private static final double DEFAULT_WIDTH = 740;
private static final double DEFAULT_WIDTH = 1000;
Copy link

Choose a reason for hiding this comment

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

good width set to account for 3 columns of different lists. However, the default starting list can still be buggy and hide some words if the parameter are too long. For example, some parts of address will be hidden at the start.

</Label>
</HBox>
<HBox>
<Label text="Patient ID: " />
Copy link

Choose a reason for hiding this comment

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

nice layout of the appointment list in the UI. glad to see a huge leap in the interface!

<Label fx:id="doctorId" styleClass="cell_small_label" text="\$doctorId" />
</HBox>
<HBox>
<Label text="Date: " />
Copy link

Choose a reason for hiding this comment

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

can be compressed to 1 since they are similar objects

@amuletxheart amuletxheart merged commit dfcf18d into cs2103-ay1819s2-w13-1:master Apr 2, 2019
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.

None yet

2 participants