Skip to content

Card - Company card created is not shown in preview #57477

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
4 of 8 tasks
IuliiaHerets opened this issue Feb 26, 2025 · 36 comments
Closed
4 of 8 tasks

Card - Company card created is not shown in preview #57477

IuliiaHerets opened this issue Feb 26, 2025 · 36 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2

Comments

@IuliiaHerets
Copy link

IuliiaHerets commented Feb 26, 2025

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Version Number: V9.1.6-0
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Yes, reproducible on both
If this was caught during regression testing, add the test name, ID and link from TestRail: #57375
Issue reported by: Applause Internal Team
Device used: Redminote 10s android 13
App Component: Other

Action Performed:

Pre-condition: This issue can be reproduced with a new non-validated or very old validated accounts

  1. Go to https://staging.new.expensify.com/home
  2. Go to workspace settings - enable company card
  3. Tap company card
  4. Create a card via American Express and complete the flow

Expected Result:

Company card created must be shown in preview

Actual Result:

Company card created is not shown in preview

Workaround:

Unknown

Platforms:

  • Android: Standalone
  • Android: HybridApp
  • Android: mWeb Chrome
  • iOS: Standalone
  • iOS: HybridApp
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6755019_1740573677210.Screenrecorder-2025-02-26-18-07-51-901.mp4

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @koko57
@IuliiaHerets IuliiaHerets added Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 labels Feb 26, 2025
Copy link

melvin-bot bot commented Feb 26, 2025

Triggered auto assignment to @strepanier03 (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

@DylanDylann
Copy link
Contributor

cc @koko57

@koko57
Copy link
Contributor

koko57 commented Feb 26, 2025

I can look into this tomorrow. @DylanDylann thanks for pinging!

@koko57
Copy link
Contributor

koko57 commented Feb 27, 2025

I will look at this while working on the #57403 - maybe it could be done in one PR

@koko57
Copy link
Contributor

koko57 commented Feb 27, 2025

macOS/Safari is checked as the platform that the problem is occurring on, but I can't repro there

Screen.Recording.2025-02-27.at.11.41.48.mp4

staging v9.1.7-0

I will check android

@koko57
Copy link
Contributor

koko57 commented Feb 28, 2025

I was able to reproduce it on Android app. Looking into this

@koko57
Copy link
Contributor

koko57 commented Feb 28, 2025

@mountiny @DylanDylann I'm getting this errors when trying to add a feed or even just after entering Company Cards page - IIRC we had a similar problem some time ago and Vicky handled it somehow. Do you happen to remember it? Today she's ooo, so I can't ask her, but I will try to search through the Slack conversations. It strange that it happens only on mobile.

Image
Image

@mountiny
Copy link
Contributor

mountiny commented Mar 2, 2025

@koko57 are you able to see if the key exists before creating the feed and its an array? I agree this looks odd that its only on a single platform

@koko57
Copy link
Contributor

koko57 commented Mar 3, 2025

I will check this

@joekaufmanexpensify
Copy link
Contributor

Note: I can also reproduce this on android hybrid app with new validated accounts.

@koko57
Copy link
Contributor

koko57 commented Mar 4, 2025

I had some problems with building for android (again 🙄) but I wanted to know if it's only on android and tried on iOS - it's also reproducible on iOS

@koko57
Copy link
Contributor

koko57 commented Mar 4, 2025

Strange... after fighting almost half a day with android builds and being able to reproduce a few times on iOS, now when I finally was able to run android I cannot reproduce at all. Neither on android nor iOS

Screen.Recording.2025-03-04.at.16.49.56.mp4

@koko57
Copy link
Contributor

koko57 commented Mar 4, 2025

May I ask for a retest? I'll be ooo till EOW, if it's still reproducible and you'd like to be fixed asap, someone from my team can handle it - especially Artem, Vicky and Nikolay as they worked on the Company Cards project

@narefyev91
Copy link
Contributor

Will pick this up to check

@narefyev91
Copy link
Contributor

Tested on Android and Android Web. Was able to debug network - probably issue coming from here:

Image

@mountiny maybe you can check from BE side?

@mountiny
Copy link
Contributor

mountiny commented Mar 6, 2025

91ba06fad84f7dfc-SJC

@mountiny
Copy link
Contributor

mountiny commented Mar 6, 2025

404 Feed ID not found

feedID passed gl10251

Which means private_gl10251CompanyID was not set, which is set when the feed is setup by concierge

@mountiny
Copy link
Contributor

mountiny commented Mar 6, 2025

I am not sure if this would cause the issue though PR is here https://github.com/Expensify/Auth/pull/14409 and we can retest after this

@mountiny
Copy link
Contributor

mountiny commented Mar 8, 2025

PR was merged and will be deployed on Monday

@melvin-bot melvin-bot bot added the Overdue label Mar 10, 2025
@mountiny
Copy link
Contributor

@koko57 @DylanDylann This was deployed, can you retest please?

@melvin-bot melvin-bot bot removed the Overdue label Mar 10, 2025
@DylanDylann
Copy link
Contributor

Can't reproduce. @joekaufmanexpensify Could you please check again?

Screen.Recording.2025-03-11.at.11.13.40.mov

@joekaufmanexpensify
Copy link
Contributor

I can still reproduce. Google Pixel 9 on hybrid app v9.1.11-3.

2025-03-11_11-16-32.mp4

Copy link

melvin-bot bot commented Mar 12, 2025

@strepanier03 @koko57 @narefyev91 @mountiny @DylanDylann this issue was created 2 weeks ago. Are we close to a solution? Let's make sure we're treating this as a top priority. Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

@DylanDylann
Copy link
Contributor

@koko57 @narefyev91 Could you guys reproduce this bug anymore?

@koko57
Copy link
Contributor

koko57 commented Mar 12, 2025

@DylanDylann I'll check it

@koko57
Copy link
Contributor

koko57 commented Mar 12, 2025

I can recreate again - for me the request RequestFeedSetup returns correctly but I still get this error:

Image

bc the cardFeeds for ONYXKEYS.COLLECTION.SHARED_NVP_PRIVATE_DOMAIN_MEMBER is an array. When we first enter the CompanyCrads page and the OpenPolicyCompanyCardsPage is called we get a correct value an {}, so it's the first time we get this error. Later when we try to add the feed we get the same.

I wondered if the default value was somehow defined somewhere, but I've noticed something strange when trying to check the values from the request on web - when resizing the screen and having the narrow display, OpenPolicyInitialPage request is sent (it is not sent on full-screen) and we get a wrong value for sharedNVP_private_domain_member_ - an array instead of an object

Image

when first set to array, after getting a correct value from OpenPolicyCompanyCardsPage or RequestFeedSetup we cannot replace the array

Screen.Recording.2025-03-12.at.19.16.01.mp4

so we need to fix the value for sharedNVP_private_domain_member_ that is sent as a response for OpenPolicyInitialPage

cc @mountiny

@koko57
Copy link
Contributor

koko57 commented Mar 12, 2025

but I wonder why it wasn't reproducible for some time 🤔

@mountiny
Copy link
Contributor

Raised a PR for this https://github.com/Expensify/Web-Expensify/pull/45868

Copy link

melvin-bot bot commented Mar 18, 2025

@koko57 Huh... This is 4 days overdue. Who can take care of this?

@melvin-bot melvin-bot bot added the Overdue label Mar 18, 2025
@koko57
Copy link
Contributor

koko57 commented Mar 18, 2025

@mountiny is the PR https://github.com/Expensify/Web-Expensify/pull/45868 already merged? If yes, I can retest it

@melvin-bot melvin-bot bot removed the Overdue label Mar 18, 2025
@mountiny
Copy link
Contributor

@koko57 yea please its in staging

@koko57
Copy link
Contributor

koko57 commented Mar 18, 2025

@mountiny
The request gets a correct response with an {} instead of []
Image

Screen.Recording.2025-03-18.at.11.36.54.mp4
Simulator.Screen.Recording.-.iPhone.15.Pro.-.2025-03-18.at.11.40.26.mp4

but I've found something weird (look at the first vid) - for a new workspace company cards are already checked as enabled (?!). I had it on web, on mobile it haven't occurred. I will check it and if it's reproducible reliably, if so I think we need to open an issue for it (if it hasn't been opened already).

But this issue - FIXED 🎉 I think we can close it

@koko57
Copy link
Contributor

koko57 commented Mar 18, 2025

ok it is reproducible, now I could even reproduce it on mobile. And I was able to repro it on the web full screen I don't think it's because of this empty object being sent for OpenPolicyInitialPage response

@narefyev91
Copy link
Contributor

@koko57 Company card toggle is set to be enabled by default for any new workspaces. It was the new requirements

@koko57
Copy link
Contributor

koko57 commented Mar 18, 2025

aaah ok, thanks @narefyev91!

so case closed 😅

@mountiny
Copy link
Contributor

Haha yeah feature not a bug

Thank you for looking!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2
Projects
Development

No branches or pull requests

7 participants