Skip to content

[Due for payment 2026-11-13] [Insights][R3][App] Add the Explain button and pass the Insights scope to Concierge #102759

Closed

Description

@cristipaval

Implement this section of the design doc: Add the AI card row with the Explain button.

Add the shared InsightsExplainButton and connect it to useAskConcierge. Support sidePanelContext.insightsScope, including numberOfPeriods, and send it with the card’s explainPrompt on web and mobile.

Issue OwnerCurrent Issue Owner: @mallenexpensify

Activity

  1. self-assigned this
    on Oct 29, 2026
  2. changed the title [-][Insights][R3][App] Add the Explain button and pass the Insights scope to Concierge[/-] [+][Due for payment 2026-11-13] [Insights][R3][App] Add the Explain button and pass the Insights scope to Concierge[/+] on Nov 6, 2026
  3. 5 remaining items

  4. truph01 commented on Nov 12, 2026

    @truph01
    Contributor

    Contributor+ Checklist:

    • [Contributor] The offending PR and associated issue have been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.

      Link to the comment on the PR:
      Link to the comment on the Issue:

    • [Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.

      Link to discussion:

    • [Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.

    Regression Test Proposal

    Precondition:

    Test:

    1. Enable the insightsAI beta. Open Insights.
    2. While the dashboard loads, check each AI card placeholder shows a short bar under the text where the Explain button goes.
    3. Check every AI card has an Explain button and it looks correct.
    4. Press Explain on a card.
    5. Check a new Concierge thread opens: in the side panel on wide web, full screen on narrow and mobile. Check the message sent matches the card's prompt, e.g. "Explain why spend is up 18% vs last month".
    6. In the Network tab, open the AddComment request. Check sidePanelContext has insightsScope with searchKey, policyIDs, date and groupCurrency matching the dashboard filters.
    7. Check the headline chart and each supporting chart has an Explain button in its header.
    8. Press Explain on Top merchants.
    9. Check Concierge gets "Explain the data in Top merchants", with insightsScope in sidePanelContext.
    10. Change Date, Workspace and Group currency. Press Explain on a chart again. Check insightsScope matches the new filters.
    11. Pick filters with no expenses. Check the charts show the empty state with no Explain button.
    12. Turn the insightsAI beta off. Check the AI card row and every chart's Explain button are gone, and the chart headers look the same as on main.

    Do we agree 👍 or 👎

  5. added
    Awaiting PaymentAuto-added when associated PR is deployed to production
    and removed on Nov 12, 2026
  6. melvin-bot commented on Nov 12, 2026

    @melvin-bot

    Triggered auto assignment to @mallenexpensify (Awaiting Payment)

  7. melvin-bot commented on Nov 12, 2026

    @melvin-bot

    Payment Summary

    Resolving PRs:

    BugZero Checklist (@mallenexpensify)

    • I have confirmed assignees, roles, and Upwork contracts look correct
    • I have paid out Upwork contracts / manual NewDot requests
    • [BugZero Assignee] I have created a GH issue for creating/updating the regression test once above steps have been agreed upon
  8. JmillsExpensify commented on Nov 14, 2026

    @JmillsExpensify
    Contributor

    This'll be closed soon. Just awaiting payment.

  9. mallenexpensify commented on Nov 16, 2026

    @mallenexpensify
    Contributor

    Claude posting on behalf of Matt:

    Ready. Job price: $250 (Insights project; truph01 joined it before 2026-09-19, as on 102758).

    • truph01 (C+): 100%, via NewDot

    No deploy blockers or regressions on the issue or the PR.

    One PR, #104862, also resolves 102761. Each issue pays the job price, as on 102758 and 102760.

    Next: press Caps+Y, then pay. The test steps are the same on 102761: press Caps+Y here only.

    Evidence
    • C+ checklist, 12 test steps: comment
    • TestRail case: none yet.
    • Resolving PR #104862: by mhawryluk (agency), merged 2026-11-04, approved by luacmartins and truph01. No revert.
    • Videos: author 2/5, C+ 3/5.

    PAYPREP v1

  10. JmillsExpensify commented on Nov 16, 2026

    @JmillsExpensify
    Contributor

    Looks like we're waiting on the regression testing steps.

  11. mallenexpensify commented on Nov 17, 2026

    @mallenexpensify
    Contributor

    Payment Summary

    Contributor+: @truph01 due $250 via NewDot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionDailyKSv2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions