Skip to content
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

fix: show spinner when needed in squareappIcon #2436

Merged
merged 1 commit into from
May 12, 2023

Conversation

acezard
Copy link
Contributor

@acezard acezard commented May 11, 2023

Previously it was rendered too liberally.
Now it is rendered only when

  • Component is in "loading" variant
  • Component has an animationState (success or failed),
    which triggers after a loading finishes. We need this
    because we don't want to hide the spinner as soon as the loading is over
    We want to wait for the ending animation too so the transition looks
    smooth.

Also refactored the spinner logic out of the main component for clarity

@bundlemon
Copy link

bundlemon bot commented May 11, 2023

BundleMon

Unchanged files (2)
Status Path Size Limits
dist/cozy-ui.min.css
19.67KB +5%
dist/cozy-ui.utils.min.css
9.99KB +5%

No change in files bundle size

Groups updated (1)
Status Path Size Limits
transpiled/react/**
589.19KB (+89B +0.01%) -

Final result: ✅

View report in BundleMon website ➡️


Current branch size history | Target branch size history

@acezard acezard linked an issue May 12, 2023 that may be closed by this pull request
Previously it was rendered too liberally.
Now it is rendered only when
- Component is in "loading" variant
- Component has an animationState (success or failed),
which triggers after a loading finishes. We need this
because we don't want to hide the spinner as soon as the loading is over
We want to wait for the ending animation too so the transition looks
smooth.

Also refactored the spinner logic out of the main component for clarity
@Ldoppea Ldoppea force-pushed the fix--only-show-spinner-when-needed-in-squareappIcon branch from 97b3211 to 575f1aa Compare May 12, 2023 10:29
@Ldoppea Ldoppea merged commit 0e92a42 into master May 12, 2023
@Ldoppea Ldoppea deleted the fix--only-show-spinner-when-needed-in-squareappIcon branch May 12, 2023 12:27
@cozy-bot
Copy link

🎉 This PR is included in version 85.0.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Ldoppea added a commit to cozy/cozy-home that referenced this pull request May 12, 2023
`cozy-ui` has been upgraded to `85.0.1` to retrieve a fix that hide the
SquareAppIcon spinner when a connector is not running

Related PR: cozy/cozy-ui#2436
Ldoppea added a commit to cozy/cozy-home that referenced this pull request May 12, 2023
`cozy-ui` has been upgraded to `85.0.1` to retrieve a fix that hide the
SquareAppIcon spinner when a connector is not running

Related PR: cozy/cozy-ui#2436
Ldoppea added a commit to cozy/cozy-home that referenced this pull request May 12, 2023
`cozy-ui` has been upgraded to `85.0.1` to retrieve a fix that hide the
SquareAppIcon spinner when a connector is not running

Related PR: cozy/cozy-ui#2436
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SquareAppIcon : glitch with spinner
3 participants