mirror of
https://github.com/horizon-rust/horizon-site.git
synced 2026-12-03 19:12:41 +07:00
[PR #47] [MERGED] Add the hub's People tab and the launcher's download count #48
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
horizon-rust/horizon-site#48
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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)
7701dd4Add 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
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)GET /staff.json(horizon-rust/kira#116), read on the server (components/org-chart.ts,KIRA_URLlike /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 innext.config.ts).2. Launcher download count on the home page
Launcher 0.2.37 · 15.7 MB · 205,211 downloads(tooltip: all versions, updates included). It says "downloads", not players.getLauncherDownloads()sumsdownload_countof thehorizon-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)Checks
npx next typegen && npx tsc --noEmit: oknpm 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.