Skip to content

feat(analytics): grouped milestone previews, fallback comparator, and regression tests#31

Merged
romahawk merged 1 commit intomainfrom
feat/pr5-mobile-log-cards
Feb 16, 2026
Merged

feat(analytics): grouped milestone previews, fallback comparator, and regression tests#31
romahawk merged 1 commit intomainfrom
feat/pr5-mobile-log-cards

Conversation

@romahawk
Copy link
Copy Markdown
Owner

Summary

This batch delivers three roadmap items in one pass:

  1. Achievements UX depth (grouped categories + locked previews)
  2. Analytics comparator clarity (fallback + compare details)
  3. Regression safety tests for key mobile/analytics paths

What changed

  • Achievements / Milestones
    • Added badge catalog and category grouping helpers.
    • Milestone modal now renders grouped sections with unlocked + locked preview states.
  • Analytics comparator
    • Added fallback comparator search to nearest earlier period with data.
    • KPI labels now support source-aware deltas (vs prev, vs last active, n/a).
    • Added compact Compare details toggle for source + ranges.
  • Mobile/date hardening and testability
    • Extracted mobile date input class guards into a reusable module.
  • Tests
    • Added analytics fallback-window tests.
    • Added achievements catalog grouping/locked preview tests.
    • Added mobile date guard token test.

Files

  • src/pages/Dashboard.jsx
  • src/pages/dashboard/AnalyticsSection.jsx
  • src/components/KpiTiles.jsx
  • src/pages/dashboard/DashboardHeader.jsx
  • src/components/AnalyticsFilters.jsx
  • src/lib/analytics.js
  • src/lib/analytics.test.js
  • src/lib/achievements/definitions.js
  • src/lib/achievements/catalog.js
  • src/lib/achievements/catalog.test.js
  • src/lib/ui/mobileDateFieldClass.js
  • src/lib/ui/mobileDateFieldClass.test.js
  • package.json

Validation

  • npm run lint
  • npm run test
  • npm run build
  • Visual checks:
    • KPI delta source labels (vs prev / vs last active / n/a)
    • Compare details panel with ranges
    • Grouped milestone modal with locked previews
    • Mobile analytics/date row remains non-overflowing

@vercel
Copy link
Copy Markdown

vercel bot commented Feb 16, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
smartshooter Ready Ready Preview, Comment Feb 16, 2026 8:48am

@romahawk romahawk merged commit 2061a50 into main Feb 16, 2026
6 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