Conversation
|
Hey, I noticed you changed If you want to automatically generate translations for other locales, an Expensify employee will have to:
Alternatively, if you are an external contributor, you can run the translation script locally with your own OpenAI API key. To learn more, try running: npx ts-node ./scripts/generateTranslations.ts --helpTypically, you'd want to translate only what you changed by running |
|
@shubham1206agra 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] |
|
@shubham1206agra Let's ignore this PR |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e5ad407ff7
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| const isPINBlocked = !!currentCard?.nameValuePairs?.isPINBlocked; | ||
| const isUkEuCard = supportsPINManagementFeatures(currentCard); | ||
| const isCardSuspendedAndPINBlocked = isUkEuCard && currentCard?.state === CONST.EXPENSIFY_CARD.STATE.STATE_SUSPENDED && isPINBlocked; | ||
| const isCardOpenAndPINBlocked = isUkEuCard && currentCard?.state === CONST.EXPENSIFY_CARD.STATE.OPEN && isPINBlocked; |
There was a problem hiding this comment.
Read PIN-block state from the physical card record
On combo-card pages, ExpensifyCardPage can be reopened with a virtual cardID — the existing virtual-card subflows already navigate back with that ID in ExpensifyCardVerifyAccountPage and ReportVirtualCardFraudPage. In that case currentCard resolves to the virtual card while currentPhysicalCard still points at the physical card that owns the PIN. Because the new blocked-PIN booleans are derived from currentCard, the page can stop showing the blocked-PIN banner/CTA after returning from a virtual-card flow even though the physical PIN row is still rendered. This should key off currentPhysicalCard instead of the route-selected card.
Useful? React with 👍 / 👎.
| interactive={isCardOpenAndPINBlocked} | ||
| titleStyle={styles.walletCardNumber} | ||
| brickRoadIndicator={isCardOpenAndPINBlocked ? CONST.BRICK_ROAD_INDICATOR_STATUS.ERROR : undefined} | ||
| shouldShowRightIcon={isCardOpenAndPINBlocked} | ||
| onPress={isCardOpenAndPINBlocked ? () => Navigation.navigate(ROUTES.SETTINGS_WALLET_CARD_CHANGE_PIN_REQUIREMENT.getRoute(cardID)) : undefined} |
There was a problem hiding this comment.
Preserve domain-card routing for the change-PIN flow
ExpensifyCardPage is mounted from both the wallet stack and SCREENS.DOMAIN_CARD.DOMAIN_CARD_DETAIL, and the adjacent reveal/report-fraud handlers branch on route.name to keep workspace/domain-card users on settings/card/:cardID. This new PIN-blocked path always navigates to SETTINGS_WALLET_* routes here (and the offline-success path in UnblockCardPIN.tsx plus ChangePINRequirementPage.tsx do the same), so users who opened the card from the domain/workspace flow are bounced into the personal wallet stack and the back button no longer returns to their original context.
Useful? React with 👍 / 👎.
Explanation of Change
Fixed Issues
$ #80557
PROPOSAL:
Tests
Offline tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
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