fix: Hide expired virtual Expensify cards from the Expensify Wallet#84845
fix: Hide expired virtual Expensify cards from the Expensify Wallet#84845lakchote merged 4 commits intoExpensify:mainfrom
Conversation
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
@dukenv0307 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] |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ec7a6940df
ℹ️ 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".
joekaufmanexpensify
left a comment
There was a problem hiding this comment.
Good for product
| if (!card.nameValuePairs?.validThru) { | ||
| return false; | ||
| } | ||
| const currentTime = DateUtils.getDBTime(); |
There was a problem hiding this comment.
validThru is stored as YYYY-MM-DD format, while getDBTime() returns YYYY-MM-DD HH:mm:ss format (e.g., 2026-02-25 14:30:00). so a card with validThru: "2026-02-25" would be considered expired at any point on 2026-02-25 itself, even at midnight. For card expiration, typically a card should be valid through the entire day of its validThru date. The comparison should be date-to-date, not date-to-datetime. cc @lakchote
There was a problem hiding this comment.
@dukenv0307 validThru is stored with YYYY-MM-DD HH:mm:ss format
|
@nkdengineer there are conflicts |
|
@lakchote I updated. |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2026-03-12.at.22.30.26.movAndroid: mWeb ChromeScreen.Recording.2026-03-12.at.22.19.39.moviOS: HybridAppScreen.Recording.2026-03-12.at.22.33.09.moviOS: mWeb SafariScreen.Recording.2026-03-12.at.22.03.25.movMacOS: Chrome / SafariScreen.Recording.2026-03-12.at.22.00.00.mov |
|
@nkdengineer can you please merge main? |
|
@dukenv0307 I updated. |
|
the failed test isn't related to our change |
|
🚧 @lakchote 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. |
|
@lakchote @dukenv0307 @nkdengineer Can this one please be tested internally, How to set expiry for card, By Single use and setting expiry? |
|
🚀 Deployed to staging by https://github.com/lakchote in version: 9.3.37-0 🚀
|
|
Deploy Blocker #85184 was identified to be related to this PR. |
|
My PR only change in the wallet page which is not related to the blocker. |
|
@lakchote @dukenv0307 @nkdengineer Can this one please be tested internally, This requires having an expired card to test. |
|
@lakchote I think we can ask the internal who reported this issue to test this one. |
Explanation of Change
fix: Hide expired virtual Expensify cards from the Expensify Wallet
Fixed Issues
$ #84752
PROPOSAL:
Tests
Precondition: Has an virtual Expensify Card which is expired
Offline tests
QA Steps
Same as test
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
Screen.Recording.2026-03-11.at.14.34.05.mov
Android: mWeb Chrome
Screen.Recording.2026-03-11.at.14.20.36.mov
iOS: Native
Screen.Recording.2026-03-11.at.14.34.40.mov
iOS: mWeb Safari
Screen.Recording.2026-03-11.at.14.34.59.mov
MacOS: Chrome / Safari
Screen.Recording.2026-03-11.at.14.13.26.mov