-
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
[$250] 'Approve' Button Incorrectly Displayed for Pending Expensify Card Transactions #53101
Comments
Triggered auto assignment to @sakluger ( |
This has been labelled "Needs Reproduction". Follow the steps here: https://stackoverflowteams.com/c/expensify/questions/16989 |
Edited by proposal-police: This proposal was edited at 2024-11-26 01:04:55 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.When navigating to the Search page and searching for an expense associated with an Expensify Card transaction in a pending state, the "Approve" button is incorrectly displayed for pending transaction. What is the root cause of that problem?It seems we did not consider the pending status of transaction while showing approve button. Line 298 in 2ce0764
What changes do you think we should make in order to solve the problem?we can add this check here:
can be simplified to early return view if the transaction is pending What alternative solutions did you explore? (Optional)or use in : Line 6850 in 2ce0764
|
ProposalPlease re-state the problem that we are trying to solve in this issue.When navigating to the Search page and searching for an expense associated with a pending Expensify Card transaction, the "Approve" button is incorrectly displayed for the pending transaction What is the root cause of that problem?In the condition for displaying the Approve button on the Search page, we have not included checks for pending card transactions. Line 298 in 2ce0764
What changes do you think we should make in order to solve the problem?In here, We need to include conditions to check if all transactions are pending, similar to what we implemented here
What alternative solutions did you explore? (Optional) |
@sakluger Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Job added to Upwork: https://www.upwork.com/jobs/~021863621928114678264 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @fedirjh ( |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @paultsimura ( |
Hey @paultsimura - we have a few proposals pending review. Could you please take a look when you have a chance? Thanks! |
Hey @shawnborton, is there a way to create a Pending Expensify Card Transaction by a Contributor / C+? |
@Shahidullah-Muffakir / @cretadn22 did you manage to reproduce this issue? If yes – please share the steps to create such a transaction 🙏 |
@paultsimura I'm not entirely sure, @grgia or @luacmartins any idea? |
I'm not sure if we have any way of doing that in staging. Maybe we can mock the data by manually merging it into Onyx, e.g.
I'm not sure if that'd help |
I can take this over, since I can replicate with dummy transaction data similar to what @luacmartins suggests above, but we also need to add data for the search under the relevant Onyx.merge('transactions_<TRANSACTIONID>', {bank: "Expensify Card", cardId: 4, status: "Pending"})
Onyx.merge('snapshot_<SNAPSHOT_ID>', {data: {transactions_<TRANSACTIONID>: {bank: "Expensify Card", cardId: 4, status: "Pending"}}}) 53101repro-2024-12-10_14.18.36.mp4 |
Let's go with @cretadn22's proposal, as they handle the additional case of multiple pending transactions. 🎀👀🎀 C+ reviewed |
Triggered auto assignment to @mountiny, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@mountiny please assign @jjcoffee here following this thread. |
📣 @paultsimura 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @cretadn22 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
Hey @paultsimura and @jjcoffee - for C+ payment, should we split this between you both or should it go fully to @jjcoffee? |
Fully to @jjcoffee |
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:
Reproducible in staging?: Needs Reproduction
Reproducible in production?: Needs Reproduction
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?:
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: @shawnborton
Slack conversation (hyperlinked to channel name): ts_external_expensify_expense
Action Performed:
Expected Result:
The "Approve" button should not be displayed on the expense row for transactions in a pending state, The button should only appear when the transaction is actionable
Actual Result:
An "Approve" button is displayed for the pending transaction, even though no approval action can be taken at this stage and clicking the "Approve" button results in no action or feedback, as expected for a pending transaction.
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
CleanShot.2024-11-25.at.17.43.29.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @paultsimuraThe text was updated successfully, but these errors were encountered: