-
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
RBR transaction thread is disappearing from the LHN when navigating to another chat #41507
Conversation
@jjcoffee Did you face the following problem on Desktop/mweb
It worked well on macos web chrome web-resize.mp4 |
@tienifr Hmm it might be a known issue. Does it happen for all violations? I'll try and get this tested by Monday. |
@jjcoffee I just tested the case when RM didn't have the category
Do you remember the known issue? |
@tienifr I think you just need to enable the violations beta in Permissions.ts. |
@tienifr This doesn't seem to work for me. With most recent mode: desktop-chrome-2024-05-06_12.02.05.mp4With focus mode: desktop-chrome-2024-05-06_12.38.19.mp4 |
@jjcoffee can you help check the comment above |
@tienifr Sorry I'm not sure I understand what you're asking, can you provide some more detail? |
@jjcoffee Let's check the image below. It's the betas value returned from BE and it doesn't contain ![]() That causes the condition failed Line 90 in e0b6a06
-> In my proposal, we want to show the report if It's the inconsistency. |
Beside, the logic to show the red dot dees not include that check so we can see the red dot, but |
@tienifr Ah I think I see what you mean, but we can't just ask to enable the |
@jjcoffee yah, I think it's added on purpose. @AndrewGable Can you help check the above concern? Thanks |
@tienifr Not sure if this is ready for re-review or not, but there's a failing jest test. |
@jjcoffee I fixed the test failed. It's ready for review |
FYI violations beta should be removed in ~2 weeks |
@jjcoffee I used |
@tienifr Ah gotcha, thanks! Can you update the test steps to include that the beta needs to be enabled? |
@jjcoffee Updated! |
I updated the videos |
Okay I guess we can leave that for now then! |
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.
Thanks for persevering with this! Tests well and LGTM 🚀
@cead22 Thanks for your feedback. I updated the PR |
@cead22 any updates? |
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.
This is waiting for @AndrewGable 's review
src/libs/OptionsListUtils.ts
Outdated
} | ||
const parentReportActions = allReportActions ? allReportActions[`${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${parentReportID}`] ?? {} : {}; | ||
const parentReportAction = parentReportActions[parentReportActionID] ?? null; | ||
return (!!parentReportAction && ReportUtils.shouldDisplayTransactionThreadViolations(report, transactionViolations, parentReportAction)) ?? false; |
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.
Fail fast?
if (!parentReportAction) {
return false;
}
...
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.
I think they're the same. If parentReportAction
is false, shouldDisplayTransactionThreadViolations
won't run. ANW, I updated the PR as your suggestion. Thanks
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.
Yup, the idea behind failing fast isn't to change functionality, but to make functions easier to parse/read
@AndrewGable Friendly bump for review 🙇 |
@tienifr - Conflicts |
@AndrewGable I resolved the conflicts. We're good to go |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
FYI I'm reverting this PR because it caused these blockers:
Please work on this fix again taking into account the issues above |
🚀 Deployed to production by https://github.com/luacmartins in version: 1.4.81-11 🚀
|
Details
Fixed Issues
$ #36778
PROPOSAL: #36778 (comment)
Tests
Prerequisite:
violations
is in betas, orall betas
is enableOffline tests
Same as above
QA Steps
Prerequisite:
violations
is in betas, orall betas
is enablePR 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
Screen.Recording.2024-05-24.at.10.55.56.mov
Android: mWeb Chrome
Screen.Recording.2024-05-24.at.10.51.46.mov
iOS: Native
Screen.Recording.2024-05-24.at.10.55.43.mov
iOS: mWeb Safari
Screen.Recording.2024-05-02.at.22.34.38.mov
MacOS: Chrome / Safari
web-resize.mp4
MacOS: Desktop
Screen.Recording.2024-05-24.at.10.53.47.mov