-
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
[Pending Payment][$250] IOU - mWeb - Duplicate red dot error not shown in conversation & report page #46375
Comments
Triggered auto assignment to @VictoriaExpensify ( |
@VictoriaExpensify FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors |
We think that this bug might be related to #vip-vsp |
ProposalPlease re-state the problem that we are trying to solve in this issue.Duplicate red dot error not shown in conversation & report page What is the root cause of that problem?We don't set App/src/components/ReportActionItem/MoneyRequestPreview/MoneyRequestPreviewContent.tsx Line 130 in 08bb00b
What changes do you think we should make in order to solve the problem?create new variable to check if there is any duplicate
And include it in
Need to move this code above the What alternative solutions did you explore? (Optional)The type of duplicate violation is create new variable to check if it has violation with warning type
And include it in
RESULT -1-New-Expensify.12.mp4 |
ProposalPlease re-state the problem that we are trying to solve in this issue.IOU - mWeb - Duplicate red dot error not shown in conversation & report page What is the root cause of that problem?
What changes do you think we should make in order to solve the problem?We need to also check for
/**
* Checks if any violations for the provided transaction are of type 'violation'
*/
function hasViolation(transactionID: string, transactionViolations: OnyxCollection<TransactionViolations>, shouldCheckOnlyViolationType: boolean): boolean {
return !!transactionViolations?.[ONYXKEYS.COLLECTION.TRANSACTION_VIOLATIONS + transactionID]?.some((violation: TransactionViolation) => {
if (shouldCheckOnlyViolationType) {
return violation.type === CONST.VIOLATION_TYPES.VIOLATION;
}
return true;
});
}
/**
* Checks if any violations for the provided transaction are of type 'notice'
*/
function hasOtherTypesViolation(transactionID: string, transactionViolations: OnyxCollection<TransactionViolation[]>): boolean {
return !!transactionViolations?.[ONYXKEYS.COLLECTION.TRANSACTION_VIOLATIONS + transactionID]?.some(
(violation: TransactionViolation) => violation.type === CONST.VIOLATION_TYPES.NOTICE || violation.type === CONST.VIOLATION_TYPES.WARNING,
);
}
const hasWarningTypeViolations = !!(
TransactionUtils.hasWarningTypeViolation(transaction?.transactionID ?? '-1', transactionViolations) &&
ReportUtils.isPaidGroupPolicy(iouReport) &&
canUseViolations
);
const shouldShowRBR = hasNoticeTypeViolations || hasViolations || hasFieldErrors || (!isFullySettled && !isFullyApproved && isOnHold) || hasWarningTypeViolations; Also include App/src/components/ReportActionItem/MoneyRequestPreview/MoneyRequestPreviewContent.tsx Line 223 in 08bb00b
Some improvements that can be made:
What alternative solutions did you explore? (Optional) |
Issue reproducible: screen-20240730-095731.mp4Agree this is buggy and should be fixed. Also agree this relates to VSB |
Job added to Upwork: https://www.upwork.com/jobs/~0102ecd093c6e7220c |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @thesahindia ( |
@nyomanjyotisa, do you know what types of cases come under warning-type violations? We need to determine whether we need the red dot error for all warning-type violations cases or just for the duplicate case. |
I'm not sure about all the cases for warning-type violations. I think we should ask in Slack |
@cead22 @JmillsExpensify, can you please take a look here? Do we need to show the red dot on preview for all warnings or just for duplicate? |
Just for duplicates and for violations with |
@VictoriaExpensify, @thesahindia Whoops! This issue is 2 days overdue. Let's get this updated quick! |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Yes, what @cead22 said sounds good! |
let's go with @nyomanjyotisa's proposal. 🎀 👀 🎀 C+ reviewed |
Triggered auto assignment to @stitesExpensify, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 @nyomanjyotisa 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
Assigning @nyomanjyotisa to the issue |
This issue has not been updated in over 15 days. @stitesExpensify, @VictoriaExpensify, @nyomanjyotisa, @thesahindia eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
Did automatization fail for this issue? It seems it's ready to be paid |
Yeah it has - will get on it. Thanks for flagging @pecanoro |
Current assignee @thesahindia is eligible for the External assigner, not assigning anyone new. |
Payment summary: Sorry for the delayed payment, thanks for your work on this issue. |
$250 approved for @thesahindia |
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: 9.0.13
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
Duplicate red dot error must be shown in conversation & report page
Actual Result:
Duplicate red dot error not shown in conversation & report page but error displayed in expense details page
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6554809_1722096890143.review.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: