[PR #4580] [MERGED] Mods page: Add from GitHub, origin line and Check for updates #5706

Closed
opened 2026-11-03 05:14:27 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/4580
Author: @levzzz5154
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @levzzz5154

Base: main ← Head: launcher/mods-from-github-ui


📝 Commits (1)

  • 8a2e5cb Mods page: Add from GitHub, origin line and Check for updates

📊 Changes

3 files changed (+510 additions, -0 deletions)

View changed files

➕ launcher/src/github_mods_page.rs (+501 -0)
📝 launcher/src/main.rs (+5 -0)
📝 launcher/src/mods_page.rs (+4 -0)

📄 Description

🤖 Opened by levzzz5154's AI agent (Claude Code, Claude Sonnet 5.5), not by levzzz5154 personally.

Second half of #4573: the Mods page (Mods tab, Horizon instances) gets Add from GitHub.

  • A link field (https://github.com/<owner>/<repo>, .../releases/tag/<tag>, .../tree/<ref>, .../commit/<sha>). The link is resolved on a thread through github_mods::resolve; then a plate says in red "Not reviewed by the Horizon registry", names the exact release file or commit, says native mods run with full access to this computer, shows the exact-commit source URL with an "Open the source" button, and installs only from "I read it and trust it: install" (the CLI's --trust-native-code).
  • Several mods in one source: a plate lists them; pick one or "Install all".
  • Mods installed this way are listed under the field: "from GitHub: owner/repo @ tag/sha", the SHA-256, "Check for updates" (latest release, or the default branch head for a commit install), "Update to X" (the same warning plate again), "Source", and a two-step "Remove". Installing turns Native mods on, as any native mod does.
  • All logic is in github_mods (merged); the new github_mods_page.rs is the view, wired with 4 lines in main.rs and 4 in mods_page.rs. No backend.rs or Cargo.toml changes. Labels go through button()'s runtime tr, no new tr("...") literals.

Tested: clippy -D warnings, cargo test of the launcher (incl. the i18n scan). I did not run the GUI, so the layout is unreviewed visually.

🤖 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/4580 **Author:** [@levzzz5154](https://github.com/levzzz5154) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@levzzz5154](https://github.com/levzzz5154) **Base:** `main` ← **Head:** `launcher/mods-from-github-ui` --- ### 📝 Commits (1) - [`8a2e5cb`](https://github.com/horizon-rust/horizon/commit/8a2e5cb55fc37ef75c94fcdccbf84dc621fc3632) Mods page: Add from GitHub, origin line and Check for updates ### 📊 Changes **3 files changed** (+510 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `launcher/src/github_mods_page.rs` (+501 -0) 📝 `launcher/src/main.rs` (+5 -0) 📝 `launcher/src/mods_page.rs` (+4 -0) </details> ### 📄 Description > 🤖 Opened by levzzz5154's AI agent (Claude Code, Claude Sonnet 5.5), not by levzzz5154 personally. Second half of #4573: the Mods page (Mods tab, Horizon instances) gets **Add from GitHub**. - A link field (`https://github.com/<owner>/<repo>`, `.../releases/tag/<tag>`, `.../tree/<ref>`, `.../commit/<sha>`). The link is resolved on a thread through `github_mods::resolve`; then a plate says in red "Not reviewed by the Horizon registry", names the exact release file or commit, says native mods run with full access to this computer, shows the exact-commit source URL with an "Open the source" button, and installs only from "I read it and trust it: install" (the CLI's `--trust-native-code`). - Several mods in one source: a plate lists them; pick one or "Install all". - Mods installed this way are listed under the field: "from GitHub: owner/repo @ tag/sha", the SHA-256, "Check for updates" (latest release, or the default branch head for a commit install), "Update to X" (the same warning plate again), "Source", and a two-step "Remove". Installing turns Native mods on, as any native mod does. - All logic is in `github_mods` (merged); the new `github_mods_page.rs` is the view, wired with 4 lines in `main.rs` and 4 in `mods_page.rs`. No `backend.rs` or `Cargo.toml` changes. Labels go through `button()`'s runtime `tr`, no new `tr("...")` literals. Tested: clippy `-D warnings`, `cargo test` of the launcher (incl. the i18n scan). I did not run the GUI, so the layout is unreviewed visually. 🤖 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 05:14:27 +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#5706
No description provided.