Skip to content

PM-5861: Add totals to dashboard report tooltips - #2132

Merged
jmgasper merged 1 commit into
devfrom
PM-5861
Aug 13, 2026
Merged

PM-5861: Add totals to dashboard report tooltips#2132
jmgasper merged 1 commit into
devfrom
PM-5861

Conversation

@jmgasper

Copy link
Copy Markdown
Collaborator

What was broken

Dashboard report tooltips listed each series value for a month but did not show the combined monthly total.

Root cause

The shared Highcharts configuration only defined the header and per-series rows. It had no formatter or footer that calculated a total, and Highcharts stack totals would not cover the grouped Challenge Participation report.

What was changed

Extended the shared dashboard tooltip formatter to preserve the existing Highcharts content, sum every hovered series point, and append a comma-formatted Total row. Currency reports include the dollar prefix while count reports remain unit-free. Because compact cards and detail pages share this chart component, the change covers all five reports.

Any added/updated tests

Updated DashboardChart coverage for currency totals, stacked count totals, and grouped count totals.

Validation:

  • Focused DashboardChart suite: 4 tests passed.
  • All Reports suites: 54 tests passed across 13 suites.
  • Lint passed.
  • Production build passed with existing warnings.
  • The full repository suite was run twice; 222 suites and 1,081 tests pass, while 18 unrelated existing Work, Wallet Admin, Profiles, and Engagements suites fail on the dev baseline.

What was broken

Dashboard report tooltips listed each series value for a month but did not show the combined monthly total.

Root cause

The shared Highcharts configuration only defined the header and per-series rows. It had no formatter or footer that calculated a total, and stack totals would not cover the grouped Challenge Participation report.

What was changed

Extended the shared dashboard tooltip formatter to preserve the existing Highcharts content, sum every hovered series point, and append a comma-formatted Total row. Currency reports include the dollar prefix while count reports remain unit-free.

Any added/updated tests

Updated DashboardChart coverage for currency totals, stacked count totals, and grouped count totals. All 13 Reports suites (54 tests), lint, and the production build pass. The full repository test command was run twice and retains 18 unrelated failures in existing Work, Wallet Admin, Profiles, and Engagements tests.
@jmgasper
jmgasper requested a review from kkartunov as a code owner August 12, 2026 07:12
@jmgasper
jmgasper merged commit 484b3f8 into dev Aug 13, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant