Repository navigation
Show only the policy name beside the bill report status - #105964
Conversation
Codex Review SummaryThis 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. |
|
@neil-marcellini 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] |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: dff2808948
ℹ️ 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".
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
| const [hasParentAccess] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT}${reportID}`, {selector: getReportHasParentAccess}); | ||
| const [report] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT}${parentReportID}`); | ||
| const [reportType] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT}${reportID}`, {selector: getReportType}); | ||
| const [report] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT}${getNonEmptyStringOnyxID(parentReportID)}`); |
There was a problem hiding this comment.
NAB I guess because it's pre-existing but this variable really should be called parentReport I think?
| const [report] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT}${getNonEmptyStringOnyxID(parentReportID)}`); | |
| const [parentReport] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT}${getNonEmptyStringOnyxID(parentReportID)}`); |
There was a problem hiding this comment.
Agreed. Renamed to parentReport in #106122.
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚧 roryabraham has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/roryabraham in version: 9.5.33-0 🚀
|
|
🚀 Deployed to production by https://github.com/roryabraham in version: 9.5.33-1 🚀
Bundle Size Analysis (Sentry): |
Explanation of Change
A bill has no chat to link to. The bill header subtitle now shows only the policy name, with no link, no "From" and no "in". When bills open "as expense reports" in an upcoming PR,
MoneyReportHeadershows the report status badge before it. Some older bills have a parent chat. Once bills open as expense reports, their subtitle ignores it.getParentNavigationSubtitlereturns only the policy name for bills.ParentNavigationSubtitleshows that name by itself, but only for bills (other reports work as before). A thread whose parent chat the user can't access still has no subtitle.Fixed Issues
For https://github.com/Expensify/Expensify/issues/684654
PROPOSAL:
Tests
/r/<billReportID>.Offline tests
QA Steps
Ping @cead22
/r/<billReportID>for a bill with no parent chat.The status badge beside the policy name can only be checked after the PR that opens bills in New Expensify is deployed.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, I verified the components usingAvatarare working as expected)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
/r/<billReportID>.Note: the "Hidden, Hidden" you see on the screenshot will go away once we deploy one of the upcoming PRs