[NoQA] Implement frozen-by-admin info and ask-to-unfreeze functionality#83794
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 |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: cc41517329
ℹ️ 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".
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
@codex review |
|
Codex Review: Didn't find any major issues. Hooray! ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
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". |
joekaufmanexpensify
left a comment
There was a problem hiding this comment.
Core issue from design doc
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
|
Props(canUnfreezeCard, onAskToUnfreezePress) are missing for |
|
@Pujan92 Updated |
|
Plz fix the Typescript failure |
| const handleAskToUnfreezePress = useCallback(() => { | ||
| const cardHolderWorkspaceChatReportID = getPolicyExpenseChat(currentCard?.accountID, policyIDForCurrentCard)?.reportID; | ||
| if (!cardHolderWorkspaceChatReportID) { | ||
| return; | ||
| } | ||
| Navigation.navigate(ROUTES.REPORT_WITH_ID.getRoute(cardHolderWorkspaceChatReportID)); | ||
| }, [currentCard?.accountID, policyIDForCurrentCard]); | ||
|
|
There was a problem hiding this comment.
Aren't these changes needed in the workspace expensify card details page?
There was a problem hiding this comment.
No, this would be done by a member, and members will be able to access it via wallet page
Pujan92
left a comment
There was a problem hiding this comment.
LGTM! Only the unfreeze api isn't tested yet as I believe it is yet to be deployed.
Screen.Recording.2026-03-13.at.17.31.36.mov
|
@MariaHCD Can you have a look? |
|
@Pujan92 @ShridharGoel the BE PR to allow admins to unfreeze a card was deployed to production. Could you please retest? |
|
@MariaHCD LGTM! Screen.Recording.2026-03-17.at.21.46.56.mov |
|
@Pujan92 Added frozen text in MenuItem here itself |
|
@ShridharGoel could you take a look at the ESLint failure? |
|
Doesn't seem related to the changes here, merging main |
Looks good!
|
|
@ShridharGoel ESLint check is still failing unfortunately :( |
|
🚧 @MariaHCD 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 production by https://github.com/Julesssss in version: 9.3.43-3 🚀
|

Explanation of Change
Implement frozen-by-admin info and ask-to-unfreeze functionality.
Fixed Issues
$ #81648
PROPOSAL:
Tests
Precondition: Have a card frozen by an admin.
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand 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
Video
Screen.Recording.2026-02-28.at.5.32.48.PM.mov