-
Notifications
You must be signed in to change notification settings - Fork 34
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
Standardizing spinner placement and adding missing spinners, Fixes #689 #3226
Conversation
deleteBucket={handleDeleteBucket} | ||
onSubmit={handleSubmit} | ||
/> | ||
{busy ? ( |
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.
Prettier, why do you like unnecessary parenthesis?
@@ -196,6 +194,8 @@ export default function SimpleReview({ | |||
); | |||
}; | |||
|
|||
console.warn(records); |
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.
leftover
formData={formData} | ||
onSubmit={onSubmit} | ||
/> | ||
{busy || formData == null ? ( |
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.
Can you add a comment here to explain why we have this condition on formData
?
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.
Added a comment, but it's just redux lifecycle quirkiness
} else if ( | ||
session.authenticating || | ||
session.busy || | ||
(records.loading && signoffSource && signoffDest) |
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 don't recall why we had this condition
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 we were just having one spinner for any of the conditions. In this case if we're waiting for auth, waiting for session info to load, waiting for the records to load, or waiting for the signoff info to load just show a spinner.
But now we've broken it up. If we have enough context to render the tabs (auth and session) we do so. And then we show a spinner under the tabs if we're waiting for the records or signoff info still.
Goal of this PR is to add missing spinners and standardize spinner placement.
BucketTabs
), spinner should exist inside of the tab control if we have enough contextCollectionDataList
), spinner should exist inside the table if we have enough context