[PR #1819] [MERGED] Website: the hub (/hub): overview, roadmap with a Simple / Technical switch, live states #3790

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

📋 Pull Request Information

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

Base: main ← Head: feat/roadmap-hub


📝 Commits (3)

  • e936e41 Website: the hub (/hub) with the roadmap, a Simple / Technical switch and live states
  • 68234ac Hub: the roadmap at /data/roadmap.json and items at hub#, as Kira reads them
  • 78ab03e Merge main into feat/roadmap-hub: the hub beside the registry's pages

📊 Changes

12 files changed (+1212 additions, -22 deletions)

View changed files

📝 tests/test_roadmap.py (+14 -3)
📝 tools/roadmap.py (+42 -10)
📝 website/Caddyfile (+7 -1)
📝 website/README.md (+4 -0)
📝 website/build.mjs (+57 -7)
➕ website/data/roadmap.json (+562 -0)
📝 website/serve.mjs (+5 -0)
➕ website/src/hub-page.js (+119 -0)
➕ website/src/hub.html (+110 -0)
➕ website/src/hub.js (+175 -0)
➕ website/src/hub.test.mjs (+55 -0)
📝 website/src/style.css (+62 -1)

📄 Description

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

Second of the roadmap stack, on #1815 (base feat/roadmap; retarget to main once #1815 merges). It adds playhorizon.dev/hub, the single public entry point. This PR has three tabs: Overview, Roadmap and Contribute. Kanban and Journal follow in the next PR.

What

  • /hub (website/src/hub.html, hub.js shared by build and page, hub-page.js):
    • Overview: where Horizon is today, the 3–5 focus items with their live progress ("3 pull requests in review · 1 merged"), Next, the last shipped items, and how to help.
    • Roadmap: Now / Next / Later / Help wanted / Shipped, an area filter, and each item as a panel with its badges, text, progress and its issues and PRs as chips (#1171 in review, #1514 merged).
    • Contribute: good first tasks (the Help wanted items with their issue), ways to help (report, /claim, /agent connect for Kira's MCP, benchmark your computer), the rules.
    • Simple / Technical: swaps every plain and dev text. It is remembered in localStorage (hub:detail) and applied before first paint by the head script.
    • Tabs follow the #hash: /hub#roadmap, /hub#<item id> (the link Kira uses) and /hub#help-wanted open their tab. Without JavaScript the tabs read one after another, in Simple.
    • Live state: the build bakes the state of every linked issue or PR. It reads open issues and PRs, the recently closed ones, and the older ones through a single GraphQL query when GITHUB_TOKEN is set: 98/98 links live locally. The browser refreshes them from GitHub's public API, with at most 4 requests cached for 10 minutes like the other pages, and falls back to the baked states.
  • website/data/roadmap.json: tools/roadmap.py build now writes it next to ROADMAP.md, and build --check / tests/test_roadmap.py keep it in sync. The site serves it at /data/roadmap.json, where Kira reads it (kira #10), readable from any origin. Item ids that the page itself uses (tabs, sections, headings) are refused by the check, and a test keeps every id on the page unique. Because it lives under website/, a roadmap change redeploys the site.
  • Nav and footer: Hub. /roadmap → /hub#roadmap (Caddy and serve.mjs). Sitemap. CSS follows the Blocks look: panels, badges, the existing tabs and pressed-button styles.

Tests

  • npm test: 24/24, including the new hub.test.mjs (issue/PR reduction, Fixes #N, progress counts, every item rendered once with both texts, no nested links in rows).
  • python3 -m unittest tests.test_roadmap: OK.
  • node build.mjs with a token: 35 roadmap items (98/98 links live).
  • Playwright screenshots of /hub, /hub#roadmap (Simple and Technical) and /hub#contribute, at 390, 1120 and 1440 px in light and dark: 24 shots, no horizontal overflow and no page errors. The only console errors were GitHub's 403 rate limit on the shared machine, where the page kept the baked states.

Needs Ludovic

  • If Railway's website service has no GITHUB_TOKEN, the build still works, but older links show without a state until the browser refreshes them. A read-only token there gives every state at build.

skip-release: website only.

🤖 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/pull/1819 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/25/2026 **Status:** ✅ Merged **Merged:** 10/25/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/roadmap-hub` --- ### 📝 Commits (3) - [`e936e41`](https://github.com/horizon-rust/horizon/commit/e936e412ba04f67d907d4b5abdeb412a8f3e6462) Website: the hub (/hub) with the roadmap, a Simple / Technical switch and live states - [`68234ac`](https://github.com/horizon-rust/horizon/commit/68234ac4075d4e55b2b5ee5f3acc5d5e9136b08e) Hub: the roadmap at /data/roadmap.json and items at hub#<id>, as Kira reads them - [`78ab03e`](https://github.com/horizon-rust/horizon/commit/78ab03e554ac3c90f8d3e623145aeff287a69643) Merge main into feat/roadmap-hub: the hub beside the registry's pages ### 📊 Changes **12 files changed** (+1212 additions, -22 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_roadmap.py` (+14 -3) 📝 `tools/roadmap.py` (+42 -10) 📝 `website/Caddyfile` (+7 -1) 📝 `website/README.md` (+4 -0) 📝 `website/build.mjs` (+57 -7) ➕ `website/data/roadmap.json` (+562 -0) 📝 `website/serve.mjs` (+5 -0) ➕ `website/src/hub-page.js` (+119 -0) ➕ `website/src/hub.html` (+110 -0) ➕ `website/src/hub.js` (+175 -0) ➕ `website/src/hub.test.mjs` (+55 -0) 📝 `website/src/style.css` (+62 -1) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Second of the roadmap stack, on #1815 (base `feat/roadmap`; retarget to `main` once #1815 merges). It adds **playhorizon.dev/hub**, the single public entry point. This PR has three tabs: Overview, Roadmap and Contribute. Kanban and Journal follow in the next PR. ## What - **`/hub`** (`website/src/hub.html`, `hub.js` shared by build and page, `hub-page.js`): - **Overview**: where Horizon is today, the 3–5 focus items with their live progress ("3 pull requests in review · 1 merged"), Next, the last shipped items, and how to help. - **Roadmap**: Now / Next / Later / Help wanted / Shipped, an area filter, and each item as a panel with its badges, text, progress and its issues and PRs as chips (`#1171 in review`, `#1514 merged`). - **Contribute**: good first tasks (the Help wanted items with their issue), ways to help (report, `/claim`, `/agent connect` for Kira's MCP, benchmark your computer), the rules. - **Simple / Technical**: swaps every `plain` and `dev` text. It is remembered in `localStorage` (`hub:detail`) and applied before first paint by the head script. - Tabs follow the `#hash`: `/hub#roadmap`, `/hub#<item id>` (the link Kira uses) and `/hub#help-wanted` open their tab. Without JavaScript the tabs read one after another, in Simple. - **Live state**: the build bakes the state of every linked issue or PR. It reads open issues and PRs, the recently closed ones, and the older ones through a single GraphQL query when `GITHUB_TOKEN` is set: 98/98 links live locally. The browser refreshes them from GitHub's public API, with at most 4 requests cached for 10 minutes like the other pages, and falls back to the baked states. - **`website/data/roadmap.json`**: `tools/roadmap.py build` now writes it next to ROADMAP.md, and `build --check` / `tests/test_roadmap.py` keep it in sync. The site serves it at **`/data/roadmap.json`**, where Kira reads it (kira #10), readable from any origin. Item ids that the page itself uses (tabs, sections, headings) are refused by the check, and a test keeps every id on the page unique. Because it lives under `website/`, a roadmap change redeploys the site. - Nav and footer: Hub. `/roadmap` → `/hub#roadmap` (Caddy and `serve.mjs`). Sitemap. CSS follows the Blocks look: panels, badges, the existing tabs and pressed-button styles. ## Tests - `npm test`: 24/24, including the new `hub.test.mjs` (issue/PR reduction, `Fixes #N`, progress counts, every item rendered once with both texts, no nested links in rows). - `python3 -m unittest tests.test_roadmap`: OK. - `node build.mjs` with a token: `35 roadmap items (98/98 links live)`. - Playwright screenshots of `/hub`, `/hub#roadmap` (Simple and Technical) and `/hub#contribute`, at 390, 1120 and 1440 px in light and dark: 24 shots, no horizontal overflow and no page errors. The only console errors were GitHub's 403 rate limit on the shared machine, where the page kept the baked states. ## Needs Ludovic - If Railway's website service has no `GITHUB_TOKEN`, the build still works, but older links show without a state until the browser refreshes them. A read-only token there gives every state at build. `skip-release`: website only. 🤖 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:12:21 +07:00
Sign in to join this conversation.
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#3790
No description provided.