fix:82291: AI - Send button is unresponsive when post image in concierge RHP#82604
fix:82291: AI - Send button is unresponsive when post image in concierge RHP#82604carlosmiceli merged 5 commits intoExpensify:mainfrom
Conversation
|
@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] |
|
@carlosmiceli 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] |
src/libs/Navigation/Navigation.ts
Outdated
| function closeSidePanelOnNarrowScreen() { | ||
| function closeSidePanelOnNarrowScreen(route: Route) { | ||
| const isExtraLargeScreenWidth = Dimensions.get('window').width > variables.sidePanelResponsiveWidthBreakpoint; | ||
| const isAttachmentPreviewRoute = route && /^r\/\d+\/attachment\/add/.test(route); |
There was a problem hiding this comment.
❌ CONSISTENCY-2 (docs)
The hardcoded regex /^r\/\d+\/attachment\/add/ is a magic string that duplicates the route pattern already defined in ROUTES.REPORT_ADD_ATTACHMENT.route (r/:reportID/attachment/add). If that route definition ever changes, this regex will silently become stale.
Use the existing route constant instead. For example:
const isAttachmentPreviewRoute = new RegExp(`^${ROUTES.REPORT_ADD_ATTACHMENT.route.replace(":reportID", "\\d+")}`).test(route);Or, since the route always starts with r/<digits>/attachment/add, you could use a simpler string-based check derived from the constant:
const attachmentRoutePrefix = ROUTES.REPORT_ADD_ATTACHMENT.route.split(":")[0]; // "r/"
const isAttachmentPreviewRoute = route.includes("/attachment/add") && route.startsWith(attachmentRoutePrefix);Please rate this suggestion with 👍 or 👎 to help us improve! Reactions are used to monitor reviewer efficiency.
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
joekaufmanexpensify
left a comment
There was a problem hiding this comment.
Good from product
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppWe don't support concierge RHP on native Android: mWeb ChromeScreen.Recording.2026-02-18.at.18.15.32.moviOS: HybridAppWe don't support concierge RHP on native iOS: mWeb SafariScreen.Recording.2026-02-18.at.18.10.35.movMacOS: Chrome / SafariScreen.Recording.2026-02-18.at.18.08.26.mov |
|
@codex review |
|
Codex Review: Didn't find any major issues. Keep them coming! ℹ️ 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". |
@Eskalifer1 Could you please add a unit test? Our process requires unit tests |
|
Updated PR! cc: @linhvovan29546 |
|
@carlosmiceli All yours |
|
🚧 @carlosmiceli 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! 🧪🧪
|
|
✋ 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/carlosmiceli in version: 9.3.22-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.3.22-4 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.3.22-4 🚀
|
Explanation of Change
This PR fixes a bug where users on mobile devices couldn't send photos to the Concierge chat that was open in the side panel.
Fixed Issues
$#82291
PROPOSAL:#82291 (comment)
Tests
Precondition:
Offline tests
Same as tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, 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.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: mWeb Chrome
82291-android-web.mp4
iOS: Native
iOS: mWeb Safari
82291-ios-web.mp4
MacOS: Chrome / Safari
82291-web.mp4