Repository navigation
Description
Background
Each Insights dashboard opens with one headline graph: Spend over time, Violations over time, and Workflow efficiency. On Spend, Compliance, and Efficiency, the graph is all there is. To answer "how much did we spend this year?" or "are we getting faster?", you have to add up the points in your head or open the Details panel.
This issue adds the same summary block to the Spend, Compliance, and Efficiency headline graphs. It doesn't change the graphs themselves, the AI insight cards, any other card.
Background
Each Insights dashboard opens with one headline graph: Spend over time, Violations over time, and Workflow efficiency. On Spend, Compliance, and Efficiency, the graph is all there is. To answer "how much did we spend this year?" or "are we getting faster?", you have to add up the points in your head or open the Details panel.
This issue adds the same summary block to the Spend, Compliance, and Efficiency headline graphs. Apart from how the Workflow efficiency average line is calculated, it doesn't change the graphs themselves, the AI insight cards, any other card.
Product and design details
Spend, Compliance, and Efficiency headline graphs, Compare: Previous period
Mobile
The summary block
The block sits between the card's title row (and subtitle, if it has one) and the graph. It has three lines:
- Big number: the one number for the whole Date range, in the
h1style. - Change: to the right of the big number, on the same line. See Change.
- Breakdown: one line beneath, in the supporting label style. See Breakdown.
When the graph has more than one series, its legend sits under the breakdown
The big number is what the graph adds up to: the total for amounts and counts, or the average across the range for times and rates. It's calculated the same way as the Details panel's figures (#105196), so the two always match.
The block doesn't change when you hover or tap a point. The tooltip covers single points.
Change
- The change only shows when
Compareis set toPrevious period. It ends with theComparelabel, e.g.↑ 12% vs previous period. - With
Compare: Average, there's no change line, and the block shows only the big number and breakdown. The average line is drawn from the same Date range, so there's nothing separate to compare the range's number against. The graph's average line and pill still show as they do today. - The color says whether the change is good or bad, not which way it went, the same as the AI insight cards ([Due for payment 2026-11-25] [Insights polish] [R3] Improve AI insight cards as a stat chip, a title, and a short summary #105697). Good is green and bad is red.
- The unit follows what's measured:
- Amounts and counts: percent, rounded to a whole number, e.g.
↑ 12%. - Times: the time difference, in the ranking graphs' format, e.g.
↓ 0.8 daysor↓ 3.5 hours.
- Amounts and counts: percent, rounded to a whole number, e.g.
- In an in-progress period, the change compares against the same number of days in the comparison period. On Nov 3,
This monthdoesn't read as a 90% drop.
Breakdown
- It says what makes up the big number, as 2 or 3 parts separated by
·. - When the graph has series, the breakdown has one part per series, in the legend's order.
- When the graph has one series, the breakdown has two parts: the count behind the number, then one related figure. Each part states one thing.
- It only states facts from the same data, never an explanation or advice. That's what the AI insight cards and
Explainare for. - In an in-progress period, the big number and breakdown are totals so far.
Each dashboard
| Dashboard | Graph | Big number | Change | Breakdown |
|---|---|---|---|---|
| Spend | Spend over time |
Total spend, e.g. $248,310.45 |
Percent. Higher is bad. | <N> expenses · <amount> average expense |
| Compliance | Violations over time |
Number of violations, e.g. 142 |
Percent. Lower is good. | On <N> expenses · <percent>% of all expenses |
| Efficiency | Workflow efficiency |
Average processing time, e.g. 4.6 days |
Time. Faster is good. | <time> to submit · <time> to approve · <time> to pay |
- Spend: the average expense is the total divided by the number of expenses, in the Group currency.
- Compliance: everything follows the
Violations byselection ([NoQA][Insights] Add a selector to the compliance charts for submitters and approvers #106231), e.g. withSubmittersselected, the number only counts violations at submission. The first part is the number of expenses with at least one violation, and the percent is their share of all expenses. One expense can have more than one violation, so the big number can be higher than the number of expenses. - Efficiency: every report in the Date range counts equally, however the months are grouped.
- Each stage part is the average time for that stage across every report that completed it in the range.
- The big number is the three parts added together, the same way each bar stacks its stages.
- Each part follows the ranking graphs' time format. When the approval stage isn't drawn (#), its part is left out.
- The graph's average line and pill change to the same calculation, so with
Compare: Averagethe pill always shows the big number. Today they average the monthly bars, so a quiet month with 20 reports counts as much as a busy month with 400, and the pill could read4.8 daysnext to a4.6 daysheadline.
Mobile
The block is the same on mobile. The breakdown wraps to a second line when it doesn't fit.
Loading and empty states
- The block shows a skeleton loader until the graph's data is ready, then appears with the graph.
- When the graph shows its empty state, the block is hidden.
Exportincludes the block in the PNG, the same as the rest of the card.
Metadata
Metadata
Labels
Type
Projects
- StatusShow more project fieldsNo status
Activity
JmillsExpensify commentedon Nov 19, 2026
Note to self: We need to chat with the team about the
Average processing timegraph.