[PR #47] [MERGED] Add the hub's People tab and the launcher's download count #48

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon-site/pull/47
Author: @ludovic111
Created: 11/2/2026
Status: ✅ Merged
Merged: 11/2/2026
Merged by: @ludovic111

Base: main ← Head: feat/org-chart-downloads


📝 Commits (1)

  • 7701dd4 Add the hub's People tab and the launcher's download count

📊 Changes

8 files changed (+198 additions, -6 deletions)

View changed files

📝 app/globals.css (+1 -0)
📝 app/hub/page.tsx (+6 -2)
📝 components/github-releases.ts (+29 -0)
📝 components/hero.tsx (+11 -2)
📝 components/hub-panels.tsx (+96 -1)
📝 components/hub-shell.tsx (+1 -0)
➕ components/org-chart.ts (+48 -0)
📝 next.config.ts (+6 -1)

📄 Description

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

Ludovic asked for both on 2026-11-02. Built from the site's existing pieces (the hub's Panel/Block, cards, chips, tab bar; the hero's launcher line). No other design changes.

1. Org chart: a People tab on /hub (/hub#people)

  • The Discord roles top to bottom: 👑 Owner → 🌌 Horizon Team → 🛡️ Chief of Mods → 🛡️ Mods → 🤝 Support, on a vertical line. Each person: Discord display name, username, GitHub login (linked) when confirmed, and a job chip when there is one (Anthony S. = Design, rdbt = Official server economy).
  • Data: Kira's new public GET /staff.json (horizon-rust/kira#116), read on the server (components/org-chart.ts, KIRA_URL like /api/market) and cached 10 minutes, so a role change on Discord shows without a deploy. The response is checked again here (tier keys, login format, only the two Discord avatar URL forms allowed in next.config.ts).
  • If Kira can't be read, the tab says so and links the Discord server.

2. Launcher download count on the home page

  • On the hero's launcher line: Launcher 0.2.37 · 15.7 MB · 205,211 downloads (tooltip: all versions, updates included). It says "downloads", not players.
  • getLauncherDownloads() sums download_count of the horizon-launcher-* files (zip, tar.gz, dmg, AppImage) over every release page, through Kira's GitHub proxy (githubFetch, so it uses Kira's app token), never from the browser. Cached 30 minutes, also refreshed by the releases tag. Hidden when GitHub can't be read.

Screenshots (local next dev, People data from today's Discord roles)

Desktop Mobile (390 px)

Checks

  • npx next typegen && npx tsc --noEmit: ok
  • eslint on the changed files: ok
  • npm run build: ok (with Kira not yet deployed, /hub builds with the fallback message, revalidating every minute until the feed answers)

Merge order: kira#116 first, then this one.

🤖 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/47 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 11/2/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/org-chart-downloads` --- ### 📝 Commits (1) - [`7701dd4`](https://github.com/horizon-rust/horizon-site/commit/7701dd455cc2d0ccdde7f1591e175461c1d953b1) Add the hub's People tab and the launcher's download count ### 📊 Changes **8 files changed** (+198 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `app/globals.css` (+1 -0) 📝 `app/hub/page.tsx` (+6 -2) 📝 `components/github-releases.ts` (+29 -0) 📝 `components/hero.tsx` (+11 -2) 📝 `components/hub-panels.tsx` (+96 -1) 📝 `components/hub-shell.tsx` (+1 -0) ➕ `components/org-chart.ts` (+48 -0) 📝 `next.config.ts` (+6 -1) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Ludovic asked for both on 2026-11-02. Built from the site's existing pieces (the hub's Panel/Block, cards, chips, tab bar; the hero's launcher line). No other design changes. ### 1. Org chart: a **People** tab on /hub (`/hub#people`) - The Discord roles top to bottom: 👑 Owner → 🌌 Horizon Team → 🛡️ Chief of Mods → 🛡️ Mods → 🤝 Support, on a vertical line. Each person: Discord display name, username, GitHub login (linked) when confirmed, and a job chip when there is one (Anthony S. = Design, rdbt = Official server economy). - Data: Kira's new public `GET /staff.json` (horizon-rust/kira#116), read on the server (`components/org-chart.ts`, `KIRA_URL` like /api/market) and cached 10 minutes, so a role change on Discord shows without a deploy. The response is checked again here (tier keys, login format, only the two Discord avatar URL forms allowed in `next.config.ts`). - If Kira can't be read, the tab says so and links the Discord server. ### 2. Launcher download count on the home page - On the hero's launcher line: `Launcher 0.2.37 · 15.7 MB · 205,211 downloads` (tooltip: all versions, updates included). It says "downloads", not players. - `getLauncherDownloads()` sums `download_count` of the `horizon-launcher-*` files (zip, tar.gz, dmg, AppImage) over every release page, through Kira's GitHub proxy (`githubFetch`, so it uses Kira's app token), never from the browser. Cached 30 minutes, also refreshed by the releases tag. Hidden when GitHub can't be read. ### Screenshots (local `next dev`, People data from today's Discord roles) | Desktop | Mobile (390 px) | |---|---| | <img src="https://raw.githubusercontent.com/horizon-rust/horizon-site/6bed978818904632cb5d8ee3f74d2c5111b5b357/site-orgchart-downloads/home-desktop.png" width="560"> | <img src="https://raw.githubusercontent.com/horizon-rust/horizon-site/6bed978818904632cb5d8ee3f74d2c5111b5b357/site-orgchart-downloads/home-mobile.png" width="260"> | | <img src="https://raw.githubusercontent.com/horizon-rust/horizon-site/6bed978818904632cb5d8ee3f74d2c5111b5b357/site-orgchart-downloads/people-desktop-crop.png" width="560"> | <img src="https://raw.githubusercontent.com/horizon-rust/horizon-site/6bed978818904632cb5d8ee3f74d2c5111b5b357/site-orgchart-downloads/people-mobile-crop.png" width="260"> | ### Checks - `npx next typegen && npx tsc --noEmit`: ok - eslint on the changed files: ok - `npm run build`: ok (with Kira not yet deployed, /hub builds with the fallback message, revalidating every minute until the feed answers) Merge order: kira#116 first, then this one. 🤖 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:38 +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#48
No description provided.