-
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
feat 22876 allow users to update the card address via update address link #28907
feat 22876 allow users to update the card address via update address link #28907
Conversation
This reverts commit 356f371.
Is there something wrong with translations? I havent noticed |
You changed translation key from 'homeAddress' to just 'address' - but you forgot to change it in one more place - which now cause a crash on that page #28907 (comment) |
@narefyev91 |
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.
code LGTM, but we have conflicts.
I don't think these QA steps as written are something that QA can do. I will update them for you and mark this as |
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.
Found a small thing while testing.
src/ROUTES.ts
Outdated
@@ -78,6 +78,10 @@ export default { | |||
SETTINGS_ADD_DEBIT_CARD: 'settings/wallet/add-debit-card', | |||
SETTINGS_ADD_BANK_ACCOUNT: 'settings/wallet/add-bank-account', | |||
SETTINGS_ENABLE_PAYMENTS: 'settings/wallet/enable-payments', | |||
SETTINGS_WALLET_CARDS_DIGITAL_DETAILS_UPDATE_ADDRESS: { | |||
route: 'settings/wallet/cards/:domain/digital-details/update-address', |
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.
Actually I think it should be card
and not cards
. Maybe it would help to use the prefix here for consistency:
Lines 74 to 75 in cb883e8
SETTINGS_WALLET_DOMAINCARDS: { | |
route: '/settings/wallet/card/:domain', |
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.
Good catch Marc, I agree. @MrMuzyk
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.
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.
@marcaaron @grgia
looking at the codebase we actually have more cases of /cards than /card ATM. Should I change all of them to /card
?
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'd go head and update them. Would be good to be consistent about this one.
…sers-to-update-the-card-address-via-update-address-link
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!
@marcaaron could you review/merge? |
✋ 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/marcaaron in version: 1.3.85-0 🚀
|
🚀 Deployed to production by https://github.com/francoisl in version: 1.3.85-4 🚀
|
🚀 Deployed to staging by https://github.com/marcaaron in version: 1.3.86-0 🚀
|
🚀 Deployed to production by https://github.com/francoisl in version: 1.3.86-5 🚀
|
@@ -71,22 +71,26 @@ export default { | |||
SETTINGS_ABOUT: 'settings/about', | |||
SETTINGS_APP_DOWNLOAD_LINKS: 'settings/about/app-download-links', | |||
SETTINGS_WALLET: 'settings/wallet', | |||
SETTINGS_WALLET_DOMAINCARDS: { | |||
SETTINGS_WALLET_DOMAINCARD: { |
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.
Hey, shouldn't the line below also be changed? I think you might forget changing that.
cc @MrMuzyk, @narefyev91
Details
Added
Update address
link to allow users updating their card addressFixed Issues
$ #22876
PROPOSAL:
Tests
Add mocked data in
IntialSettingsPage.js
Offline tests
QA Steps
/settings/wallet/card/expensify.com
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
Web
web.mov
Mobile Web - Chrome
android.chrome.mov
Mobile Web - Safari
ios.safari.mov
Desktop
desktop.mov
iOS
ios.native.mov
Android
android.native.mov