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

feat(finance): add loading state to quick transfer #544

Merged
merged 3 commits into from
Feb 18, 2025

Conversation

cswni
Copy link
Contributor

@cswni cswni commented Feb 14, 2025

This pull request introduces a loading state to the FinanceQuickTransfer component and updates related components accordingly. The most important changes include adding a loading screen, updating the Props interface, and modifying the OverviewBankingView component to pass the loading state.

Enhancements to FinanceQuickTransfer component:

Updates to OverviewBankingView component:

  • src/sections/finance/index.tsx: Added loadingProfiles to the useProfileFollowing hook to track the loading state of profile followings.
  • src/sections/finance/index.tsx: Passed the loadingProfiles state to FinanceQuickTransfer to display the loading indicator when necessary. [1] [2]- Updated finance-quick-transfer.tsx to include a loading prop and display LoadingScreen during loading state.
  • Adjusted index.tsx to pass the loadingProfiles state to the FinanceQuickTransfer component. This ensures better user feedback when profile data is being fetched.

- Updated `finance-quick-transfer.tsx` to include a `loading` prop and display `LoadingScreen` during loading state.
- Adjusted `index.tsx` to pass the `loadingProfiles` state to the `FinanceQuickTransfer` component.
This ensures better user feedback when profile data is being fetched.
- Removed unnecessary `console.log` statement from `finance-quick-transfer.tsx`.
- Cleaned up the code to improve maintainability and reduce noise in the console.
@cswni cswni added the Refactor label Feb 14, 2025
@cswni cswni requested review from geolffreym and Jadapema February 14, 2025 22:16
@cswni cswni self-assigned this Feb 14, 2025
Copy link

codecov bot commented Feb 14, 2025

Codecov Report

Attention: Patch coverage is 0% with 7 lines in your changes missing coverage. Please review.

Please upload report for BASE (next@5dfd325). Learn more about missing BASE report.
Report is 4 commits behind head on next.

Files with missing lines Patch % Lines
...ions/finance/components/finance-quick-transfer.tsx 0.00% 4 Missing ⚠️
src/sections/finance/index.tsx 0.00% 3 Missing ⚠️
Additional details and impacted files
@@          Coverage Diff           @@
##             next    #544   +/-   ##
======================================
  Coverage        ?   8.40%           
======================================
  Files           ?     558           
  Lines           ?   30759           
  Branches        ?     630           
======================================
  Hits            ?    2585           
  Misses          ?   27705           
  Partials        ?     469           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

- Renamed `Props` to `FinanceQuickTransferProps` in `src/sections/finance/components/finance-quick-transfer.tsx`.
- Updated component typing to use the new interface name.

This change improves code readability and ensures clarity by using a more descriptive naming convention.
Copy link
Member

@geolffreym geolffreym left a comment

Choose a reason for hiding this comment

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

@cswni is this PR ready? I am not sure what loader is this, could you upload an image or screen to understand better the context?

@cswni
Copy link
Contributor Author

cswni commented Feb 18, 2025

@cswni is this PR ready? I am not sure what loader is this, could you upload an image or screen to understand better the context?

This is the screen, when contacts are loading show the animation loader. If profile has following, show the carousel; if not, an empty placeholder indicating to perform a search.
Captura de pantalla 2025-02-18 101810

Copy link
Member

@geolffreym geolffreym left a comment

Choose a reason for hiding this comment

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

LGTM

@geolffreym geolffreym merged commit 62775b6 into next Feb 18, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

feat: add loader when loading followers en el quick transfer, appear the blankslate while loading
2 participants