[PR #3678] [MERGED] Launcher: the Mods page for Java instances #5145

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

📋 Pull Request Information

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

Base: main ← Head: feat/launcher-java-mods-page


📝 Commits (1)

  • e2a9909 Launcher: the Mods page searches and installs for a selected Java instance

📊 Changes

4 files changed (+155 additions, -29 deletions)

View changed files

📝 launcher/src/browser/java_instance.rs (+27 -0)
📝 launcher/src/browser/java_instance/tests.rs (+26 -0)
📝 launcher/src/mods_page.rs (+101 -23)
📝 launcher/src/mods_project.rs (+1 -6)

📄 Description

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

When a Java Edition instance is selected, the Mods page's Mods and Resource packs tabs now work for that instance, with the same logic as mods … --instance (#3603):

  • Search asks Modrinth for its Minecraft version and loader. The player's categories, side and sort still apply; their version and loader picks are replaced by the instance's. With no results the page says "Nothing found for Minecraft 1.21.1 with fabric."
  • Install, update and remove go through java_instance. Jars go to the instance's mods/ and packs to resourcepacks/, with required dependencies and checksums checked. Updates are offered for the instance's version and loader.
  • No Horizon port check runs for Java instances: results show "Works" and Install right away, because the search already filtered them and the install checks the file. "Show everything" and the Horizon registry switch are hidden there, since they don't apply.
  • Changing instance or loader runs the search again.
  • Horizon instances, Modpacks, Shader packs and Data packs are unchanged.
  • java_instance::Target gains search, takes and describe, with a test. The two copies of the "still checking" test are now one, Mods::checking.

Overlap with the redesign: this changes the page's logic, not its layout. When the Mods screen is rebuilt, it keeps calling Mods::java_for, checking and support.

Checked in the real window, with #3634 merged locally on top (its loader in target() is needed for mods), in a scratch home: a Fabric 1.21.1 instance shows Mod Menu, Fabric API and Text Placeholder API under Installed, with "Show everything" and the source switch hidden. The same search and install were checked through the CLI.

pr_ready (tools/pr_ready.py --quick on ludovics-mac-mini, against origin/main at 7c3364d30, 3 min 2 s)

Check Result
Scope ✅ 4 files, +155 −29
Cargo.lock ✅ unchanged
Public tree ✅ (1 s)
Python tests ✅ 408 passed (2 min 43 s)
rustfmt ➖ no Rust change
clippy ➖ no Rust change
tests ➖ no crate touched
doc tests ➖ no crate touched
content root tests ➖ content root untouched
tokens.css up to date ➖ theme untouched
launcher rustfmt ✅ (3 s)
launcher clippy ✅ (3 s)
launcher tests ✅ 266 passed (11 s)
Parity ➖ 1 affected, to run in CI (--quick): lan_integration
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

🤖 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/3678 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/29/2026 **Status:** ✅ Merged **Merged:** 10/29/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/launcher-java-mods-page` --- ### 📝 Commits (1) - [`e2a9909`](https://github.com/horizon-rust/horizon/commit/e2a990952151eed2fe975d500f7bd46410500bfa) Launcher: the Mods page searches and installs for a selected Java instance ### 📊 Changes **4 files changed** (+155 additions, -29 deletions) <details> <summary>View changed files</summary> 📝 `launcher/src/browser/java_instance.rs` (+27 -0) 📝 `launcher/src/browser/java_instance/tests.rs` (+26 -0) 📝 `launcher/src/mods_page.rs` (+101 -23) 📝 `launcher/src/mods_project.rs` (+1 -6) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. When a Java Edition instance is selected, the Mods page's Mods and Resource packs tabs now work for that instance, with the same logic as `mods … --instance` (#3603): - **Search** asks Modrinth for its Minecraft version and loader. The player's categories, side and sort still apply; their version and loader picks are replaced by the instance's. With no results the page says "Nothing found for Minecraft 1.21.1 with fabric." - **Install, update and remove** go through `java_instance`. Jars go to the instance's `mods/` and packs to `resourcepacks/`, with required dependencies and checksums checked. Updates are offered for the instance's version and loader. - **No Horizon port check** runs for Java instances: results show "Works" and Install right away, because the search already filtered them and the install checks the file. "Show everything" and the Horizon registry switch are hidden there, since they don't apply. - **Changing instance or loader** runs the search again. - Horizon instances, Modpacks, Shader packs and Data packs are unchanged. - `java_instance::Target` gains `search`, `takes` and `describe`, with a test. The two copies of the "still checking" test are now one, `Mods::checking`. Overlap with the redesign: this changes the page's logic, not its layout. When the Mods screen is rebuilt, it keeps calling `Mods::java_for`, `checking` and `support`. Checked in the real window, with #3634 merged locally on top (its loader in `target()` is needed for mods), in a scratch home: a Fabric 1.21.1 instance shows Mod Menu, Fabric API and Text Placeholder API under Installed, with "Show everything" and the source switch hidden. The same search and install were checked through the CLI. **pr_ready** (`tools/pr_ready.py --quick` on ludovics-mac-mini, against origin/main at 7c3364d30, 3 min 2 s) | Check | Result | | --- | --- | | Scope | ✅ 4 files, +155 −29 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ (1 s) | | Python tests | ✅ 408 passed (2 min 43 s) | | rustfmt | ➖ no Rust change | | clippy | ➖ no Rust change | | tests | ➖ no crate touched | | doc tests | ➖ no crate touched | | content root tests | ➖ content root untouched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ✅ (3 s) | | launcher clippy | ✅ (3 s) | | launcher tests | ✅ 266 passed (11 s) | | Parity | ➖ 1 affected, to run in CI (--quick): lan_integration | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | 🤖 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:10:34 +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#5145
No description provided.