feat(ux): pack dashboard KPI tiles two-up on phones - #117
Merged
Conversation
Metric/KPI widgets stacked full-width on phones, so a four-KPI dashboard pushed every chart below four screen-heights of mostly-empty cards. Pack the compact tiles two-per-row (charts, lists and tables still span the full width, which they need to stay legible) and tighten the tile: p-4, a 16px icon, and a two-line title floor so a single-line tile lines its headline up with a wrapping neighbor in the same row. KPI headline values already format through the resolved measure's format pattern (formatMetricValue → formatByPattern); no change needed there. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
UX-B — Dashboard KPI grid
Second of the UX improvements from the browser walkthrough.
Problem
On a phone every dashboard widget rendered full-width and stacked. The Task Overview dashboard's four KPIs (Total Tasks / Completed Today / Overdue / Completion Rate) each took ~280px, so you scrolled through four screen-heights of mostly-empty cards before the first chart.
Change
COMPACT_TYPES), while charts, lists and tables still span the full width — they need it to stay legible.SINGLE_COLUMN_MAX); below that it collapses to one column.p-4instead ofp-5, a 16px icon, and a two-line title floor (min-h-[40px]) so a single-line tile (“Total Tasks”) lines its headline up with a wrapping neighbour (“Completed Today”) in the same row.Measure format
KPI headline values already render through the resolved measure's format pattern (
formatMetricValue→formatByPattern), so no change was needed there.Verified
Browser (375dp, dark mode): four KPIs now sit in a 2×2 grid with values aligned to a common baseline, and the "Tasks by Status" donut + legend are visible on the first screen instead of the fifth.
🤖 Generated with Claude Code