AC-665 Updated UI for Login Page#743
Conversation
Codecov Report
@@ Coverage Diff @@
## master #743 +/- ##
==========================================
+ Coverage 11.76% 11.79% +0.03%
==========================================
Files 238 238
Lines 10646 10602 -44
Branches 1027 1025 -2
==========================================
- Hits 1252 1251 -1
+ Misses 9312 9269 -43
Partials 82 82
Continue to review full report at Codecov.
|
f4ww4z
left a comment
There was a problem hiding this comment.
@rishabh-997 Can you also vertically center the 'Get started with our user guide' text?
| loginView.setLocationErrorOccurred(false); | ||
| } else { | ||
| loginView.showInvalidURLSnackbar("Failed to fetch server's locations"); | ||
| loginView.showInvalidURLSnackbar("The entered server is currently down, please select a different one."); |
There was a problem hiding this comment.
Put this string as a string resource instead
There was a problem hiding this comment.
Done,
- Had to pass context from activity to extract string resource from not Activity class.
- Had to update tests accordingly.
- Uploaded screenshots with the
Get Startedaligned both ways. It is currently aligned to left in the PR, so if you like the central way, I'll update the PR
There was a problem hiding this comment.
The test fails due to some reason which I can't figure out why, is it some error from my side ???
|
I tried it and it wasn't looking appealing. I can add another screenshot here with that text vertically alligned in middle |
e277bea to
dc98d1f
Compare
Codecov Report
@@ Coverage Diff @@
## master #743 +/- ##
==========================================
+ Coverage 11.80% 11.85% +0.04%
==========================================
Files 238 238
Lines 10650 10598 -52
Branches 1028 1025 -3
==========================================
- Hits 1257 1256 -1
+ Misses 9311 9260 -51
Partials 82 82
Continue to review full report at Codecov.
|
@rishabh-997 if you think that it does not look appealing. Try centre aligning the text and move it closer to the bottom rather than keeping it closer to the switch. Maybe it will look better :) |
I have added screenshot as you said, have a look at all three of them. Let me know your suggestions |
dc98d1f to
b12decc
Compare
|
@rishabh-997 It looks more appealing with the |
There was a problem hiding this comment.
@rishabh-997 I would like to suggest a thing like to avoid confusion for users can we give them options for alternate refApp server along with the demo server so that users dont have go on looking for alternate servers URl.
We have now updated the snack bar so when the server is down, there is an apt message regarding server down error along with a link with all the alternate servers... Are you suggesting anything different ???? |
|
@rishabh-997 I thought the users getting redirected to some external link will be a bad UX maybe have some sort of drop down to select from a list of servers thats what I thought !! |
c9223bf to
a231452
Compare
|
@rishabh-997 Can you fix the merge conflicts and refactor according to the new localization changes ? Then we can merge. |
f0284e4 to
33f20d2
Compare
f4ww4z
left a comment
There was a problem hiding this comment.
@rishabh-997 Make sure to eliminate these conflicts and that you can build the app locally.
| <<<<<<< HEAD | ||
| ======= | ||
|
|
||
| >>>>>>> removed context from presenter |
| <<<<<<< HEAD | ||
| openMRSLogger, authorizationManager); | ||
| ======= | ||
| openMRSLogger, authorizationManager); | ||
| >>>>>>> removed context from presenter |
There was a problem hiding this comment.
Take care of this merge conflict
| <<<<<<< HEAD | ||
| .thenReturn(mockErrorCall(401)); | ||
| ======= | ||
| .thenReturn(mockErrorCall(401)); | ||
| >>>>>>> removed context from presenter |
| <<<<<<< HEAD | ||
| verify(view).showInvalidURLSnackbar(R.string.failed_fetching_servers_location); | ||
| ======= | ||
| verify(view).showInvalidURLSnackbar(R.string.snackbar_server_error); | ||
| >>>>>>> removed context from presenter |
33f20d2 to
75b0f08
Compare




Description of what I changed
Issue I worked on
JIRA Issue: https://issues.openmrs.org/browse/AC-665
Checklist: I completed these to help reviewers :)
(the number above, next to the 'Commits' tab is 1).
existing code that was well tested you do not have to add tests)