[PR #1851] [MERGED] Hub: vote for roadmap items, report a bug and suggest something from the page #3815

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

📋 Pull Request Information

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

Base: main ← Head: feat/hub-forms


📝 Commits (2)

  • c1ffa17 Hub: vote for roadmap items, report a bug and suggest something from the page
  • effea2c Merge feat/hub-board (main's registry pages) into feat/hub-forms

📊 Changes

9 files changed (+293 additions, -11 deletions)

View changed files

📝 roadmap/README.md (+27 -2)
📝 tools/roadmap.py (+2 -1)
📝 website/build.mjs (+17 -2)
📝 website/src/contributors.js (+1 -1)
📝 website/src/hub-page.js (+120 -0)
📝 website/src/hub.html (+42 -1)
📝 website/src/hub.js (+39 -2)
📝 website/src/hub.test.mjs (+21 -1)
📝 website/src/style.css (+24 -1)

📄 Description

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

Fourth PR of the hub stack, on #1821 (base feat/hub-board). It uses the intake endpoints from #1838 and #1839.

  • Votes. Every roadmap item still to come gets a "Want it" button with its count. One vote per browser: a random id in localStorage (hub:voter), plus the items voted for (hub:voted). A second click takes the vote back. The count updates optimistically and rolls back if the server refuses (429).
  • Report a bug (Contribute tab, #report): title, what I did, what happened, what I expected, version (filled with the newest game release), OS/CPU/GPU, an optional name, and a honeypot. This is the #horizon-bugs template Kira's /report uses. The telemetry server opens the issue and the page answers "Thanks! It's issue #N on GitHub". The form warns that what you write is public. Server errors read as sentences ("Check what you did: 3 to 2000 characters.").
  • Suggest something (#suggest): the idea, an optional roadmap item it is about, and an optional name. The page says nothing is published. Kira relays it to #roadmap-suggestions.
  • Contributors (#contributors): GitHub's contributors, with the Discord name of those who agreed on Kira (/link-github <login> credit:True, kira #13). The list is baked at build from Kira's /contributors.json (KIRA_CONTRIBUTORS_URL, default Kira's Railway address). Today that endpoint answers 404 until kira #13 deploys, and the list shows without Discord names.
  • Until the server is deployed the forms and the vote buttons stay hidden: they appear only once GET /hub/votes answers. Before that, the sections point to GitHub, #horizon-bugs and #horizon-ideas. Merging this before the server is deployed is safe.
  • The overview's "How to help" gets "Report a bug" and "Suggest something" buttons, and so does the "Tell us what differs" card.
  • report, suggest and contributors join the anchors no roadmap id may take.
  • roadmap/README.md gets The intake section: the API table Kira shares, the error format, the report template and the relay.

Checks

  • npm test: 30/30. New tests cover vote buttons and suggestion choices only for items still to come, the credit merge (case-insensitive, junk ignored, escaped), and every id on the page staying unique, forms included.
  • python3 -m unittest tests.test_roadmap: OK. tools/roadmap.py build --check: in sync.
  • End to end, against the real server from #1839 run locally (fresh database, the site built with HUB_API_URL pointing at it), in Playwright:
    • The buttons appear, a vote counts, survives a reload and is taken back.
    • The browser stops an idea that is too short, and a valid one is thanked; it then appears in GET /hub/suggestions with its item and name.
    • The version is prefilled.
    • With no GitHub token on that server, a report answers "Reports are closed here: use GitHub or Discord."
    • No page errors.
    • The first run found a real bug: the browser's HTTP cache of /hub/votes (max-age 60) hid your own vote after a reload. The page now revalidates that request. The run also showed that the votes' burst of 12 was too tight, so #1838 now allows 600 an hour.
  • Screenshots at 390, 1120 and 1440 px, light and dark (/hub, /hub#roadmap, /hub#contribute), plus the thanked suggestion: no horizontal overflow, no page errors. They are on the Mac mini in ~/builds/horizon/hub-shots/pr5/. The vote button uses the site's block buttons; pressed, it looks like the area filter's pressed button.

🤖 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/1851 **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/hub-forms` --- ### 📝 Commits (2) - [`c1ffa17`](https://github.com/horizon-rust/horizon/commit/c1ffa17c87bcef7d2d564644123c3142c169b0d3) Hub: vote for roadmap items, report a bug and suggest something from the page - [`effea2c`](https://github.com/horizon-rust/horizon/commit/effea2cfd49f95351537f69a318444068baced8b) Merge feat/hub-board (main's registry pages) into feat/hub-forms ### 📊 Changes **9 files changed** (+293 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `roadmap/README.md` (+27 -2) 📝 `tools/roadmap.py` (+2 -1) 📝 `website/build.mjs` (+17 -2) 📝 `website/src/contributors.js` (+1 -1) 📝 `website/src/hub-page.js` (+120 -0) 📝 `website/src/hub.html` (+42 -1) 📝 `website/src/hub.js` (+39 -2) 📝 `website/src/hub.test.mjs` (+21 -1) 📝 `website/src/style.css` (+24 -1) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Fourth PR of the hub stack, on #1821 (base `feat/hub-board`). It uses the intake endpoints from #1838 and #1839. - **Votes.** Every roadmap item still to come gets a "Want it" button with its count. One vote per browser: a random id in `localStorage` (`hub:voter`), plus the items voted for (`hub:voted`). A second click takes the vote back. The count updates optimistically and rolls back if the server refuses (429). - **Report a bug** (Contribute tab, `#report`): title, what I did, what happened, what I expected, version (filled with the newest game release), OS/CPU/GPU, an optional name, and a honeypot. This is the `#horizon-bugs` template Kira's `/report` uses. The telemetry server opens the issue and the page answers "Thanks! It's issue #N on GitHub". The form warns that what you write is public. Server errors read as sentences ("Check what you did: 3 to 2000 characters."). - **Suggest something** (`#suggest`): the idea, an optional roadmap item it is about, and an optional name. The page says nothing is published. Kira relays it to `#roadmap-suggestions`. - **Contributors** (`#contributors`): GitHub's contributors, with the Discord name of those who agreed on Kira (`/link-github <login> credit:True`, kira #13). The list is baked at build from Kira's `/contributors.json` (`KIRA_CONTRIBUTORS_URL`, default Kira's Railway address). Today that endpoint answers 404 until kira #13 deploys, and the list shows without Discord names. - **Until the server is deployed** the forms and the vote buttons stay hidden: they appear only once `GET /hub/votes` answers. Before that, the sections point to GitHub, `#horizon-bugs` and `#horizon-ideas`. Merging this before the server is deployed is safe. - The overview's "How to help" gets "Report a bug" and "Suggest something" buttons, and so does the "Tell us what differs" card. - `report`, `suggest` and `contributors` join the anchors no roadmap id may take. - `roadmap/README.md` gets **The intake** section: the API table Kira shares, the error format, the report template and the relay. ### Checks - `npm test`: 30/30. New tests cover vote buttons and suggestion choices only for items still to come, the credit merge (case-insensitive, junk ignored, escaped), and every id on the page staying unique, forms included. - `python3 -m unittest tests.test_roadmap`: OK. `tools/roadmap.py build --check`: in sync. - **End to end**, against the real server from #1839 run locally (fresh database, the site built with `HUB_API_URL` pointing at it), in Playwright: - The buttons appear, a vote counts, survives a reload and is taken back. - The browser stops an idea that is too short, and a valid one is thanked; it then appears in `GET /hub/suggestions` with its item and name. - The version is prefilled. - With no GitHub token on that server, a report answers "Reports are closed here: use GitHub or Discord." - No page errors. - The first run found a real bug: the browser's HTTP cache of `/hub/votes` (max-age 60) hid your own vote after a reload. The page now revalidates that request. The run also showed that the votes' burst of 12 was too tight, so #1838 now allows 600 an hour. - Screenshots at 390, 1120 and 1440 px, light and dark (`/hub`, `/hub#roadmap`, `/hub#contribute`), plus the thanked suggestion: no horizontal overflow, no page errors. They are on the Mac mini in `~/builds/horizon/hub-shots/pr5/`. The vote button uses the site's block buttons; pressed, it looks like the area filter's pressed button. 🤖 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:32 +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#3815
No description provided.