Repository navigation
Conversation
|
@nyomanjyotisa 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] |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 62b8504c75
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| isLoadingApp, | ||
| isOffline, | ||
| hasDeleteTransactionNavigateBackUrl: !!deleteTransactionNavigateBackUrl, | ||
| isInvalidReportPath: !!reportID && !doesReportIDLookValid, |
There was a problem hiding this comment.
Compute the invalid-path flag from the route ID
For an invalid URL such as /search/r/-1 with no cached report, reportID is undefined, so this flag is false even though isValidReportIDFromPath(reportIDFromRoute) rejects the ID. Once loading settles, the missing-report predicate still shows and logs not-found, so Sentry underreports invalid-link failures as ordinary missing reports. Derive this flag from the route parameter rather than the report row, as ReportNotFoundGuard already does.
Useful? React with 👍 / 👎.
| hasDeleteTransactionNavigateBackUrl: !!deleteTransactionNavigateBackUrl, | ||
| isInvalidReportPath: !!reportID && !doesReportIDLookValid, | ||
| isBillHidden, | ||
| isParentActionDeleted: wasParentActionDeleted, |
There was a problem hiding this comment.
Keep missing parent actions separate from deleted ones
When the parent action is absent after its action list has loaded, getParentReportActionDeletionStatus() returns wasParentActionDeleted: true, but isParentActionDeleted: false and isParentActionMissingAfterLoad: true. Passing the aggregate here classifies that missing-data case as a deletion and omits the missing-after-load flag, whereas ReportNotFoundInnerGuard forwards the two flags separately. This skews cross-screen cause comparisons in Sentry; destructure and forward the individual flags instead.
Useful? React with 👍 / 👎.
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid-Native-final.mp4Android: mWeb ChromeAndroid-Chrome.mp4iOS: HybridAppiOS-Native.mp4iOS: mWeb SafariiOS-Safari.mp4MacOS: Chrome / SafarimacOS-Chrome-App-UI.mp4macOS-Safari-clean.mp4 |
|
@nyomanjyotisa I addressed the Codex comments. Both were small, nice-to-have changes that make the new log line consistent with the inbox and transaction thread logs we already have |
Explanation of Change
When an expense report opened from Search can't be shown,
SearchMoneyRequestReportPageshows the "not found" page and logs[SearchMoneyRequestReportPage] Displaying NotFound Page. That prefix isn't forwarded to Sentry, so these screens never showed up there.The page now logs
[Receipt] not found page shownwithscreen: 'searchReport'. The inbox report screen and deleted transaction threads already send the same line, so one Sentry query covers all three.How we'll use the data
[Receipt] not found page shownby screen and by its flags (isInvalidReportPath,isParentActionDeleted,isBillHidden) to see which cause sends most users to the not-found page from Search.Fixed Issues
$ #106965
PROPOSAL:
Tests
The new line appears in the JS console (
console.debug) in dev builds./search/r/1234567890123(a report that does not exist)[info] [Receipt] not found page shownwithscreen: 'searchReport'andreportID: '1234567890123', logged oncenot found page shownline is loggedOptional: to see it in Sentry from a dev build: turn on Account → Troubleshoot → Send data to Sentry, repeat step 1 and after a few minutes filter Sentry Logs by `message:"[info] [Receipt] not found page shown".
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.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: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari