App icon indicating copy to clipboard operation
App copied to clipboard

[Due for payment 2026-11-19] [Insights polish] [R1] Show the date range under the graph title in the Home Insights widget

Open JmillsExpensify opened this issue 3 weeks ago • 8 comments

Background

The Insights widget on Home shows one graph at a time: Spend over time, Top spenders, Top merchants, or Top categories. It uses the date range saved on the Insights page, but it doesn't show that range anywhere. Spend over time at least has dates on its x-axis. The other three graphs give no hint of the time period, so a viewer can't tell whether Top spenders covers this month or the last year.

This issue adds a one-line subtitle under the graph title in the Home widget that names the date range. This is a Home-only change; the Insights page already shows its Date filter above every card, so its cards don't change.

Product and design details

Home Insights widget, Top spenders with Last 6 months under the title

Image

Subtitle

  • We add a subtitle directly under the graph title (Top spenders and its dropdown arrow), left-aligned with it.
  • It uses the secondary text style shown in the mock: smaller than the title, in the muted text color.
  • It shows on every graph the widget can display, including Spend over time.
  • It always fits on one line. If the card is too narrow, it truncates with an ellipsis.

Copy

The subtitle shows the Date value saved on the Insights page, using the same label the Date filter shows.

  • A preset shows the preset's label exactly, e.g. Last 6 months, This month, Last 12 months.
  • A custom range shows the start and end dates, e.g. Sep 1 – Oct 15.
  • A custom day shows that one date, e.g. Oct 5.
  • Custom dates leave the year out when the whole range falls in the current year. Otherwise both dates show the year, e.g. Nov 15, 2025 – Jan 10, 2026.
  • When nothing has been saved yet, the subtitle shows the default Date preset, since that's what the widget is already using.

Updates

  • Switching graphs with the title dropdown keeps the same subtitle, because all four graphs share one date range.
  • Changing the Date filter on the Insights page updates the Home subtitle the next time Home renders, on any device, since the filter is saved per dashboard across sessions and devices.
  • While the graph shows its loading state, the subtitle still shows, because the saved range is already known.
Issue OwnerCurrent Issue Owner: @mallenexpensify

JmillsExpensify avatar Nov 10 '26 12:11 JmillsExpensify

@MelvinBot assign daledah

mhawryluk avatar Nov 10 '26 15:11 mhawryluk

Assigned daledah.


view run

MelvinBot avatar Nov 10 '26 15:11 MelvinBot

@daledah

The solution for this issue has been :rocket: deployed to production :rocket: in version 9.5.36-0 and is now subject to a 7-day regression period :calendar:. Here is the list of pull requests that resolve this issue:

  • https://github.com/Expensify/App/pull/106503

If no regressions arise, payment will be issued on 2026-11-19. :confetti_ball:

The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the Contributor+ Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]. If no checklist is needed for this issue, you can click: [no checklist button]

melvin-bot[bot] avatar Nov 12 '26 08:11 melvin-bot[bot]

Contributor+ Checklist:

  • [x] [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

  • [x] [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:

  • [x] [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. Sign in as a user with a group workspace and open Home.
  2. Verify the Insights widget shows a subtitle under the graph title that names the Date filter value from the Insights page. With nothing saved, it's This year.
  3. Switch between Spend over time, Top spenders, Top merchants and Top categories with the title dropdown. Verify the subtitle stays the same.
  4. Open Insights, set Date to Last 6 months, and go back to Home. Verify the subtitle shows Last 6 months.
  5. Set Date to a custom range within the current year, for example Sep 1 to Oct 15. Verify Home shows Sep 1 - Oct 15.
  6. Set Date to a custom range that starts last year. Verify both dates show the year, for example Nov 15, 2025 - Jan 10, 2026.
  7. Set Date to a custom day. Verify Home shows only that date, for example Oct 5.
  8. Narrow the window until the subtitle doesn't fit. Verify it stays on one line and ends with an ellipsis.
  9. Clear cache and restart and open Home and verify the loading skeleton's Insights card has a second, shorter bar under the title bar.
  10. Offline

Do we agree 👍 or 👎

daledah avatar Nov 12 '26 14:11 daledah

Triggered auto assignment to @mallenexpensify (Awaiting Payment)

Payment Summary

Resolving PRs:

  • https://github.com/Expensify/App/pull/106503

  • Contributor: @mhawryluk does not require payment (Contractor)

  • Contributor: @OlGierd03 does not require payment (Contractor)

  • Reviewer: @daledah owed $175 via NewDot

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

Claude posting on behalf of Matt:

Ready. Job price: $250 (Insights project, bernhardoj assigned 2026-09-10).

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

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

Next: press Caps+Y, then pay.

Evidence
  • C+ checklist, 10 steps: comment
  • PR 106503: by mhawryluk (agency), merged 2026-11-10, production 2026-11-12, approved by daledah, luacmartins and JmillsExpensify. No revert.
  • Test videos: C+ 1/1.

PAYPREP v1

mallenexpensify avatar Nov 20 '26 01:11 mallenexpensify

Payment Summary

Contributor+: @daledah due $250 via NewDot

mallenexpensify avatar Nov 21 '26 00:11 mallenexpensify