-
Notifications
You must be signed in to change notification settings - Fork 3.4k
feat 22876 allow users to update the card address via update address link #28907
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
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
| 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 🚀
|
| 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 addresslink to allow users updating their card addressFixed Issues
$ #22876
PROPOSAL:
Tests
Add mocked data in
IntialSettingsPage.jsOffline tests
QA Steps
/settings/wallet/card/expensify.comPR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.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