flexile icon indicating copy to clipboard operation
flexile copied to clipboard

perf(ui): skeleton loader for payouts page and modal

Open ayushsharma74 opened this issue 2 months ago • 8 comments

Description

Added a skeleton loader for the /settings/payout page and bank account modal

Demo Videos

Without Equity Section

https://github.com/user-attachments/assets/b8cc2cbd-b7ac-42b1-a5ea-618fccc1e828

With Equity Section

https://github.com/user-attachments/assets/917cada6-ae16-4307-887b-544818dbddd1

Screenshots

Page

Dark Mode Light Mode
screenshot-2025-10-27_15-25-17 screenshot-2025-10-27_15-25-58
localhost_3000_settings_payouts (1) localhost_3000_settings_payouts

Modal

Dark Mode Light Mode
screenshot-2025-10-27_15-41-49 screenshot-2025-10-27_15-42-09
screenshot-2025-10-27_15-42-49 screenshot-2025-10-27_15-42-30

AI Disclosure

I have used ai to fix TypeScript errors in BackAccountModal.tsx when i changed useSuspenceQuery to useQuery

ayushsharma74 avatar Oct 27 '25 10:10 ayushsharma74

@laugardie I've made the requested design changes. Please take a look when you have time.

ayushsharma74 avatar Oct 27 '25 10:10 ayushsharma74

@ayushsharma74

Modal

There’s a slight jumping effect when opening the add/edit payout method modal. It would feel smoother if the modal kept a consistent height during loading and after content appears.

https://github.com/user-attachments/assets/5b87000a-77b1-4cff-b5cb-6fabc2420b1e

It looks a bit inconsistent that the first input shows while the others use skeletons. Could we make all fields use skeletons for consistency?

Could you include the 3 rectangle skeletons shown in the screenshot as part of the loading state to represent transfer method?

Screenshot 2025-10-28 at 09 58 35

Payouts page

There’s also a small jumping effect in the section titles when loading.

Similar to the modal, it feels visually inconsistent to show a skeleton loader for the payout method while the Equity section appears immediately.

We could keep the section headers visible but keep the section data loading, and only show the actual content once all sections are ready for a smoother experience.

laugardie avatar Oct 28 '25 10:10 laugardie

@laugardie thanks for the review, just a quick question for clarification

We could keep the section headers visible but keep the section data loading

So i should keep the equity section also in loading while other sections are loading?

ayushsharma74 avatar Oct 28 '25 14:10 ayushsharma74

Yes, please.

laugardie avatar Oct 28 '25 15:10 laugardie

Hey @laugardie sorry for the delay, I’ve pushed the requested changes. Please take a look whenever you get a chance.

https://github.com/user-attachments/assets/6360d2d4-cfc0-43a5-b366-21b5729cc82f

ayushsharma74 avatar Nov 11 '25 06:11 ayushsharma74

Thanks for the changes @ayushsharma74! Looks good to me @slavingia _a

laugardie avatar Nov 11 '25 09:11 laugardie

Waiting for green build

slavingia avatar Nov 19 '25 01:11 slavingia

@slavingia One test was failing because PR #1504 replaced "Pay Now" with "Approve", and the change wasn’t reflected in that test. I've pushed a fix for it.

This flaky test is still failing, and it appears to be unrelated:

image

ayushsharma74 avatar Nov 24 '25 10:11 ayushsharma74

Build fails

slavingia avatar Dec 19 '25 22:12 slavingia

We only merge green builds, even if flakey.

slavingia avatar Dec 19 '25 22:12 slavingia