Repository navigation
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! |
jjcoffee
left a comment
There was a problem hiding this comment.
Thanks for persevering with this! Tests well and LGTM 🚀
|
@cead22 Thanks for your feedback. I updated the PR |
|
@cead22 any updates? |
cead22
left a comment
There was a problem hiding this comment.
This is waiting for @AndrewGable 's review
| } | ||
| 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.
Fail fast?
if (!parentReportAction) {
return false;
}
...
There was a problem hiding this comment.
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.
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:
violationsis in betas, orall betasis enableOffline tests
Same as above
QA Steps
Prerequisite:
violationsis in betas, orall betasis enablePR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.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