Skip to content

feat(analytics): add previous-period KPI delta comparisons#29

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

feat(analytics): add previous-period KPI delta comparisons#29
romahawk merged 1 commit intomainfrom
feat/pr5-mobile-log-cards

Conversation

@romahawk
Copy link
Copy Markdown
Owner

Summary

  • Add KPI deltas versus previous period for Accuracy, Volume, and Best Zone.
  • Compute previous period as a strict non-overlapping window before current selected dates.
  • Prevent misleading comparisons when previous period has no baseline data.

Changes

  • src/pages/Dashboard.jsx
    • derive previous period date range and previous filtered sessions
    • compute previousKpis
  • src/pages/dashboard/AnalyticsSection.jsx
    • pass previousKpis to KPI tiles
  • src/components/KpiTiles.jsx
    • render compact �s prev deltas with tone/color
    • show �s prev n/a when previous baseline is empty

Validation

  • npm run lint
  • npm run build
  • Visual: switch period/date ranges and verify KPI delta lines update or show
    /a when no previous data

@vercel
Copy link
Copy Markdown

vercel bot commented Feb 15, 2026

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

Project Deployment Actions Updated (UTC)
smartshooter Ready Ready Preview, Comment Feb 15, 2026 6:48pm

@romahawk romahawk merged commit 5b27089 into main Feb 15, 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