-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Update the account screen loading state #41481
Conversation
- Don't show state pills until MFA devices are loaded - Actually show the spinner on the passkey list - Fix the test flakiness
<RelativeBox> | ||
{fetchDevicesAttempt.status === 'processing' && ( | ||
// This trick allows us to maintain center alignment of the button | ||
// and display it along with the indicator. | ||
<BoxToTheRight mr={3} data-testid="indicator-wrapper"> | ||
<Indicator size={40} /> | ||
</BoxToTheRight> | ||
)} | ||
{button} | ||
</RelativeBox> |
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.
is this how we are going to display spinners for buttons now? i always thought the spinner be inside the button but 🤷♀️
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.
I think that a spinner inside a button is supposed to indicate that an operation performed by the button is pending. In this case, we are talking about a loading operation that triggers the button's availability.
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.
ah that makes sense 👍
One thing to note: This PR requires https://github.com/gravitational/teleport.e/pull/4128 to be merged first. |
Tested: loading the account settings screen with network throttling in the following scenarios:
|
Fixes #41402