[PR #18] [MERGED] Staff dashboards: the Team dashboard's Stats and Data tabs #21

Closed
opened 2026-11-03 04:02:25 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon-site/pull/18
Author: @ludovic111
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @ludovic111

Base: main ← Head: feat/staff-team-stats


📝 Commits (1)

  • 5874d2d Staff dashboards: the Team dashboard's Stats and Data tabs

📊 Changes

5 files changed (+226 additions, -3 deletions)

View changed files

📝 build.mjs (+1 -1)
➕ src/staff-stats.js (+168 -0)
➕ src/staff-stats.test.js (+12 -0)
📝 src/staff-team.js (+7 -2)
📝 src/style.css (+38 -0)

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

Fourth site part of the staff dashboards: the Team dashboard's Stats and Data tabs. Kira's team/stats is already deployed (GitHub GraphQL counts, cached; Discord counters are counts only).

What it adds

  • Stats: four tiles (pull requests ready for review with drafts and the oldest, CI passing/failing, open bugs with crucial ones, last game release and the median gap), then bar charts over 12 weeks: PRs opened and merged, median hours to first review, median hours to merge, game and launcher releases, Discord messages, daily active members, joins and leaves; open bugs by source and by area.
    • One y axis per chart, a legend for two series, a hover title on every week, and each chart's numbers in a "Table".
    • Two series colors per theme, run through the palette validator (lightness band, chroma, colour-blind separation, contrast vs the panel): all pass in light and dark.
    • Loaded when the tab first opens; while Kira is still counting after a restart (503) it says so with "Try again".
  • Data: tables of what the dashboard holds (Team kanban, Team-only items, Team notes on public items, decisions, roadmap progress by roadmap:<id> labels, contributors over 12 weeks, weekly numbers), each exportable as CSV or JSON. CSV cells starting with = + - @ get a leading quote so a spreadsheet never runs text from Discord or GitHub.
  • No inline styles in markup (bar widths go through the CSSOM), so the CSP stays as it is.

Tests

  • npm test: 51 pass (2 new: CSV quoting and the formula guard).
  • Chromium against Kira's dev API (fake store): Stats renders all charts; a Data anchor keeps the tab open; CSV and JSON downloads have the right header and rows; no page errors.
  • Screenshots (fake data, Mac mini): ~/builds/horizon-site/staff-shots/team-stats-{dark,light}.png, team-data-{dark,light}.png.

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon-site/pull/18 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/staff-team-stats` --- ### 📝 Commits (1) - [`5874d2d`](https://github.com/horizon-rust/horizon-site/commit/5874d2df0edebc3f8895e488389dbf13e1f9db93) Staff dashboards: the Team dashboard's Stats and Data tabs ### 📊 Changes **5 files changed** (+226 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `build.mjs` (+1 -1) ➕ `src/staff-stats.js` (+168 -0) ➕ `src/staff-stats.test.js` (+12 -0) 📝 `src/staff-team.js` (+7 -2) 📝 `src/style.css` (+38 -0) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Fourth site part of the staff dashboards: the Team dashboard's **Stats** and **Data** tabs. Kira's `team/stats` is already deployed (GitHub GraphQL counts, cached; Discord counters are counts only). ## What it adds - **Stats**: four tiles (pull requests ready for review with drafts and the oldest, CI passing/failing, open bugs with crucial ones, last game release and the median gap), then bar charts over 12 weeks: PRs opened and merged, median hours to first review, median hours to merge, game and launcher releases, Discord messages, daily active members, joins and leaves; open bugs by source and by area. - One y axis per chart, a legend for two series, a hover title on every week, and each chart's numbers in a "Table". - Two series colors per theme, run through the palette validator (lightness band, chroma, colour-blind separation, contrast vs the panel): all pass in light and dark. - Loaded when the tab first opens; while Kira is still counting after a restart (503) it says so with "Try again". - **Data**: tables of what the dashboard holds (Team kanban, Team-only items, Team notes on public items, decisions, roadmap progress by `roadmap:<id>` labels, contributors over 12 weeks, weekly numbers), each exportable as CSV or JSON. CSV cells starting with `= + - @` get a leading quote so a spreadsheet never runs text from Discord or GitHub. - No inline styles in markup (bar widths go through the CSSOM), so the CSP stays as it is. ## Tests - `npm test`: 51 pass (2 new: CSV quoting and the formula guard). - Chromium against Kira's dev API (fake store): Stats renders all charts; a Data anchor keeps the tab open; CSV and JSON downloads have the right header and rows; no page errors. - Screenshots (fake data, Mac mini): `~/builds/horizon-site/staff-shots/team-stats-{dark,light}.png`, `team-data-{dark,light}.png`. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:02:25 +07:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon-site#21
No description provided.