-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Fix: Use different fallback receipt icon when displaying a Search row that has no receipt and isn't editable #44742
Conversation
My mac stopped working a few days ago, just got it back from repair. Working on Finalizing this PR! Sorry for the delay! 🙇 |
@s77rt PR is ready for your review! Noting one thing, The pay someone flow in app seems to have a problem on main where the request is marked Submitted instead of Reimbursed, making I've been trying to debug the root cause and the optimistic data is fine. The bug seems to be with how Onyx is managing the BE responses. @bernhardoj also observed the same thing when debugging a similar issue (with connected root cause) here |
What's the status on this one @neonbhai ? |
@neonbhai Any updates on this? |
Apologies for the delay 🙇 bought and setup a new pc PR is ready for review! Noting that when using a high traffic account not all reports are loaded in Onyx, this makes the Screen.Recording.2024-07-30.at.8.51.38.PM.mp4The icon updates after we click on it and the report is loaded. Simultaneously To fix this I have added an extra check for Paid and Done actions, since these transactions cannot be modified cc: @s77rt |
@neonbhai Can you please merge |
Merged main! |
@neonbhai Still seeing reports with the wrong icon Screen.Recording.2024-08-01.at.8.14.55.AM.mov |
Looks like this is still caused by the issue that not all report objects shown in search are loaded in Onyx 😥 Possible Solutions:
cc: @s77rt |
@neonbhai Can we use the existing fields: action, canDelete and canHold? |
We might be able to use canDelete, but I see a bug in app: When setting up a flow, where an Employee submits to an Approver -> Which then goes to the Admin The Approver and Requestor can see the receipt empty state, but cannot click on it to add a receipt: Screen.Recording.2024-08-02.at.7.43.32.PM.movAdmin's POV for a submitted Expense. The empty state is not clickable (cannot edit receipt) |
Here is the current behaviour of app: Flow: Employee submits to an Approver -> Which then goes to the Admin The expenses were made (not submitted yet)
The expenses were submitted
The expenses were approved
The expenses were paid
Is the behavior of the Approver and Admin not being able to edit the receipt in any step correct? And if a role cannot edit an expense, should they be seeing the receipt empty state? cc: @s77rt @luacmartins |
Reviewer Checklist
Screenshots/Videos |
@neonbhai If the user (no matter their role) cannot add a receipt they should not see the "add the receipt" icon |
This is not clear. Please change to:
Tag me once done |
Makes sense, updated! cc: @s77rt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
✋ 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 staging by https://github.com/luacmartins in version: 9.0.17-0 🚀
|
🚀 Deployed to production by https://github.com/marcaaron in version: 9.0.17-2 🚀
|
2 similar comments
🚀 Deployed to production by https://github.com/marcaaron in version: 9.0.17-2 🚀
|
🚀 Deployed to production by https://github.com/marcaaron in version: 9.0.17-2 🚀
|
Details
Fixed Issues
$ #44240
PROPOSAL: #44240 (comment)
Tests
Offline tests
Same as Tests step
QA Steps
Same as Tests step
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Web-2.mp4
MacOS: Desktop