Fix paid system message is not highlighted when clicking on the message link#44719
Conversation
|
I put it in draft because:
|
Yeah, I looked at the PR, I think we can go with second option. |
|
Great, I will put this ready for review at least once the other PR is done |
|
@hungvu193 Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
@hungvu193 ready for review! |
src/pages/home/ReportScreen.tsx
Outdated
|
|
||
| return PaginationUtils.getContinuousChain(sortedAllReportActions, reportActionPages ?? [], (reportAction) => reportAction.reportActionID, reportActionIDFromRoute); | ||
| }, [reportActionIDFromRoute, sortedAllReportActions, reportActionPages]); | ||
| const linkedAction = useMemo( |
There was a problem hiding this comment.
If we introduce linkedAction here, should we update isLinkedMessageAvailable to use linkedAction instead? They have similar logic.
const isLinkedMessageAvailable = !!linkedAction; // Boolean(linkedAction)There was a problem hiding this comment.
It's updated from main. I just merged it.
Reviewer Checklist
Screenshots/VideosAndroid: NativeCan't record because of Android keyboard bug iOS: NativeScreen.Recording.2024-07-13.at.22.34.38.moviOS: mWeb SafariScreen.Recording.2024-07-13.at.22.39.35.movMacOS: Chrome / SafariChrome.movMacOS: DesktopDesktop.mov |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/marcaaron in version: 9.0.8-1 🚀
|
|
🚀 Cherry-picked to staging by https://github.com/Beamanator in version: 9.0.8-3 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.0.8-6 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.0.9-5 🚀
|

Details
We can't link to the paid system message because it's considered a one-transaction thread report. This PR fixes it.
Fixed Issues
$ #44588
PROPOSAL: #44588 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
PR 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
android.mp4
Android: mWeb Chrome
android.mweb.mp4
iOS: Native
ios.native.mp4
iOS: mWeb Safari
ios.mweb.mp4
MacOS: Chrome / Safari
web.mp4
MacOS: Desktop
dekstop.mp4