-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[IndexTable] Update loading state #7390
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
Conversation
|
/snapit |
size-limit report 📦
|
|
🫰✨ Thanks @mrcthms! Your snapshots have been published to npm. Test the snapshots by updating your yarn add @shopify/plugin-polaris@0.0.0-snapshot-release-20221013112928yarn add @shopify/polaris-migrator@0.0.0-snapshot-release-20221013112928yarn add @shopify/polaris@0.0.0-snapshot-release-20221013112928 |
|
/snapit |
|
🫰✨ Thanks @mrcthms! Your snapshots have been published to npm. Test the snapshots by updating your yarn add @shopify/plugin-polaris@0.0.0-snapshot-release-20221013122010yarn add @shopify/polaris-migrator@0.0.0-snapshot-release-20221013122010yarn add @shopify/polaris@0.0.0-snapshot-release-20221013122010 |
|
/snapit |
|
🫰✨ Thanks @mrcthms! Your snapshots have been published to npm. Test the snapshots by updating your yarn add @shopify/plugin-polaris@0.0.0-snapshot-release-20221013123047yarn add @shopify/polaris-migrator@0.0.0-snapshot-release-20221013123047yarn add @shopify/polaris@0.0.0-snapshot-release-20221013123047 |
|
/snapit |
|
🫰✨ Thanks @mrcthms! Your snapshots have been published to npm. Test the snapshots by updating your yarn add @shopify/plugin-polaris@0.0.0-snapshot-release-20221013124431yarn add @shopify/polaris-migrator@0.0.0-snapshot-release-20221013124431yarn add @shopify/polaris@0.0.0-snapshot-release-20221013124431 |
kyledurand
left a comment
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.
A few concerns with this approach:
- Screen reader users. We need a way to clearly convey that loading is happening and some actions might be blocked
- Low vision users. There's not a lot of contrast going on here and the animation doesn't tell me that loading is happening anyway
- Performance. We used to have a shimmer on skeleton components that worked in a similar fashion. This was causing I think GPU or CPU issues on some machines. @GoodForOneFare do you remember any of the details around that issue? I seem to remember the results you got weren't from a mac or you were using a different tool to measure the processors
|
The old skeleton shimmer animation would overload CPU on Shopify Macbooks. The removal PR suggests "Slight performance problems", but multiple Macbooks recorded >400% CPU usage just from the animation. @colinbendell looked into accelerating the animation, but others were adamant about removing it regardless of performance improvements. I used MacOS's The CPU history looks like this: |
|
/snapit |
1 similar comment
|
/snapit |
|
🫰✨ Thanks @mrcthms! Your snapshots have been published to npm. Test the snapshots by updating your yarn add @shopify/plugin-polaris@0.0.0-snapshot-release-20221013162357yarn add @shopify/polaris-migrator@0.0.0-snapshot-release-20221013162357yarn add @shopify/polaris@0.0.0-snapshot-release-20221013162357 |
|
🫰✨ Thanks @mrcthms! Your snapshots have been published to npm. Test the snapshots by updating your yarn add @shopify/plugin-polaris@0.0.0-snapshot-release-20221013162911yarn add @shopify/polaris-migrator@0.0.0-snapshot-release-20221013162911yarn add @shopify/polaris@0.0.0-snapshot-release-20221013162911 |


WHY are these changes introduced?
Fixes https://github.com/Shopify/web/issues/74392
Updates the loading state of the IndexTable to be a pulsing effect across all rows. The spinner for loading is now being handled as part of the filtering UI
Here's how it looks in a spinstance: https://admin.web.table-loading.marc-thomas.eu.spin.dev/store/shop1/orders?inContextTimeframe=none&delivery_method=
WHAT is this pull request doing?
Screen.Recording.2022-10-13.at.14.16.22.mov
🎩 checklist
README.mdwith documentation changes