[PR #1154] [MERGED] Mod browser (3/3): the launcher's Mods page #3100

Closed
opened 2026-11-02 16:01:30 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: main ← Head: feat/mod-browser-page


📝 Commits (1)

  • cf96b7c Mod browser (3/3): the launcher's Mods page

📊 Changes

5 files changed (+702 additions, -3 deletions)

View changed files

📝 docs/mod-browser.md (+9 -0)
📝 launcher/README.md (+6 -0)
📝 launcher/src/main.rs (+10 -1)
➕ launcher/src/mods_page.rs (+675 -0)
📝 launcher/src/servers_page.rs (+2 -2)

📄 Description

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

Part 3 of 3 for #577 (FEATURES item 16): the launcher's Mods page. Stacked on #1153, which is stacked on #1141; this PR's own diff is the last commit.

Thanks to Online5277 for the request (#577). It asked that every file show where it comes from and its checksum, and that safety measures be in place. Here, each result names its source and licence and links to its page. Installed packs show the checksum they were verified against. Nothing reaches the game folder unless its checksum matches (#1141).

What

  • New page Mods, between Versions and Modpacks. It follows docs/design-system.md and reuses the launcher's components:
    • the three kinds as a segmented control (Resource packs, Shader packs, Modpacks), a search field (Enter searches), a Show everything switch;
    • a Modrinth / CurseForge segmented control once CurseForge has a key. Until then a caption says CurseForge needs one.
  • Results are index rows: the summary; author · downloads · source · licence; the support status (Works in success, Partly in accent, Doesn't run in muted) with its reason; Page (opens the project on its source); and Install, or Import for a modpack. A result that doesn't run has no Install button. More loads the next 20.
  • Installed: listed above the results, with version, source, file and checked: SHA-512 e90ec63af7f2…6b779db9. Update to … appears when a newer version runs. Remove asks twice, like the Modpacks page.
  • Searches, installs and update checks run on threads, and answers to stale searches are dropped. An install shows its file and download percentage. Afterwards a line says where to turn the pack on (Options > Resource Packs, or Video Settings > Shader Packs). An imported modpack appears on the Modpacks page.
  • servers_page::{type_key, Key} are now pub(super), so the search field types like the launcher's other fields.

Self-check (Mac mini)

cd launcher
cargo fmt --check                                                     ok
set -o pipefail; cargo clippy --all-targets --features gpui/runtime_shaders -- -D warnings   ok
cargo test --features gpui/runtime_shaders                            lib 94 passed (2 ignored: network), bin 13 + 1 passed
python3 tools/parity.py --list --changed origin/main                  0 of 326 harnesses (launcher only)

The logic under the page (search, support, install, update, remove, checks) is tested and run against real Modrinth in #1141 and #1153.

Screenshot: not taken yet. The Mac mini's session is locked tonight (CGSSessionScreenIsLocked = 1), so screencapture can't capture the launcher's window ("could not create image from window"). The page builds and starts, and its window opens (1040×732). The agent will add light and dark screenshots here once the session is unlocked. Ludovic, or whoever unlocks it, can also run cargo run --features gpui/runtime_shaders in launcher/ and open Mods.

Needs Ludovic

  • The CurseForge API key (see #1141). Until then the page searches Modrinth only.
  • Unlocking the Mac mini's session for the screenshots.

Fixes #577

🤖 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/1154 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/22/2026 **Status:** ✅ Merged **Merged:** 10/22/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/mod-browser-page` --- ### 📝 Commits (1) - [`cf96b7c`](https://github.com/horizon-rust/horizon/commit/cf96b7c0970562273625824a1e581a6b57c6ab1d) Mod browser (3/3): the launcher's Mods page ### 📊 Changes **5 files changed** (+702 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `docs/mod-browser.md` (+9 -0) 📝 `launcher/README.md` (+6 -0) 📝 `launcher/src/main.rs` (+10 -1) ➕ `launcher/src/mods_page.rs` (+675 -0) 📝 `launcher/src/servers_page.rs` (+2 -2) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Part 3 of 3 for #577 (FEATURES item 16): the launcher's **Mods** page. Stacked on #1153, which is stacked on #1141; this PR's own diff is the last commit. Thanks to Online5277 for the request (#577). It asked that every file show where it comes from and its checksum, and that safety measures be in place. Here, each result names its source and licence and links to its page. Installed packs show the checksum they were verified against. Nothing reaches the game folder unless its checksum matches (#1141). ## What - New page **Mods**, between Versions and Modpacks. It follows docs/design-system.md and reuses the launcher's components: - the three kinds as a segmented control (Resource packs, Shader packs, Modpacks), a search field (Enter searches), a **Show everything** switch; - a Modrinth / CurseForge segmented control once CurseForge has a key. Until then a caption says CurseForge needs one. - **Results** are index rows: the summary; author · downloads · source · licence; the support status (Works in `success`, Partly in `accent`, Doesn't run in `muted`) with its reason; **Page** (opens the project on its source); and **Install**, or **Import** for a modpack. A result that doesn't run has no Install button. **More** loads the next 20. - **Installed**: listed above the results, with version, source, file and `checked: SHA-512 e90ec63af7f2…6b779db9`. **Update to …** appears when a newer version runs. **Remove** asks twice, like the Modpacks page. - Searches, installs and update checks run on threads, and answers to stale searches are dropped. An install shows its file and download percentage. Afterwards a line says where to turn the pack on (Options > Resource Packs, or Video Settings > Shader Packs). An imported modpack appears on the Modpacks page. - `servers_page::{type_key, Key}` are now `pub(super)`, so the search field types like the launcher's other fields. ## Self-check (Mac mini) ``` cd launcher cargo fmt --check ok set -o pipefail; cargo clippy --all-targets --features gpui/runtime_shaders -- -D warnings ok cargo test --features gpui/runtime_shaders lib 94 passed (2 ignored: network), bin 13 + 1 passed python3 tools/parity.py --list --changed origin/main 0 of 326 harnesses (launcher only) ``` The logic under the page (search, support, install, update, remove, checks) is tested and run against real Modrinth in #1141 and #1153. **Screenshot: not taken yet.** The Mac mini's session is locked tonight (`CGSSessionScreenIsLocked = 1`), so `screencapture` can't capture the launcher's window ("could not create image from window"). The page builds and starts, and its window opens (1040×732). The agent will add light and dark screenshots here once the session is unlocked. Ludovic, or whoever unlocks it, can also run `cargo run --features gpui/runtime_shaders` in `launcher/` and open Mods. ## Needs Ludovic - The CurseForge API key (see #1141). Until then the page searches Modrinth only. - Unlocking the Mac mini's session for the screenshots. Fixes #577 🤖 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-02 16:01:30 +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#3100
No description provided.