-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Debug mode for Inbox tab GBR doesn't handle multi-policy #51425
Debug mode for Inbox tab GBR doesn't handle multi-policy #51425
Conversation
…se for RBR in LHN
Today's update:
Todo:
|
…-tab-gbr-doesnt-handle-multi-policy
@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] |
I'm setting this PR as ready for review although it's missing QA steps and screen recordings for native app. I'll add these next Monday! |
…-tab-gbr-doesnt-handle-multi-policy
I wasn't able to find steps to test this on native platforms yet. Will continue my research tomorrow! |
@pac-guerreiro Sorry for my delay |
On LHN, we use useReportIDs hook to filter and sort reports first
I think we should apply the logic in useReportIDs into getChatTabBrickRoadReport to make it consistent |
Anyways, I can help you with this step |
This is known and will be addressed here - #51488 |
I think that's the solution for #51488 |
Oh nice, today I learned 😄 But I was aiming for reproduction steps inside the app it self as an user, do you know how to use deep links without the terminal or console? Also there's a case that I am not able to reproduce which is a workspace chat that existed but then the user started receiving not found errors. Here is the onyx data for a report where this happens:
|
src/pages/Debug/DebugDetails.tsx
Outdated
@@ -236,7 +237,10 @@ function DebugDetails({data, children, onSave, onDelete, validate}: DebugDetails | |||
text={translate('common.delete')} | |||
onPress={() => { | |||
onDelete(); | |||
Navigation.goBack(); | |||
// Dismiss the current report screen and replace it with Concierge Chat |
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.
@pac-guerreiro Why should we do that?
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.
@DylanDylann This is a workaround I found to prevent the app from fetching the report data again, it's based on this:
But now that I'm seeing this again, I think I should just use Report.navigateToConciergeChatAndDeleteReport
instead of duplicating code
This reverts commit 4b2d8ad.
…-tab-gbr-doesnt-handle-multi-policy
…R in LHN" This reverts commit a3b1513. # Conflicts: # src/libs/WorkspacesSettingsUtils.ts
@DylanDylann I just reverted the commits that added reportID to reports that were missing it |
…-tab-gbr-doesnt-handle-multi-policy
@DylanDylann I replaced the old logic to navigate after deleting a report with |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-10-31.at.11.51.21.movAndroid: mWeb ChromeScreen.Recording.2024-10-31.at.11.50.03.moviOS: NativeScreen.Recording.2024-10-31.at.11.48.54.moviOS: mWeb SafariScreen.Recording.2024-10-31.at.11.45.00.movMacOS: Chrome / SafariScreen.Recording.2024-10-31.at.11.42.51.movMacOS: DesktopScreen.Recording.2024-10-31.at.11.46.49.mov |
Waiting for the final review from @puneetlath |
✋ 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.0.58-0 🚀
|
This PR is failing because of issue #52104 |
🚀 Deployed to production by https://github.com/Julesssss in version: 9.0.58-2 🚀
|
Details
Fixed Issues
$#51271
PROPOSAL:
View Report
button to redirect the user to the report page. This is useful when we don't access the debug report page from the report page.Tests
On web
r/123456
)There's a report with errors
View
button will open the RHP with the debug report page with the data of the offending reportOffline tests
Same as tests
QA Steps
Same as tests
PR 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
Android: mWeb Chrome
Android.-.Chrome.mp4
iOS: Native
iOS: mWeb Safari
iOS.-.Safari.mp4
MacOS: Chrome / Safari
MacOS.-.Chrome.mp4
MacOS: Desktop