Skip to content

Dashboard: show the collected amount when hovering a month of the chart - #55

Merged
flocom merged 1 commit into
mainfrom
claude/focused-hypatia-9nmd4u
Nov 16, 2026
Merged

flocom merged 1 commit into
mainfrom
claude/focused-hypatia-9nmd4u

Conversation

@flocom

@flocom flocom commented Nov 16, 2026

Copy link
Copy Markdown
Owner

Change

On the dashboard's "Encaissements" / "Collected" chart, hovering a month (or focusing it with the keyboard) now shows its amount in a tooltip at the top of the chart. Before, there was only a native title, slow to appear and absent on touch and keyboard.

  • CSS only, no inline style (the app's CSP style-src 'self' blocks them).
  • The first and last two months align their tooltip to the edge so it stays inside the card.
  • Each column gets tabindex="0" and an aria-label (month + amount).

Tests

  • Checked in Chromium: tooltip shown on hover for the first, middle and last months.
  • New TestDashboardChartTooltip; go vet ./... and go test ./... pass.

Generated by Claude Code

The "Collected" chart only had a native title tooltip, slow to appear and
missing on touch and keyboard. Each month now shows its amount in a styled
tooltip on hover or keyboard focus (CSS only, compatible with the CSP).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KYH8S5oYUwFL3iDkVPeLFR
@flocom
flocom merged commit 3e4ed0e into main Nov 16, 2026
1 check 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.

2 participants