[PR #1635] [MERGED] Website: /mods/submit, the registry's submission form #3650

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

📋 Pull Request Information

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

Base: main ← Head: feat/website-mods-submit


📝 Commits (2)

  • fb4897e Website: /mods/submit, the registry's submission form
  • 587af1e Merge feat/website-mods (main merged) into feat/website-mods-submit

📊 Changes

7 files changed (+187 additions, -9 deletions)

View changed files

📝 website/Caddyfile (+6 -1)
📝 website/README.md (+4 -2)
📝 website/build.mjs (+5 -4)
➕ website/src/mods-submit.js (+80 -0)
📝 website/src/mods.js (+66 -1)
📝 website/src/mods.test.mjs (+14 -1)
📝 website/src/style.css (+12 -0)

📄 Description

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

Stacked on #1596 (/mods); review that first. The service it talks to is #1659.

What

playhorizon.dev/mods/submit: sign in with GitHub, pick the file, fill in its page, and the registry's service checks it, stages it and opens the pull request reviewers read; the page then links to it, or says what to fix.

  • The form: kind (shader packs listed, disabled until Horizon's own format exists), the file, id, version and Minecraft version (a file named <id>-<version>.<ext> fills them in), what changed, name, summary, description, authors, licence, source, icon, an optional minisign key and .minisig, and "I made it or may publish it".
  • Caddy sends /api/mods/* to REGISTRY_UPSTREAM over Railway's private network; unset, the page says the form isn't open and links to a pull request by hand. "Submit yours" on /mods now leads here.

Checked

  • npm test in website/: 24 pass (the form's fields and the entry it sends).
  • Built with a local test index and served with the Caddyfile in front of the real service (local, fake OAuth app, a session cookie minted with its key): signed out (dark), the filled form (light), the service's answer to a file whose version isn't the form's ("the file says version "0.1.0", not "0.2.0""), a phone width. Screenshots in the agent's report.

pr_ready (tools/pr_ready.py --quick --base feat/website-mods on ludovics-mac-mini, against feat/website-mods at 787c3a2f1, 1 min 8 s)

Check Result
Scope ✅ 7 files, +187 −9
Cargo.lock ✅ unchanged
Public tree ✅ (1 s)
Python tests ➖ no Python change
rustfmt ➖ no Rust change
clippy ➖ no Rust change
tests ➖ no crate touched
doc tests ➖ no crate touched
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ no harness affected
Label skip-release

🤖 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/1635 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/24/2026 **Status:** ✅ Merged **Merged:** 10/25/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/website-mods-submit` --- ### 📝 Commits (2) - [`fb4897e`](https://github.com/horizon-rust/horizon/commit/fb4897ec0922d20a209498ee4cc0a35c1b893a97) Website: /mods/submit, the registry's submission form - [`587af1e`](https://github.com/horizon-rust/horizon/commit/587af1e345c02dbd31a9dab35194b234bca5b6c4) Merge feat/website-mods (main merged) into feat/website-mods-submit ### 📊 Changes **7 files changed** (+187 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `website/Caddyfile` (+6 -1) 📝 `website/README.md` (+4 -2) 📝 `website/build.mjs` (+5 -4) ➕ `website/src/mods-submit.js` (+80 -0) 📝 `website/src/mods.js` (+66 -1) 📝 `website/src/mods.test.mjs` (+14 -1) 📝 `website/src/style.css` (+12 -0) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Stacked on #1596 (`/mods`); review that first. The service it talks to is #1659. ## What `playhorizon.dev/mods/submit`: sign in with GitHub, pick the file, fill in its page, and the registry's service checks it, stages it and opens the pull request reviewers read; the page then links to it, or says what to fix. - The form: kind (shader packs listed, disabled until Horizon's own format exists), the file, id, version and Minecraft version (a file named `<id>-<version>.<ext>` fills them in), what changed, name, summary, description, authors, licence, source, icon, an optional minisign key and `.minisig`, and "I made it or may publish it". - Caddy sends `/api/mods/*` to `REGISTRY_UPSTREAM` over Railway's private network; unset, the page says the form isn't open and links to a pull request by hand. "Submit yours" on `/mods` now leads here. ## Checked - `npm test` in `website/`: 24 pass (the form's fields and the entry it sends). - Built with a local test index and served with the Caddyfile in front of the real service (local, fake OAuth app, a session cookie minted with its key): signed out (dark), the filled form (light), the service's answer to a file whose version isn't the form's ("the file says version "0.1.0", not "0.2.0""), a phone width. Screenshots in the agent's report. **pr_ready** (`tools/pr_ready.py --quick --base feat/website-mods` on ludovics-mac-mini, against feat/website-mods at 787c3a2f1, 1 min 8 s) | Check | Result | | --- | --- | | Scope | ✅ 7 files, +187 −9 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ (1 s) | | Python tests | ➖ no Python change | | rustfmt | ➖ no Rust change | | clippy | ➖ no Rust change | | tests | ➖ no crate touched | | doc tests | ➖ no crate touched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ no harness affected | | Label | `skip-release` | 🤖 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:11:10 +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#3650
No description provided.