Improve ReportActions debugging#56867
Conversation
|
@DylanDylann 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] |
|
@DylanDylann any ETA on reviewing this one? |
|
@VickyStash The system message is displayed incompletely
|
@DylanDylann I've investigated the issue, and it looks like the problem is in the Parser.htmlToText function.
I'm not sure if it should be fixed as part of this PR, any thoughts @DylanDylann ? |
|
Could you apply the same logic that we did on the report screen or on the LHN or copy to clipboard? Screen.Recording.2025-02-17.at.17.43.58.mov |
|
@DylanDylann, I've applied a fix. Could you take another look? |
|
BUG: The deleted message isn't displayed. My suggestion: We shouldn't hide deleted messages from the report action debug list. But let's display "Deleted message", then we still can check these report actions in debug mode Screen.Recording.2025-02-18.at.15.08.18.mov |
|
BUG: The created message displays the wrong creator Screen.Recording.2025-02-18.at.15.09.56.mov |
|
@DylanDylann the feedback has been applied! |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2025-02-19.at.15.50.48.movAndroid: mWeb ChromeScreen.Recording.2025-02-19.at.15.20.27.moviOS: NativeScreen.Recording.2025-02-19.at.15.46.31.moviOS: mWeb SafariScreen.Recording.2025-02-19.at.15.38.20.movMacOS: Chrome / SafariScreen.Recording.2025-02-19.at.14.09.13.movMacOS: DesktopScreen.Recording.2025-02-19.at.15.19.15.mov |
| const [report] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT}${reportID}`); | ||
| const canUserPerformWriteAction = ReportUtils.canUserPerformWriteAction(report); | ||
| const [policy] = useOnyx(`${ONYXKEYS.COLLECTION.POLICY}${report?.policyID}`); | ||
| const ifUserCanPerformWriteAction = canUserPerformWriteAction(report); |
There was a problem hiding this comment.
Any reason why we shouldn't just use the same term?
| const ifUserCanPerformWriteAction = canUserPerformWriteAction(report); | |
| const canUserPerformWriteAction = canUserPerformWriteAction(report); |
|
✋ 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/puneetlath in version: 9.1.2-0 🚀
|
|
🚀 Deployed to production by https://github.com/francoisl in version: 9.1.2-1 🚀
|
| textInputLabel={translate('common.search')} | ||
| onChangeText={setSearchValue} | ||
| onSelectRow={(item) => Navigation.navigate(ROUTES.DEBUG_REPORT_ACTION.getRoute(reportID, item.reportActionID))} | ||
| ListItem={RadioListItem} |
There was a problem hiding this comment.
Coming from #57313, we need to pass headerMessage to display no results text. More details: #57313 (comment)
| return (sortedAllReportActions ?? []) | ||
| .filter( | ||
| (reportAction) => | ||
| reportAction.reportActionID.includes(debouncedSearchValue) || getReportActionMessageText(reportAction).toLowerCase().includes(debouncedSearchValue.toLowerCase()), |




Explanation of Change
Add improvements to the Debug Mode to simplify ReportActions debugging.
Fixed Issues
$ #56853
PROPOSAL: N/A
Tests
Debug modetoggle on.Debugoption. Make sure debug information for the report action is opened and works as usual. Repeat the same for several different messages.Debugin the details.Actionstab. See that now it has a search bar, and action items have message information.Offline tests
Same, as in the Tests section.
QA Steps
Same, as in the Tests section.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)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_web.mp4
iOS: Native
ios.mp4
iOS: mWeb Safari
ios_web.mp4
MacOS: Chrome / Safari
web.mp4
MacOS: Desktop
desktop.mp4