Repository navigation
Description
Background
The Spend dashboard shows up to 4 AI insight cards above Spend over time. Rules detect each signal, and Concierge writes the card as one sentence, e.g. Hubspot Inc. spend in Oct 1–31, 2026 was 26,440% above its Sep 1–30, 2026 historical average.
In testing, the cards read flat and long:
- Dates repeat the
Datefilter, e.g.across Aug 1–31, Sep 1–30, and Oct 1–31, 2026, and make up most of the sentence. - Percentages get huge, e.g.
65,060%, when an item had almost no spend before. They're accurate but meaningless. - In-progress periods read as drops. On Nov 3,
Nov 2026 was 98% below the Oct 2026 historical averagecompares 3 days against a full month. - The same item shows on more than one card, and the wording changes from card to card.
This issue gives every card the same layout: a colored chip with the stat, the item's name in bold, and one short summary line, with Explain for anything more. It also tightens which signals qualify and how cards are picked. It covers the Spend dashboard, and the rules here are the framework the other dashboards' cards follow when they're updated. Detection thresholds and materiality ranking don't change, except where this issue says so.
Product and design details
Spend dashboard card row, desktop
Card layout
Each card has four parts, top to bottom:
- Chip: the stat.
- Title: the item that changed, in bold, e.g.
IT Site Hosting,Cole Eason, orTotal spend. It wraps to 2 lines, then truncates with an ellipsis. - Summary: one short line in the secondary text style.
Explain: opens Concierge in the RHP (full-screen on mobile) with a question already filled in.
Cards sit in one row, divided by vertical lines, with no card background. On mobile, the row is the same and scrolls horizontally, as today: the next card peeks in from the right, and people swipe left to see the rest.
On desktop breakpoints, we want the cards to squish and wrap so that they show fully in the PNG exported via the Export button. Examples:
The above are just examples—let's use the breakpoints we already have to determine when to wrap/scroll.
Chip
There are two kinds of chip:
- Change: an arrow and the size of the change, e.g.
↑ 65%. The color says whether the change is good or bad, not which way it went, using the colors from [Insights] [R1] SimplifyInsightsgraphs, move row detail into tooltips, and polish chart styling #102814. On Spend, an increase is red and a decrease is green. - Neutral: a count, share, or amount, with no arrow, on a gray background, e.g.
42%. Used for signals that don't have a direction.
Formatting:
- Percentages are whole numbers, e.g.
↑ 65%. - From
1,000%up, the chip shows the change in the Group currency instead, rounded to whole units, e.g.↑ $24,000.
Summary
Concierge writes the summary from the detected signal. It follows these rules:
- At most 50 characters, so it fits on one line on desktop. It ends with a period.
- No dates. The period word comes from the period rules in [Insights polish] [R3] Open data point details in the RHP instead of jumping to the Spend page #105196, e.g.
this monthorthis week. - No numbers or names that are already in the chip or title.
- It may name one driver when the data shows one, e.g.
Above its average, mostly from Vercel. - Plain words, e.g.
its average, notits historical average. Members usetheir, e.g.Below their average this month.
If Concierge's summary breaks a rule, or hasn't arrived after 3 seconds, the card shows the signal's default summary from Signals.
Signals
| Signal | Chip | Default summary | Explain question |
|---|---|---|---|
| Spike, above its average | Change, red, e.g. ↑ 65% |
Above its average this month. |
Why is <item> spend above its average this month? |
| Spike, below its average | Change, green, e.g. ↓ 19% |
Below its average this month. |
Why is <item> spend below its average this month? |
| Trend | Change, from the first period in the run to the last, e.g. ↑ 28% |
Up 3 weeks in a row. |
Why has <item> spend gone up 3 weeks in a row? |
| Record, highest or lowest | Change, against the previous record, e.g. ↑ 12% |
Highest month on record. |
Why was this <item>'s highest month on record? |
| Threshold crossed | Neutral, the threshold, e.g. $100,000 |
First month above this amount. |
What pushed <item> past $100,000 this month? |
| Concentration | Neutral, the item's share of all spend, e.g. 42% |
Share of all spend this month. |
Why is so much of our spend going to <item>? |
- A spike's average is the item's own average, calculated the same way as the
Detailspanel ([Insights polish] [R3] Open data point details in the RHP instead of jumping to the Spend page #105196). <item>is the card's title, and the period word follows the card's period.
Which items qualify
- An item needs at least 3 complete periods of history, the same minimum as [Insights polish] [R3] Open data point details in the RHP instead of jumping to the Spend page #105196.
- For a spike or record, the item's average must be at least 1% of total spend in the period. For a trend, the first period in the run must be at least 1% of total spend in that period. This keeps a near-zero baseline from producing a huge percentage.
- Members only appear for people who can see
Top spenders.
In-progress periods
When the card's period is still in progress, e.g. This month on Nov 16:
- A spike compares spend so far against the item's average to date: the average of what it spent by the same day of each earlier complete period, the same matched-days rule as #.
- Spikes only show after that issue's thresholds: day 3 of a week, day 8 of a month, day 15 of a quarter, and day 31 of a year. A day never compares while it's in progress.
- A trend only counts complete periods.
- An in-progress period can set a highest record, but never a lowest one.
- Concentration compares shares within the same days, so it works as is.
Picking the cards
- We show up to 4 cards, ranked by materiality, as today.
- Each item appears on one card at most. When an item qualifies for more than one signal, we keep the most material one.
- Each signal appears on 2 cards at most.
- When nothing qualifies, the row of cards is hidden.
Loading
- Cards show the existing skeleton loader until the chip, title, and summary are all ready, so a card never changes after it appears.




Activity
dannymcclain commentedon Nov 3, 2026
@JmillsExpensify left a comment in Figma for you to check out regarding these
JmillsExpensify commentedon Nov 3, 2026
Awesome, I'll update the mocks. I think we've aligned at this point.
dannymcclain commentedon Nov 3, 2026
We may also want to handle the wrapping for these in this issue. @JmillsExpensify what do you think?
JmillsExpensify commentedon Nov 3, 2026
Yeah, let's do that. I can update the OP
dannymcclain commentedon Nov 5, 2026
Added some notes about these squishing and wrapping to the description.
32 remaining items
truph01 commentedon Nov 24, 2026
It is BE issue #106591 (comment)
JmillsExpensify commentedon Nov 24, 2026
Agreed.
expensify-chore-bot commentedon Nov 24, 2026
Triggered auto assignment to @mallenexpensify (
Awaiting Payment)expensify-chore-bot commentedon Nov 24, 2026
Payment Summary
Resolving PRs:
[NoQA][Insights polish] Improve AI insight cards as a stat chip, a title, and a short summary #106133
[NoQA][Insights polish] Don't hide loading AI cards when exporting PNG #106709
Contributor: @mhawryluk does not require payment (Contractor)
Reviewer: @truph01 owed $175 via NewDot
BugZero Checklist (@mallenexpensify)
expensify-chore-bot commentedon Nov 27, 2026
@mallenexpensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
truph01 commentedon Nov 30, 2026
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: N/A. It is an improvement issue
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:
insightsAIbeta enabled on the backend. Go to Insights > Spend.Do we agree 👍 or 👎
mallenexpensify commentedon Nov 30, 2026
Matt's AI agent:
Prep notes for the CM. This is not a payment approval. Do not request payment until the CM posts the final amount.
Ready.
Job price: $250.
Price basis: project started before 2026-09-19 (645498): bernhardoj assigned, 2026-09-10.
Next: press Caps+Y, then pay.
Evidence
PAYPREP v1mallenexpensify commentedon Nov 30, 2026
Payment Summary
Contributor+: @truph01 due $250 via NewDot