-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Conversation
v1@yamgent submitted v1 for review.
Checkout this PR version locallygit fetch https://github.com/se-edu/addressbook-level4.git refs/pr/803/1/head:BRANCHNAME where |
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.
[1/2] 💯
Commit message can be updated though. For paragraph 3: "Let's modify StatusBarFooter so that it shows the total number of persons in the current address book, so that the user knows the id of the last person.
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.
[2/2] why no commit message? :P
String expectedSyncStatus = String.format(SYNC_STATUS_UPDATED, timestamp); | ||
assertEquals(expectedSyncStatus, handle.getSyncStatus()); | ||
|
||
assertEquals(String.format(TOTAL_PERSONS_STATUS, totalPersons), handle.getTotalPersonsStatus()); |
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.
we can replace totalPersons
with testApp.getModel().getFilteredPersonList().size()
e1e7303
to
57e442c
Compare
Note to self: AddressBookChangedEvent does not have filtered list. |
26ffce8
to
509eb2d
Compare
v2@yamgent submitted v2 for review.
(📚 Archive) (📈 Interdiff between v1 and v2) Checkout this PR version locallygit fetch https://github.com/se-edu/addressbook-level4.git refs/pr/803/2/head:BRANCHNAME where |
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.
[2/2]
* {@code ClockRule#getInjectedClock()}, total persons was changed to match the total | ||
* number of persons in the address book, while the save location remains the same. | ||
*/ | ||
protected void assertStatusBarUnchangedExceptSyncStatusAndTotalPersons() { |
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.
assertStatusBarChangedExceptSaveLocation
? XD
} | ||
|
||
/** | ||
* Asserts that only the sync status in the status bar was changed to the timing of |
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.
the word only
seems weird because 2 components in StatusBarFooter
are updated.
@@ -125,7 +125,8 @@ void fillInnerParts() { | |||
ResultDisplay resultDisplay = new ResultDisplay(); | |||
resultDisplayPlaceholder.getChildren().add(resultDisplay.getRoot()); | |||
|
|||
StatusBarFooter statusBarFooter = new StatusBarFooter(prefs.getAddressBookFilePath()); | |||
StatusBarFooter statusBarFooter = new StatusBarFooter(prefs.getAddressBookFilePath(), | |||
logic.getFilteredPersonList().size()); |
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.
this line looks weird because statusBarFooter
actually stores the number of persons in the address book, not in the filtered person list :P But well, seems like we can't do anything about this.
509eb2d
to
c761df2
Compare
v3@yamgent submitted v3 for review.
(📚 Archive) (📈 Interdiff between v2 and v3) Checkout this PR version locallygit fetch https://github.com/se-edu/addressbook-level4.git refs/pr/803/3/head:BRANCHNAME where |
c761df2
to
65bef93
Compare
v4@yamgent submitted v4 for review.
(📚 Archive) (📈 Interdiff between v3 and v4) (📈 Range-Diff between v3 and v4) Checkout this PR version locallygit fetch https://github.com/se-edu/addressbook-level4.git refs/pr/803/4/head:BRANCHNAME where |
So we can tell if the way the conflicts were resolved are correct or not. |
65bef93
to
fe696a3
Compare
In order to determine the total number of contacts in the address book, the user has to scroll the list all the way down to the last person, as the ID of the last person gives an indication of the total number of persons. This forces the user to use the graphical user interface to find such an information. Let's modify StatusBarFooter so that it shows the total number of persons in the current address book.
The application now shows the total number of persons in the address book on the status bar. Let's modify the system tests to verify the new behavior.
fe696a3
to
c4ab246
Compare
v5@yamgent submitted v5 for review.
(📚 Archive) (📈 Interdiff between v4 and v5) (📈 Range-Diff between v4 and v5) Checkout this PR version locallygit fetch https://github.com/se-edu/addressbook-level4.git refs/pr/803/5/head:BRANCHNAME where |
This PR had to be rebased again due to conflicts. No other changes otherwise (i.e. no requested changes because there isn't one). |
Part of #784. Rebased, and added tests.
Proposed merge commit message:
Note: For demo purpose, don't merge this to master!