-
Notifications
You must be signed in to change notification settings - Fork 104
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: [IOBP-863,IOBP-864] Removed legacy wallet & payments features #6210
base: master
Are you sure you want to change the base?
Conversation
Affected stories |
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.
Great work, it works as expected! 🎊
What I suggest here is to remove some unused files in payments folder:
ts/features/payments/checkout/types/PaymentHistory.ts
ts/features/payments/checkout/types/WalletPaymentPspSortType.ts
ts/features/payments/common/components/PaymentCardBankLogo.tsx
ts/features/payments/home/components/PaymentsListItemTransaction.tsx
Use npx knip
to double check them
// wallets with undefined creation dates... so the check | ||
// is unnecessary. | ||
|
||
isNaN(a.created as any) || isNaN(b.created as any) |
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.
Instead of use any
here what do you think about this: isNaN(Number(a.created)) || isNaN(Number(b.created))
? Will this approach be more type-safe?
|
||
// the error is undefined in case we weren't able to decode it, it should be | ||
// interpreted as a generic error | ||
export const paymentVerifica = createAsyncAction( |
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.
Could you confirm if it was intentional to leave this declaration in Italian?
Short description
This PR removes all elements related to the old wallet, payment flow, and onboarding process. It includes the deletion of screens, components, sagas, reducers, and other elements associated with these deprecated features.
N.B: The goal of this PR is solely to remove the legacy payments flow and does not include refactoring the deprecated components displayed on some screens such as IDPay. Please keep this in mind when reviewing the PR.
List of changes proposed in this pull request
How to test
To test this PR, both the new payment flow and the onboarding flow must work correctly. Additionally, it's important to test a payment initiated from the Message screen. @forrest57 @Vangaorth, this PR cannot be merged until it is approved by the communication team.
Please test everything both in local environment and UAT env. (by enabling the feature flag
Ambiente di test pagoPA
and building the app with the .env.production variables)