fix: Handle company Cards errors and initial loading states#78305
Conversation
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
Partially based on changes by @narefyev91 in Expensify#76620
Happy to do it, if this would help. Otherwise, if I am the only one experiencing this, fine with me to do 3 too. |
|
I have to be OOO tomorrow, so I will just go ahead and do 2 now and send it to both of you so you're not blocked on me while I am out. |
|
DMed to both of you @tgolen @chrispader |
Worth noting this from here is not fixed for me either. NAB for this PR if we want to get it merged, but we should fix it in a follow up if we go that route. |
|
@carlosmiceli Can you trigger the translation generation flow for this PR? |
|
@chrispader btw we still have the failing test 🤔 |
@hungvu193 yes i see, i'll check once more |
|
@carlosmiceli the unit tests pass now! |
|
I'll complete the checklist today |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2026-01-26.at.22.16.30.movAndroid: mWeb ChromeScreen.Recording.2026-01-26.at.22.16.30.moviOS: HybridAppScreen.Recording.2026-01-26.at.21.59.39.moviOS: mWeb SafariScreen.Recording.2026-01-26.at.21.45.32.movMacOS: Chrome / SafariScreen.Recording.2026-01-26.at.21.27.34.mov |
|
@joekaufmanexpensify do we need a final review from you? |
joekaufmanexpensify
left a comment
There was a problem hiding this comment.
Good from my perspective. We will fix some follow ups in a new PR
|
🚀 Deployed to staging by https://github.com/carlosmiceli in version: 9.3.9-0 🚀
|
|
🚀 Deployed to production by https://github.com/roryabraham in version: 9.3.9-2 🚀
|
@joekaufmanexpensify How did you break the card connection btw? |
|
I used a real credit card account and revoked access to it in the bank app to break the connection. We are almost done building a test oAuth direct feed connection available on staging that will soon be able to be used to test the broken connection state though. We will announce it, once ready. |
|
I am a contributor from LinhChu Sovereign Executor. I can reproduce this Android keyboard issue and provide a fix using optimized KeyboardAvoidingView logic. \n\nPlease assign this to me. I'm starting the fix now! ?? |
@joekaufmanexpensify @tgolen @carlosmiceli
Explanation of Change
Adds a central implementation for determining whether a policy/user has card feed errors and adapts all locations where we show RBRs for these errors.
This PR extracts logic computing card feed errors to an Onyx derived value. As part of these changes, this PR also includes some refactoring and extraction of logic in
CardUtilsandCardFeedUtilsand updated types, that better reflect the current behaviorFixed Issues
$ #76438
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 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
MacOS: Chrome / Safari
Without card feed errors:
With card feed errors: