Add dashboard analytics visualizations - #46
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 71669191e2
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| > | ||
| <div style={{ background: '#1e293b', padding: '1rem', borderRadius: '12px' }}> | ||
| <h2>Total Detections</h2> | ||
| <p style={{ fontSize: '2rem' }}>27</p> |
There was a problem hiding this comment.
Populate dashboard metrics from API data
With the default repository data this card reports 27 detections even though /analytics derives total_detections from the files under detections (currently 5), and the new chart arrays are similarly hard-coded. In any environment where detections are added, removed, or a different path is served, the dashboard now shows fabricated/stale analytics instead of the actual API results, so users can make decisions from incorrect counts.
Useful? React with 👍 / 👎.
Summary
Implements real analytics visualizations for the DetLab dashboard.
Changes
Example