-
Notifications
You must be signed in to change notification settings - Fork 402
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
List admin accounts UI #303
List admin accounts UI #303
Conversation
|
||
/** | ||
* Suppress React 16.8 act() warnings globally. | ||
* The React team's fix won't be out of alpha until 16.9.0. |
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.
Note that 16.9.0 is out, and breaks nothing while obviating the need for this warning suppression utility. However, our Semantic UI React dependency (and perhaps others) uses features deprecated in 16.9.0, and so deprecation warnings appear during tests. I would prefer to wait until all of our dependencies are fully compatible with 16.9.0, before upgrading.
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.
Looks good
render: ({ promoterIdentityPoolId, promoterEmailAddress }) => | ||
promoterIdentityPoolId | ||
? `${promoterEmailAddress} (${promoterIdentityPoolId})` | ||
: '', |
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.
Should this be empty string or throw / display error modal? This represents a pretty horrific edge case, right (we have a user with no identity pool ID or email address...)?
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.
Not quite - there will always be at least one Account without a promoter, which is the initial Admin account. (There can be more if added via the Cognito dashboard, or carried forward during migration.)
Description of changes:
This PR introduces UI and tests for listing accounts in the Admin user pool group.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.