Skip to content

[Insights polish] [R8] Add a summary to the headline graph on every dashboard #107477

Open

Description

@JmillsExpensify

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

Headline summary mock - all dashboards

Mobile

Headline summary mock - 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:

  1. Big number: the one number for the whole Date range, in the h1 style.
  2. Change: to the right of the big number, on the same line. See Change.
  3. 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 Compare is set to Previous period. It ends with the Compare label, 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 days or ↓ 3.5 hours.
  • In an in-progress period, the change compares against the same number of days in the comparison period. On Nov 3, This month doesn'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 Explain are 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 by selection ([NoQA][Insights] Add a selector to the compliance charts for submitters and approvers #106231), e.g. with Submitters selected, 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: Average the 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 read 4.8 days next to a 4.6 days headline.

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.
  • Export includes the block in the PNG, the same as the rest of the card.

Activity

  1. added
    Weekly
    Improvement
    Internal
    on Nov 19, 2026
  2. JmillsExpensify commented on Nov 19, 2026

    @JmillsExpensify
    ContributorAuthor

    Note to self: We need to chat with the team about the Average processing time graph.

  3. added
    Reviewing
    on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

ImprovementInternalReviewingWeekly

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions