-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Fix: [Payment card / Subscription] When clicking "Change payment", past data still shows on new form #45334
Conversation
Added recordings for Web/Desktop as for native we are not supporting add payment card feature. |
@@ -72,7 +59,7 @@ function AddPaymentCard() { | |||
<HeaderWithBackButton title={translate('subscription.paymentCard.addPaymentCard')} /> | |||
<View style={styles.containerWithSpaceBetween}> | |||
<PaymentCardForm | |||
shouldShowPaymentCardForm={shouldShowPaymentCardForm} | |||
shouldShowPaymentCardForm |
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.
I think we should remove this prop completely.
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.
Initially, I thought the same but here we use both the values so we can't remove the prop.
App/src/pages/workspace/members/WorkspaceOwnerPaymentCardForm.tsx
Lines 79 to 80 in 5b436d9
<PaymentCardForm | |
shouldShowPaymentCardForm={shouldShowPaymentCardForm} |
@blimpich I see a bug, when the user changes the card with new details those aren't updated in the display section. It might be because the AddPaymentCard API onyx response isn't sending data to make |
Good catch! We're aware of that and having a bug logged here for it. I think that covers the bug you are seeing? |
Reviewer Checklist
Screenshots/VideosAndroid: NativeN/AAndroid: mWeb ChromeCleanShot.2024-07-13.at.11.09.18.mp4iOS: NativeN/AiOS: mWeb SafariCleanShot.2024-07-13.at.11.16.26.mp4MacOS: Chrome / SafariCleanShot.2024-07-12.at.17.29.28.mp4MacOS: DesktopCleanShot.2024-07-13.at.10.33.53.mp4 |
I am referencing here a bit different issue, not the delay in the display but new card details won't swap with the old one even though the addPaymentCard API has succeeded. Let me know if this is not clear, I will take and share the video here. |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/blimpich in version: 9.0.7-3 🚀
|
🚀 Cherry-picked to staging by https://github.com/thienlnam in version: 9.0.7-4 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Deployed to production by https://github.com/thienlnam in version: 9.0.7-8 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.0.8-6 🚀
|
Details
#44886
Fixed Issues
$ #44886
PROPOSAL: #44886 (comment)
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Screen.Recording.2024-07-12.at.18.58.12.mov
MacOS: Desktop
Screen.Recording.2024-07-12.at.23.42.20.mov