Repository navigation
Show the replies row under support ticket previews - #105406
Conversation
Drop the support ticket exclusion from shouldDisplayThreadReplies so the existing replies row renders under the ticket preview in Concierge. Pressing that row used to go through navigateToAndOpenChildReport, which merges an optimistic chat over the ticket when the ticket report isn't loaded yet. Open the ticket the same way the preview card does instead, and do nothing if there is no ticket report ID to open.
|
Checklist note — items ticked as not applicable to this PR:
The recordings for all platforms and the remaining checklist items will be completed before I mark this ready for review. |
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
Checklist evidence for the boxes ticked above (in addition to the N/A note earlier in this thread):
|
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. |
|
@linhvovan29546 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 |
|
Codex Review: Something went wrong. Try again later by commenting “@codex review”. ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
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". |
…replies row Move the ticket navigation into navigateToSupportTicket and call it from both places, so the preview card also skips navigating when there is no ticket report ID.
@trasnake87 Please update the PR Author checklist! Thanks |
@trasnake87 Please update the PR author checklist |
| const supportTicketReportID = childReport?.reportID ?? reportAction.childReportID; | ||
| if (!supportTicketReportID) { | ||
| return; | ||
| } | ||
| Navigation.navigate(getReportRouteForCurrentContext({reportID: supportTicketReportID})); |
There was a problem hiding this comment.
This duplicates how SupportTicketPreview opens the ticket (supportTicket?.reportID ?? action?.childReportID, then Navigation.navigate(getReportRouteForCurrentContext(...)), see SupportTicketPreview.tsx#L50 and #L82). The two copies already differ: the card has no empty-ID guard, so it navigates to REPORT_WITH_ID.getRoute(''), while the row does nothing.
If someone later changes how tickets open (for example a dedicated route) and only updates the card, the row will quietly keep the old route, so the card and the row would open different places again. Nothing would catch that.
Could we move this into one small helper and call it from both places? For example:
/** Opens a support ticket without going through createChildReport, which would overwrite an unloaded ticket with an optimistic chat. */
function navigateToSupportTicket(reportID: string | undefined) {
if (!reportID) {
return;
}
Navigation.navigate(getReportRouteForCurrentContext({reportID}));
}The card then gets the empty-ID guard too.
There was a problem hiding this comment.
Done in 6d5b0eb: added navigateToSupportTicket(reportID) in src/libs/actions/Report/index.ts (next to the other support-ticket actions) and used it from both SupportTicketPreview and ReportActionItemThread, so the card now returns early on an empty ID as well. Behaviour is otherwise unchanged; the recordings in the description are from 178e990.
| // Open a support ticket the same way its preview card does. The child report path below would | ||
| // create an optimistic chat over the ticket when it isn't loaded yet, turning it into a plain chat. |
There was a problem hiding this comment.
NAB: this comment is unnecessary, let's remove it.
| // Open a support ticket the same way its preview card does. The child report path below would | |
| // create an optimistic chat over the ticket when it isn't loaded yet, turning it into a plain chat. |
|
@linhvovan29546 both addressed in 6d5b0eb — ready for another look, thanks! |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / SafariScreen.Recording.2026-11-01.at.15.52.51.mov |
@trasnake87 Please update the PR Author checklist |
|
On it — running the VoiceOver pass now and will tick that box as soon as it is done. Thanks for the quick review! |
|
@linhvovan29546 done — VoiceOver (macOS Safari) reads the card as "Support ticket, Oct 31, 2026: …, button" and, immediately after it in both Tab and VO-cursor order, the new row as "2 Replies, button"; VO+Space on the row opens the ticket. The author checklist is now complete. |
garrettmknight
left a comment
There was a problem hiding this comment.
Looks good from a product perspective.
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚧 jasperhuangg 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/jasperhuangg in version: 9.5.31-0 🚀
|
|
🚀 Deployed to staging by https://github.com/jasperhuangg in version: 9.5.31-0 🚀
|
|
🚀 Deployed to production by https://github.com/blimpich in version: 9.5.31-4 🚀
Bundle Size Analysis (Sentry): |


Explanation of Change
Support ticket previews in the Concierge chat never showed the replies row, because
shouldDisplayThreadRepliesreturnedfalsefor any parent action whose child is a support ticket. This removes that exclusion, so the existingReportActionItemThreadrow (reply count, commenter avatars, time of the last reply) renders under the ticket preview the same way it does for other threads. No new UI or copy is added.The row's press handler went through
navigateToAndOpenChildReport. When the ticket report isn't in Onyx yet, that falls back tocreateChildReport, which merges an optimistic chat report (type: chat) onto the ticket's own report key, so the ticket renders as a plain chat until the ticket's report data arrives from the server. For support ticket parents the row now opens the ticket through a small shared helper,navigateToSupportTicket(insrc/libs/actions/Report), which the preview card uses too, so the row and the card always open the same route (including the Search context). If there is no ticket report ID, neither the row nor the card navigates.The Reply in thread, Join thread and Leave thread context menu actions keep their own support ticket checks in
ContextMenuActions, so they stay hidden for ticket previews.Support tickets now also get the agent-processing fallback other threads already have: if the ticket report's
REPORT_NAME_VALUE_PAIRScarries an agent processing indicator, the row shows one in-progress reply (with the agent's avatar if nobody has replied yet). I kept this for tickets rather than passingfalse, so the row behaves the same as on every other thread.Fixed Issues
$ #104400
PROPOSAL: #104400 (comment)
Tests
Offline tests
QA Steps
Same as tests.
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
Recordings use a real support ticket (created from Account > Help > Talk to a human on this account); the left frame of each image is
main, the right one is this branch. Older Concierge messages above the ticket card are blurred. Videos are hosted on a release of my fork; the regular-thread, context-menu, console and deeplink checks are described in the comment below.Android: Native
before — main · after — fix
Android: mWeb Chrome
before — main · after — fix
iOS: Native
before — main · after — fix
iOS: mWeb Safari
before — main · after — fix
MacOS: Chrome / Safari
Safari (macOS 26.4): before — main · after — fix
Chrome (macOS): before — main · after — fix