Use correct cardName translation key for personal card rename flow#88736
Use correct cardName translation key for personal card rename flow#88736
Conversation
The personal card edit name page and card details header menu were using the 'cardNumber' translation key instead of 'cardName', causing the label to show "Card number" instead of "Card name". Co-authored-by: mkhutornyi <mkhutornyi@users.noreply.github.com>
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
@MelvinBot add Tests/QA Steps and complete author checklist (Don't use |
|
Updated the PR description with Tests/QA Steps and completed the author checklist. Please add screenshots/videos for each platform before marking as ready for review. |
|
@MelvinBot mark as ready for review |
|
Marked this PR as ready for review. |
|
@mkhutornyi Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppandroid.movAndroid: mWeb ChromeiOS: HybridAppios.moviOS: mWeb Safarimsafari.movMacOS: Chrome / Safariweb.mov |
|
🚧 @amyevans has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
✋ 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/amyevans in version: 9.3.62-13 🚀
Bundle Size Analysis (Sentry): |
|
No help site changes required. I reviewed all articles under The docs already use generic language (e.g., "Rename the card with a custom nickname") and don't reference the specific UI label text ("Card number" / "Card name") that this PR fixes. Since this is purely a UI label bug fix (wrong translation key), no documentation update is needed. |
|
🚀 Deployed to staging by https://github.com/amyevans in version: 9.3.63-1 🚀
Bundle Size Analysis (Sentry): |
|
No help site changes required. The docs under
This PR only fixes a UI translation key mismatch ( |
|
🚀 Deployed to staging by https://github.com/amyevans in version: 9.3.64-0 🚀
Bundle Size Analysis (Sentry): |
|
No help site changes are required for this PR. The relevant article ( |
Explanation of Change
The personal card edit name page and card details header menu were using the
workspace.moreFeatures.companyCards.cardNumbertranslation key (which resolves to "Card number") instead ofworkspace.moreFeatures.companyCards.cardName(which resolves to "Card name"). This caused the label to incorrectly show "Card number" instead of "Card name" when editing a personal card's name.Changed 4 occurrences of the wrong key across two files:
PersonalCardEditNamePage.tsx: header title, input label, and aria-labelPersonalCardDetailsHeaderMenu.tsx: menu item descriptionFixed Issues
$ #88555
PROPOSAL: #88555 (comment)
Tests
Offline tests
N/A - this is a label-only change with no network dependency.
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.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
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari