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

Fixes #540: Updates profile admin flow when admin does not have a PIN #541

Merged
merged 180 commits into from
Dec 14, 2019

Conversation

jamesxu0
Copy link
Contributor

@jamesxu0 jamesxu0 commented Dec 11, 2019

Explanation

Fixes #540: Updates profile admin flow when admin does not have a PIN. See https://xd.adobe.com/view/6384f092-e16a-4214-5a1a-f10ee0ef4f04-15b5/screen/18e69208-8528-424a-a368-b2c5d530d235/PC-SP-Profile-Chooser- for new flow. Requires admin to create a new PIN when attempting to add a new profile. Note that the base branch is PR #539.

Checklist

  • The PR title starts with "Fix #bugnum: ", followed by a short, clear summary of the changes. (If this PR fixes part of an issue, prefix the title with "Fix part of #bugnum: ...".)
  • The PR explanation includes the words "Fixes #bugnum: ..." (or "Fixes part of #bugnum" if the PR only partially fixes an issue).
  • The PR follows the style guide.
  • The PR does not contain any unnecessary auto-generated code from Android Studio.
  • The PR is made from a branch that's not called "develop".
  • The PR is made from a branch that is up-to-date with "develop".
  • The PR's branch is based on "develop" and not on any other branch.
  • The PR is assigned to an appropriate reviewer in both the Assignees and the Reviewers sections.

Copy link
Member

@BenHenning BenHenning left a comment

Choose a reason for hiding this comment

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

Generally LGTM, but I didn't review in detail. Deferring to Rajat for a detailed review.

@BenHenning BenHenning removed their assignment Dec 11, 2019
Copy link
Contributor

@rt4914 rt4914 left a comment

Choose a reason for hiding this comment

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

All the test cases in AdminPinActivityTest are failing because of following reason.
After typing, the keyboard is still visible and submit button is behind the keyboard because of which perform(click()) is not working correctly.
Screenshot 2019-12-11 at 1 03 17 PM

Possible solution:

  1. Scroll to submit button before clicking on it.
  2. Hide the keyboard before clicking on submit button.

Also, I am seeing that you haven't used fragments in these, but in the entire app we are using fragments for containing everything. This applies to your PRs too. So what is the reason behind this? @jamesxu0 @BenHenning

@rt4914 rt4914 assigned jamesxu0 and unassigned rt4914 Dec 11, 2019
@jamesxu0
Copy link
Contributor Author

@BenHenning PTAL. I addressed all of Rajat's comments and fixed the test case.

@jamesxu0 jamesxu0 assigned BenHenning and unassigned jamesxu0 Dec 13, 2019
@BenHenning BenHenning assigned jamesxu0 and unassigned BenHenning Dec 13, 2019
Copy link
Member

@BenHenning BenHenning left a comment

Choose a reason for hiding this comment

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

Thanks @jamesxu0! Just a few lingering comments to address.

@BenHenning BenHenning assigned jamesxu0 and unassigned jamesxu0 Dec 14, 2019
@jamesxu0 jamesxu0 changed the base branch from profile-avatar-colors to develop December 14, 2019 01:04
@jamesxu0 jamesxu0 merged commit 9087f07 into develop Dec 14, 2019
@seanlip seanlip deleted the profile-admin-flow branch December 17, 2019 02:14
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.

Update profile creation flow when admin does not have a PIN (See mocks).
3 participants