Skip to content

Improve statistics dashboard with cached coverage metrics and charts - #65

Merged
adulau merged 1 commit into
mainfrom
codex/improve-statistics-dashboard
Oct 27, 2026
Merged

adulau merged 1 commit into
mainfrom
codex/improve-statistics-dashboard

Conversation

@adulau

@adulau adulau commented Oct 27, 2026

Copy link
Copy Markdown
Member

The statistics page now shows record coverage and readable charts alongside the existing catalog totals. Coverage counts distinct CPEs/products, so several PURL mappings or vulnerability references on one CPE contribute only once.

  • Add active/deprecated CPE counts, products without CPEs, vulnerability-reference coverage, CPEs per product, and a snapshot timestamp to the page and JSON API.
  • Replace plain lists with responsive bar charts, formatted totals, contribution breakdowns, and vendor comparison bars. Support light/dark themes, empty datasets, and use without JavaScript.
  • Preserve Valkey caching and its configurable TTL for the shared page/API snapshot and paginated rankings. Version the expanded payload cache key; keep database fallback when Valkey is unavailable. Document cache settings and additive API fields.

Validation: pytest -q --disable-warnings — 120 passed, 1 optional browser module skipped. Separate Chromium checks passed for desktop, tablet, 360px/320px mobile, light/dark themes, JavaScript enabled/disabled, chart bounds, and disclosure controls. Cache regressions verify zero SQL queries on warm page/API requests, refresh after cache misses, legacy-key isolation, TTL preservation, and Valkey failure fallback. OpenAPI YAML parses and git diff --check passes.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-10-27T19:51:41.811132Z cc932b5 PR opened
🔒 Security Review ✅ Completed 2026-10-27T19:53:54.609378Z cc932b5 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@adulau
adulau merged commit 471bcad into main Oct 27, 2026
1 check 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