Skip to content

Analytics dashboard: filterable UX, dev mode bypass#30

Merged
jpr5 merged 1 commit intomainfrom
feat/analytics-dashboard-ux
Apr 13, 2026
Merged

Analytics dashboard: filterable UX, dev mode bypass#30
jpr5 merged 1 commit intomainfrom
feat/analytics-dashboard-ux

Conversation

@jpr5
Copy link
Copy Markdown
Contributor

@jpr5 jpr5 commented Apr 13, 2026

Summary

  • Tool type filter pills (All / Search / Explore) and source sub-filters on one line between charts and query tables
  • New /api/analytics/tool-counts endpoint for pill counts
  • All analytics API endpoints accept tool_type and source query params for server-side filtering
  • Top queries table includes Tool column with badges
  • Dev mode (NODE_ENV=development) skips token auth on both API and dashboard HTML
  • avg_result_count / avg_top_score exclude backfilled rows (result_count=-1) and return null when no real data exists
  • 12 new tests: filters, getToolCounts, null avg handling, dev mode auth bypass

Test plan

  • 2,223 tests pass
  • Build clean
  • Prettier clean
  • Verified locally: filter pills render, clicking Search/Explore filters tables, source sub-filter works
  • Dev mode skips login prompt
  • Avg Results shows "-" for backfilled data, real numbers for live data

- Tool type filter pills (All / Search / Explore) and source sub-filter
  on a single line between charts and tables
- New /api/analytics/tool-counts endpoint for pill counts
- All analytics endpoints accept tool_type and source query params
- Top queries table includes tool_name column with badges
- Dev mode (NODE_ENV=development) skips token auth on API and dashboard
- avg_result_count/avg_top_score exclude backfilled rows (result_count=-1)
  and return null instead of 0 when no real data exists
- 12 new tests covering filters, getToolCounts, null handling, dev bypass
@jpr5 jpr5 merged commit c3d0b78 into main Apr 13, 2026
4 checks passed
@jpr5 jpr5 deleted the feat/analytics-dashboard-ux branch April 13, 2026 17:53
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