-
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
[HOLD for payment 2024-06-03] [Violations - Pending Receipts] Display the rter
Violation with the Pending Pattern
#39533
Comments
Triggered auto assignment to @mallenexpensify ( |
|
rter
Violation with the Pending Patternrter
Violation with the Pending Pattern
Removing the HOLD on this |
Gonna assign to track if we end up merging this with the other pending changes in this issue Slack convo in SWM- https://expensify.slack.com/archives/C04878MDF34/p1712273151578619 cc @BrtqKr :) |
@BrtqKr could you comment so I can assign you? thanks! |
Hey, I'd like to take over this issue |
in progress |
@mallenexpensify, @grgia, @BrtqKr Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
cc @smelaa are you working on this? If so, please comment so I can switch assignments |
Hi, I am Aleksandra Smela from Software Mansion, an expert agency, and I would like to work on this issue |
Hi, as I am diving into the code I have a question to the design.
From what I understand we need to show „pending” hover/message/icon from the level of |
rter
Violation with the Pending Patternrter
Violation with the Pending Pattern
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.75-1 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
If no regressions arise, payment will be issued on 2024-06-03. 🎊 For reference, here are some details about the assignees on this issue:
|
BugZero Checklist: The PR adding this new feature has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
Payment Summary
BugZero Checklist (@mallenexpensify)
|
@ishpaul777 can you propose regression test steps plz? |
i dont have the full context for the feature (like how to get the rter Violation with a real user account). I am pretty sure the design doc in the issue Description should have the testing steps for whole feature. @mallenexpensify Can you please confirm i dont have access to docs |
The issue misses the priorty tag, but we worked on this one as a HIGH priorty ticket so i think it should be $500 @yuwenmemon Can you please help in evaluatuion |
Yeah, that's accurate @ishpaul777 👍 |
I'm assuming this is related to us not needing regression steps here cuz it'll be covered in testing steps as part of the design doc. @ishpaul777 , I posted this in #expensify-open-source yesterday
So the default amount here would be $250. if you believe compensation should be higher, follow the process here |
@mallenexpensify Well the issue was created before April 5th so isn't the default still be $500 ? |
Thanks for the link @ishpaul777 , for this instance, you are correct. I commented on that thread to state this shouldn't be the practice for any future price updates.
|
Current assignee @mallenexpensify is eligible for the Bug assigner, not assigning anyone new. |
@ishpaul777 can you please accept the job and reply here once you have? |
Accepted 😄 |
Contributor+: @ishpaul777 paid $500 via Upwork. Thanks all! |
Design Doc: https://docs.google.com/document/d/1zJqlTe_RajuBtfQYvbMx8PpXgA9CEnUGVyuqZihQ-ok/edit
Tracking GH: https://github.com/Expensify/Expensify/issues/372206
HOLD ON https://github.com/Expensify/Expensify/issues/384996
Similar to how we have TransactionUtils.isPending and TransactionUtils.isReceiptBeingScanned in NewDot to help us with other pending UI flows, we'll add a new method:
TransactionUtils.hasPendingRTERViolation
:TransactionUtils.hasPendingRTERViolation
This will have a similar structure to the current TransactionUtils methods that check for / retrieve violations.
transactionID
:string
transactionViolations
:TransactionViolation[]
- the set of violations for that specific transaction. For components where we are subscribing to all violations we can use the output of TransactionUtils.getTransactionViolationstransactionID
in Onyx are therter
violation, withpendingPattern
set totrue
Additionally, because this will be called frequently with TransactionUtils.isPending and TransactionUtils.isReceiptBeingScanned let's also make and utilize a method that returns
true
if any of those returntrue
:hasPendingUI()
We'll outline this in further detail below, but we'll call this method in:
The first two already have access to the transactionViolations onyx collection key. However, we will need to add it to
MoneyRequestHeader.tsx
.Updates to
ReportActionItems: MoneyRequestPreview
/ReportPreview
Now that we know if our transaction has the "7-Day Hold"
rter
violation, we can adjust the UI to reflect that it's "Pending". For ReportActionItem rows, we will do the same thing that was outlined for pending transactions and scanning receipts in the Update how we display / report expenses doc.We will show the "pending" hover/message/icon UI for these two cases:
hasPendingRTERViolation
- in addition to possibly beingisScanning || isPending
as outlined in that doc).hasPendingRTERViolation
or similarly,isScanning || isPending
).false
in this case.Updates to MoneyReportHeader
Similar to what we're doing for the Report Preview above, if the report contains only transactions with the
rter
violation (which again, we'll alias ashasPendingRTERViolation
) we'll show the Next Steps banner indicating that the receipts are pending match with a credit card.We'll also hide the Submit/Approve/Pay buttons in this case as well (i.e. all transactions are pending).
In the case of the "One-Expense" Chat, we'll use the same pattern as the
MoneyRequestHeader
as described below.Updates to MoneyRequestHeader
If
hasPendingRTERViolation
istrue
, we'll show aMoneyRequestHeaderStatusBar
in theMoneyRequestHeader
here. This will be similar to what we already do forisPending
andisScanning
. The message will utilize the same hourglass icon and have the copy as seen below.Let's also refactor this to be a bit less repetitive. We can create a
getPendingType()
method that checks if the transaction isRTER
vsSCANNING
vsPENDING
and returns the translations keyed by that type."Mark as cash" Button
This will be covered in a separate issue
Issue Owner
Current Issue Owner: @mallenexpensifyThe text was updated successfully, but these errors were encountered: