Show 'Concierge is thinking' indicator in #admins room#85327
Show 'Concierge is thinking' indicator in #admins room#85327carlosmiceli merged 2 commits intomainfrom
Conversation
The AgentZero status indicator (typing/thinking) was only shown in Concierge DM chats because the useAgentZeroStatusIndicator hook and the submit form logic were gated on isConciergeChatReport(), which returns false for policy #admins rooms. The backend already sends the indicator NVP for admin rooms, but the App was ignoring it. Extend the check to also activate the indicator for isAdminRoom() reports, so users see "Concierge is thinking..." in the #admins room during onboarding with the suggestedFollowups beta. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
@ikevin127 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] |
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
marcochavezf
left a comment
There was a problem hiding this comment.
Checklist boxes updated - triggering re-check
joekaufmanexpensify
left a comment
There was a problem hiding this comment.
Makes sense to me!
Reviewer Checklist
Screenshots/Videosweb.mov |
ikevin127
left a comment
There was a problem hiding this comment.
(2) NAB comments during code-review. Moving forward with manual testing ♻️
src/pages/inbox/report/ReportActionCompose/ReportActionCompose.tsx
Outdated
Show resolved
Hide resolved
ikevin127
left a comment
There was a problem hiding this comment.
Other than the ☝️ 2 NAB comments, LGTM 🟢
|
@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] |
|
🎯 @ikevin127, thanks for reviewing and testing this PR! 🎉 An E/App issue has been created to issue payment here: #85496. |
Address review feedback: - Rename isConciergeChat parameter to isAgentZeroChat in useAgentZeroStatusIndicator hook since it now supports both Concierge DMs and #admins rooms - Remove useMemo wrapper for shouldShowConciergeIndicator in ReportActionCompose since it's a simple boolean expression that doesn't need memoization Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1d5e72e
|
Comments addressed, ready for re-review! |
|
@mjasikowski 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 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. |
|
@marcochavezf is applause.expensifail.com domain account is beta enabled?
|
|
🚀 Deployed to staging by https://github.com/carlosmiceli in version: 9.3.40-0 🚀
|
|
Hi @kavimuru, I think yes but let's use the dumb.fun domain to be sure |
|
🚀 Deployed to staging by https://github.com/carlosmiceli in version: 9.3.40-0 🚀
|
|
🚀 Deployed to production by https://github.com/cristipaval in version: 9.3.41-4 🚀
|
Explanation of Change
The AgentZero "Concierge is thinking..." status indicator was not appearing in the #admins room during onboarding because the frontend
useAgentZeroStatusIndicatorhook and theReportActionComposesubmit logic were gated onisConciergeChatReport(), which only returnstruefor the 1:1 Concierge DM chat. The backend already correctly sends theagentZeroProcessingRequestIndicatorNVP for admin rooms, but the App was ignoring it.This PR extends the check to also activate the indicator for
isAdminRoom()reports. This enables:Fixed Issues
$ https://github.com/Expensify/Expensify/issues/610150
Tests
suggestedFollowupsbeta for your test account (alternatively, you can use an account with the domain@dmb.funwhich is already included in the beta)Offline tests
QA Steps
Same as tests
PR Author Checklist
I linked the correct issue in the
### Fixed Issuessection aboveI wrote clear testing steps that cover the changes made in this PR
TestssectionOffline stepssectionQA stepssectionI included screenshots or videos for tests on all platforms
I ran the tests on all platforms & verified they passed on:
I verified there are no console errors (if there's a console error not related to the PR, report it or open an issue for it to be fixed
I followed proper code patterns (see Reviewing the code)
If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
I followed the guidelines as stated in the Review Guidelines
I tested other components that can be impacted by my changes (i.e. if the PR modifies a shared library or component like , I verified the components using are working as expected)
I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
I verified any variables that can be defined as constants (ie. in CONST.ts or at the top of the file that uses the constant) are defined as such
I verified that if a function's arguments changed that all usages have also been updated correctly
If any new file was added I verified that:
If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like is modified, I verified that is working as expected in all cases)
I added unit tests for any new feature or bug fix in this PR to help automatically prevent regressions in this user flow.
If any new file was added I verified that:
If a new CSS style is added I verified that:
StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))If new assets were added or existing ones were modified, I verified that:
npm run compress-svg)If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like
Avataris modified, I verified thatAvataris working as expected in all cases)If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:
Designlabel and/or tagged@Expensify/designso the design team can review the changes.If a new page is added, I verified it is using the
ScrollViewcomponent to make it scrollable when more elements are added to the page.If the
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