Skip to content

Add Skeleton loading animation to the Wallet selector #455

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

Merged
merged 6 commits into from
May 23, 2025

Conversation

johnny9
Copy link
Collaborator

@johnny9 johnny9 commented May 21, 2025

This adds the first skeleton loading section to the desktop wallet. Specifically the WalletBadge at the top left corner that is used for selecting a wallet.

untitled.mp4

@johnny9 johnny9 changed the title Skeleton loading Add Skeleton loading animation to the Wallet selector May 21, 2025
@johnny9
Copy link
Collaborator Author

johnny9 commented May 21, 2025

gradientshimmer.mp4

Here is an attempt at the gradient shimmer

@johnny9 johnny9 force-pushed the skeleton-loading branch from 1f65d17 to 9a53889 Compare May 21, 2025 05:11
@johnny9
Copy link
Collaborator Author

johnny9 commented May 21, 2025

Update from 1f65d17 to 9a53889

  • Replaced the Animation in Skeleton with the gradient "shimmer" animation.

@GBKS
Copy link
Contributor

GBKS commented May 21, 2025

Looks great (from the video). Just built the code and tried to check it out in the app, but things load so quickly for me that I don't see it. Do I need to load it up with lots of transactions, or does it only show during IBD or so?

Small thing I noticed is that the content of the wallet display wiggles a bit horizontally when the name is shorter/longer than the balance. Could we please align things to the left?

40185

Copy link
Contributor

@MarnixCroes MarnixCroes left a comment

Choose a reason for hiding this comment

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

tested LGTM 9a53889

@johnny9 johnny9 force-pushed the skeleton-loading branch from 9a53889 to 99ca9fd Compare May 22, 2025 04:30
@johnny9
Copy link
Collaborator Author

johnny9 commented May 22, 2025

Update from 9a53889 to 99ca9fd

  • Removed semicolons in the qml
  • Removed useless anchor in Item

@johnny9
Copy link
Collaborator Author

johnny9 commented May 22, 2025

Looks great (from the video). Just built the code and tried to check it out in the app, but things load so quickly for me that I don't see it. Do I need to load it up with lots of transactions, or does it only show during IBD or so?

Small thing I noticed is that the content of the wallet display wiggles a bit horizontally when the name is shorter/longer than the balance. Could we please align things to the left?

Created an issue to track this. It should be possible to fix the alignment. #456

Copy link
Member

@hebasto hebasto left a comment

Choose a reason for hiding this comment

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

ACK bb95aa7, I have skimmed through the code and it looks OK.

@hebasto hebasto merged commit fa34a74 into bitcoin-core:main May 23, 2025
9 checks passed
hebasto added a commit that referenced this pull request May 23, 2025
1ba83b4 qml: Disable Send/Receive forms when loading (johnny9)
3a29670 qml: Add initialized property to WalletQmlController (johnny9)

Pull request description:

  During loading, the Send and Receive forms are disabled and greyed out.

  This includes the initialized property added to WalletQmlController just as in #455

  ![Screenshot from 2025-05-23 00-40-10](https://github.com/user-attachments/assets/efd5392e-e064-463a-ae84-2edb1a986ea0)
  ![Screenshot from 2025-05-23 00-39-56](https://github.com/user-attachments/assets/0b69493a-a2cb-425f-9202-f85e9418dfdc)

ACKs for top commit:
  MarnixCroes:
    tACK 1ba83b4

Tree-SHA512: 45b7324e77a529a1b7af7c663b701a346a292f2a8427088e3d0d51a5df856fadbf8b7b2c164eb0bbb7d0bf55dd48cc237d28d58fa58569b9fe8a5b507910b2dc
johnny9 pushed a commit to johnny9/bitcoin-core-app that referenced this pull request Jul 4, 2025
… Wallet selector

9a24e34 qml: Explicitly stop Skeleton Animation when not loading (johnny9)
933335e qml: Add fade-in animation to WalletBadge (johnny9)
264f0b1 qml: Add Skeleton loading animation to WalletBadge (johnny9)
0cfcffd qml: Introduce Skeleton.qml (johnny9)
0e0a957 qml: Fix walletqmlmodel.cpp include order (johnny9)
d8b12db qml: Add initialized property to WalletQmlController (johnny9)

Pull request description:

  This adds the first skeleton loading section to the desktop wallet. Specifically the WalletBadge at the top left corner that is used for selecting a wallet.

  https://github.com/user-attachments/assets/968c8da2-61af-459b-ad62-6b05c1ed7bb8

ACKs for top commit:
  hebasto:
    ACK 9a24e34, I have skimmed through the code and it looks OK.

Tree-SHA512: df9dda2bdf3d11965d2cf575ff8db7c9ea0ea97308edc3bd4e4ee65c5ac70c89f491cd26f7393858dd33ce9e8ccf3d90095a56d053797101c1aeee589edcbcbf
johnny9 pushed a commit to johnny9/gui-qml that referenced this pull request Jul 10, 2025
2d0a81f qml: Disable Send/Receive forms when loading (johnny9)
5b56c2c qml: Add initialized property to WalletQmlController (johnny9)

Pull request description:

  During loading, the Send and Receive forms are disabled and greyed out.

  This includes the initialized property added to WalletQmlController just as in bitcoin-core#455

  ![Screenshot from 2025-05-23 00-40-10](https://github.com/user-attachments/assets/efd5392e-e064-463a-ae84-2edb1a986ea0)
  ![Screenshot from 2025-05-23 00-39-56](https://github.com/user-attachments/assets/0b69493a-a2cb-425f-9202-f85e9418dfdc)

ACKs for top commit:
  MarnixCroes:
    tACK 2d0a81f

Tree-SHA512: 45b7324e77a529a1b7af7c663b701a346a292f2a8427088e3d0d51a5df856fadbf8b7b2c164eb0bbb7d0bf55dd48cc237d28d58fa58569b9fe8a5b507910b2dc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants