Skip to content
This repository has been archived by the owner on Jun 2, 2022. It is now read-only.

[FSSS-108] Feat: Add Skeleton Loading #317

Merged
merged 42 commits into from
Feb 21, 2022
Merged

Conversation

lucasfp13
Copy link
Contributor

@lucasfp13 lucasfp13 commented Feb 8, 2022

What's the purpose of this pull request?

This PR intends to add Skeleton Loading components to be visible while the real components are being loaded.

The Skeleton components will be used as a fallback for lazy-loaded components or while data is not ready.

How does it work?

We can observe the behavior when accessing a page. As long as the data is not ready, the skeleton components will be visible.

Desktop version:

Screen Shot 2022-02-09 at 17 25 42

Screen Shot 2022-02-09 at 17 25 55

Screen Shot 2022-02-09 at 17 26 59

Mobile version:

Screen Shot 2022-02-10 at 01 06 09Screen Shot 2022-02-10 at 01 05 07
Screen Shot 2022-02-10 at 01 05 21

References

Checklist

  • CHANGELOG entry added

@lucasfp13 lucasfp13 self-assigned this Feb 8, 2022
@vtex-sites
Copy link

vtex-sites bot commented Feb 8, 2022

Preview is ready

This pull request generated a Preview

👀   Preview: https://preview-317--base.preview.vtex.app
🔬   Go deeper by inspecting the Build Logs
📝   based on commit 263371a

@lucasfp13 lucasfp13 changed the base branch from develop to master February 8, 2022 22:00
@lucasfp13 lucasfp13 force-pushed the feat/add-skeleton-loading branch from 596332e to c0257d2 Compare February 8, 2022 22:06
@netlify
Copy link

netlify bot commented Feb 8, 2022

✔️ Deploy Preview for basestore ready!

🔨 Explore the source changes: 15cd92e

🔍 Inspect the deploy log: https://app.netlify.com/sites/basestore/deploys/6213b9c2f1f8300007c041c4

😎 Browse the preview: https://deploy-preview-317--basestore.netlify.app

@gatsby-cloud
Copy link

gatsby-cloud bot commented Feb 8, 2022

Gatsby Cloud Build Report

basestore

🎉 Your build was successful! See the Deploy preview here.

Build Details

View the build logs here.

🕐 Build time: 2m

Performance

Lighthouse report

Metric Score
Performance 🔶 78
Accessibility 💚 100
Best Practices 💚 100
SEO 💚 93

🔗 View full report

@gatsby-cloud
Copy link

gatsby-cloud bot commented Feb 8, 2022

Gatsby Cloud Build Report

basestore

🎉 Your build was successful! See the Deploy preview here.

Build Details

View the build logs here.

🕐 Build time: 4m

Performance

Lighthouse report

Metric Score
Performance 🔶 84
Accessibility 💚 100
Best Practices 💚 100
SEO 💚 93

🔗 View full report

@lucasfp13 lucasfp13 marked this pull request as ready for review February 10, 2022 04:40
@lucasfp13 lucasfp13 force-pushed the feat/add-skeleton-loading branch from 3fe9744 to 9c3fc37 Compare February 10, 2022 04:42
Copy link
Member

@eduardoformiga eduardoformiga left a comment

Choose a reason for hiding this comment

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

💀 💀 💀 Amazing Job! 🎉

I left some suggestions.

src/components/sections/ProductGallery/ProductGallery.tsx Outdated Show resolved Hide resolved
src/components/skeletons/Shimmer/shimmer.scss Outdated Show resolved Hide resolved
src/components/skeletons/Shimmer/shimmer.scss Outdated Show resolved Hide resolved
src/components/skeletons/Shimmer/shimmer.scss Outdated Show resolved Hide resolved
@eduardoformiga
Copy link
Member

eduardoformiga commented Feb 10, 2022

Just notice now. Could you please remove it from the product-gallery.scss and update the CHANGELOG.md?

// Check it after apply Skeletons.
.product-listing__data-loading {

@hellofanny
Copy link
Contributor

Just notice now. Could you please remove it from the product-gallery.scss and update the CHANGELOG.md?

// Check it after apply Skeletons.
.product-listing__data-loading {

Oh yeah! Nice cathingggg 🚀

@lucasfp13 lucasfp13 force-pushed the feat/add-skeleton-loading branch from 6c17cd9 to 3b54f9a Compare February 12, 2022 16:19
@lucasfp13 lucasfp13 force-pushed the feat/add-skeleton-loading branch from f034975 to f120de5 Compare February 16, 2022 13:43
@lucasfp13 lucasfp13 force-pushed the feat/add-skeleton-loading branch from b077995 to 6d0ee04 Compare February 21, 2022 15:34
@hellofanny
Copy link
Contributor

Just notice now. Could you please remove it from the product-gallery.scss and update the CHANGELOG.md?

// Check it after apply Skeletons.
.product-listing__data-loading {

Oh yeah! Nice cathingggg 🚀

Checked here! ✅

Copy link
Contributor

@hellofanny hellofanny left a comment

Choose a reason for hiding this comment

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

Well done!! 🚀 🚀 What a huge PR 🙈

@lucasfp13 lucasfp13 merged commit 263371a into master Feb 21, 2022
@lucasfp13 lucasfp13 deleted the feat/add-skeleton-loading branch February 21, 2022 17:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants