fix(ui): clearer hold reasons, aligned details and chart states

Render the hold reason as a sentence, pluralise counts, give the details grid a fixed rhythm, use distinct registry colours, label the plotted series, and show a note for a single day of history.
This commit is contained in:
2026-11-24 01:27:22 +00:00
parent 6e8ac5265c
commit ad8295455d
19 changed files with 203 additions and 51 deletions
+8
View File
@@ -56,6 +56,14 @@ describe('Insights', () => {
expect(wrapper.get('[data-testid="daily-downloads"]').find('[role="img"]').exists()).toBe(true)
})
it('summarises the heatmap period next to the grid', async () => {
const { wrapper } = await open()
const summary = wrapper.get('[data-testid="heatmap-summary"]').text()
expect(summary).toContain('Total')
expect(summary).toContain(`of ${TIMESERIES.data_points.length}`)
expect(summary).toContain('Busiest day')
})
it('does not draw an empty heatmap for a month with no downloads', async () => {
const quiet = { ...TIMESERIES, data_points: TIMESERIES.data_points.map((p) => ({ ...p, value: 0 })) }
const { wrapper } = await open(STATS, quiet)