-
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
Create new UI and integrate all v1.2 changes #114
Create new UI and integrate all v1.2 changes #114
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #114 +/- ##
============================================
- Coverage 81.21% 78.19% -3.02%
+ Complexity 651 649 -2
============================================
Files 99 101 +2
Lines 1900 1963 +63
Branches 210 214 +4
============================================
- Hits 1543 1535 -8
- Misses 318 386 +68
- Partials 39 42 +3
☔ View full report in Codecov by Sentry. |
bruh how tf am i supposed to test the UI portions to satisfy codecov the original repo doesn't have it covered either |
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.
Thanks for your hard work! LGTM with a few nits. Ideally, I think this commit should be merged after #109 is fixed.
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!
* @return {@code RsvpStatistics} | ||
*/ | ||
public RsvpStatistics getRsvpStatistics() { | ||
return new RsvpStatistics(guests.getNumGuestsRsvpYes(), guests.getNumGuestsRsvpNo(), |
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.
Perhaps it would be better to implement the logic of getting RSVP statistics within UniqueGuestList? would also eliminate the need for getters.
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.
Actually I think the current implementation is fine, having our AddressBook
class handle the creation of a RsvpStatistics
object makes sense to me as the AddressBook
has an overview of everything being tracked, and can derive RSVP information from its UniqueGuestList
.
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!
Currently, the UI is the same as the original AddressBook. All changes done in iteration 1.2 have been individually tested, but have not been integrated with the UI. There are also redundant classes such as
AddCommand
which is deprecated due to the creation of more specificGuestAddCommand
andVendorAddCommand
classes.Let's:
Disclaimer: UI is not polished yet and looks abit fugly. I will improve it next PR.
Addresses #87.