-
Notifications
You must be signed in to change notification settings - Fork 36
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
Conversation
- 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.
Codecov ReportAttention: Patch coverage is
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. |
- 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.
|
There was a problem hiding this 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?
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
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 theProps
interface, and modifying theOverviewBankingView
component to pass the loading state.Enhancements to
FinanceQuickTransfer
component:src/sections/finance/components/finance-quick-transfer.tsx
: ImportedLoadingScreen
component to display a loading indicator.src/sections/finance/components/finance-quick-transfer.tsx
: Updated theProps
interface to include aloading
boolean.src/sections/finance/components/finance-quick-transfer.tsx
: Modified the component to conditionally renderLoadingScreen
based on theloading
prop.Updates to
OverviewBankingView
component:src/sections/finance/index.tsx
: AddedloadingProfiles
to theuseProfileFollowing
hook to track the loading state of profile followings.src/sections/finance/index.tsx
: Passed theloadingProfiles
state toFinanceQuickTransfer
to display the loading indicator when necessary. [1] [2]- Updatedfinance-quick-transfer.tsx
to include aloading
prop and displayLoadingScreen
during loading state.index.tsx
to pass theloadingProfiles
state to theFinanceQuickTransfer
component. This ensures better user feedback when profile data is being fetched.