-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[$250] Cards - In company cards settings page, on refresh entered details are not shown #56746
Comments
Triggered auto assignment to @mallenexpensify ( |
🚨 Edited by proposal-police: This proposal was edited at 2025-02-12 10:12:09 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.In company cards settings page, on refresh entered details are not shown What is the root cause of that problem?We do not have
Which causes the selectedFeed to the undefined and we do not get the values
What changes do you think we should make in order to solve the problem?We need to add What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?This is just a dependency addition and i don't think that we need a test for this, the values are not fetched on the update in onyx, so i think we can skip test for this issue What alternative solutions did you explore? (Optional) |
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Company card settings page shows empty name after refresh. What is the root cause of that problem?The card data is intentionally memoized once only. App/src/pages/workspace/companyCards/WorkspaceCompanyCardsSettingsPage.tsx Lines 42 to 44 in 5ddef34
However, after refresh, the onyx data is still loading, so the data is undefined. What changes do you think we should make in order to solve the problem?Add loading state to the memo deps.
We can show loading indicator when it's loading if needed. What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?N/A |
Job added to Upwork: https://www.upwork.com/jobs/~021890532491432510986 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @brunovjk ( |
@brunovjk 👀 plz on the proposals above. Thx |
Sure! Im on it :D |
🚨 Edited by proposal-police: This proposal was edited at 2025-02-18 02:31:42 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.In company cards settings page, on refresh entered details are not shown but displayed in preview and while revisiting the page. What is the root cause of that problem?After we refresh the page, both App/src/pages/workspace/companyCards/WorkspaceCompanyCardsSettingsPage.tsx Lines 41 to 44 in fbcd7dd
What changes do you think we should make in order to solve the problem?Add the loading status of
App/src/pages/workspace/companyCards/WorkspaceCompanyCardsSettingsPage.tsx Lines 41 to 44 in fbcd7dd
The reason we need to add both of them is when we reset cache or login again, Line 401 in fbcd7dd
OPTIONAL: We can show the loading page while the feed data is still loading To fix the deeplink case, I think we need to use
and also add
App/src/pages/workspace/companyCards/WorkspaceCompanyCardsSettingsPage.tsx Lines 41 to 44 in fbcd7dd
We can add only the
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?None What alternative solutions did you explore? (Optional)We can add App/src/pages/workspace/companyCards/WorkspaceCompanyCardsSettingsPage.tsx Lines 41 to 44 in fbcd7dd
And to fix the minor issue here, we can delay the API call instead of delaying the navigation logic because the problem of the minor issue is
App/src/pages/workspace/companyCards/WorkspaceCompanyCardsSettingsPage.tsx Lines 55 to 65 in 1eb00b0
Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job. |
ProposalPlease re-state the problem that we are trying to solve in this issue.In company cards settings page, on refresh entered details are not shown What is the root cause of that problem?
What changes do you think we should make in order to solve the problem?To resolve this issue, we just remove
const selectedFeed = getSelectedFeed(lastSelectedFeed, cardFeeds); Ran the pipeline to test ESLint and saw that it passed, so we don’t add useMemo here." What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?None What alternative solutions did you explore? (Optional)Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job. |
Reviewing proposals. |
Current assignee @brunovjk is eligible for the External assigner, not assigning anyone new. |
^ Sorry, was testing |
Thanks to everyone for the proposals. @twilight2294, @bernhardoj and @nkdengineer If we update the dependencies, the original issue disappears, but when I test it, I notice something else. If we clear the cache and try to access the settings via link, for example Screen.Recording.2025-02-17.at.19.31.12.mov |
@VickyStash, since you worked on this PR, specifically about this comment, can you tell me what unexpected feed change you were expecting when adding the dependencies? I believe that this may be causing this one. Thanks a lot. |
@brunovjk This is another case, if we access by deep link after resetting the cache, |
Updated proposal to fix this case. |
@brunovjk the fix was made for this minor issue. |
Thank you for the proposal @twilight2294 and @huult, but we should not use I think we can conclude that the root cause is due to @bernhardoj's proposal and @nkdengineer's proposal correctly address the issue by introducing a loading state dependency:
Next Steps:
Would love input from the internal team before we finalize the implementation. Thanks! 🎀👀🎀 C+ reviewed |
Triggered auto assignment to @danieldoglas, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@brunovjk, thanks for testing and checking the edge case. Let's include the deeplink in this fix as well. Once we have the proposals updated to fix those, I'll increase the issue $ based on how hard the fix is. |
Awesome! Thank you @danieldoglas
|
Thanks @nkdengineer, did you test it? Because here, it even solves our edge case, but the App kind of got worse. I'm off the computer now, I'll record a video later of my test. |
@brunovjk I tested and it works.
|
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Thanks @nkdengineer, I believe we can go with your proposal then, what do you think @danieldoglas? thanks a lot. 🎀👀🎀 C+ reviewed |
Current assignee @danieldoglas is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
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.0.97-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
Issue reported by: Applause Internal Team
Device used: Redmi note 10s android 13
App Component: Workspace Settings
Action Performed:
Expected Result:
In company cards settings page, on refresh entered details are not shown similarly it must not be displayed in preview and while revisiting the page.
Actual Result:
In company cards settings page, on refresh entered details are not shown but displayed in preview and while revisiting the page.
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6740346_1739345791710.Screenrecorder-2025-02-12-12-55-05-817.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @The text was updated successfully, but these errors were encountered: