[PR #4490] [MERGED] Launcher: the instance's Mods tab (redesign R7b) #5652

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

📋 Pull Request Information

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

Base: main ← Head: feat/launcher-night-mods


📝 Commits (2)

  • c1c646a Launcher: the instance's Mods tab (redesign R7b)
  • 63db88b Merge remote-tracking branch 'origin/main' into feat/launcher-night-mods

📊 Changes

13 files changed (+540 additions, -25 deletions)

View changed files

📝 docs/design-system.md (+6 -0)
📝 launcher/lang/de.json (+12 -1)
📝 launcher/lang/es.json (+12 -1)
📝 launcher/lang/fr.json (+12 -1)
📝 launcher/lang/pl.json (+12 -1)
📝 launcher/lang/ru.json (+12 -1)
📝 launcher/lang/uk.json (+12 -1)
📝 launcher/lang/zh.json (+12 -1)
📝 launcher/src/home_tabs.rs (+12 -2)
➕ launcher/src/instance_mods.rs (+405 -0)
📝 launcher/src/main.rs (+4 -0)
📝 launcher/src/mods_page.rs (+24 -15)
📝 launcher/src/servers_page.rs (+5 -1)

📄 Description

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

Ludovic has seen the screenshots and approved it (2026-10-30). main merged in (f6a757ac2).

Redesign step R7b (plan R0, screens 5 and 6): the instance's Mods tab, after R7a's tabs (#4459).

What

  • Home gets a Mods tab after Overview: every mod of the selected instance on one nearly opaque card, its loader in the header ("Fabric mods", "Horizon mods") beside a filter.
  • A Java instance lists its mods/ jars, the browser's and those put in by hand: name and version (from the browser's record, else the jar's own fabric.mod.json/quilt.mod.json/mods.toml via horizon_port_pack::jar::read, else the file name), where it comes from (Modrinth, "needed by another mod", "Local file · name.jar"), and a switch. Off renames the jar .disabled, as the browser already does. The jars are read off the UI thread, once per instance and again after a switch or an install.
  • A Horizon instance lists the registry mods the browser installed, switched as the game's Options > Mods does (mods_switch, revocations included).
  • When the browser found a newer version, an amber Update x.y pill installs it; Update all (n) and Add mods (the Mods page) sit at the strip's end.
  • Java instances without a loader have no Mods tab.
  • The Mods page's per-instance load moves into mods_load(), shared by the tab without the page's first search. So Home now runs the browser's update check for the selected instance (as the Mods page did when opened), which is what the badges need.
  • HORIZON_LAUNCHER_PAGE=instance-mods opens the tab for screenshots; docs/design-system.md gets a "Night" bullet.

Not in this PR: the ⋯ menu (open page, remove, show file; Remove stays on the Mods page) and the native mods' build plate of screen 6, which comes with native mods per instance (N1).

The owner gate, Play and every start path are untouched.

Screenshots (real launcher, scratch homes, 1280×800 at 1x, Mac mini; seeded Fabric instance, two jars recorded as Modrinth's Sodium and Fabric API at old versions so the real update check finds the newer ones, one local jar turned off)

  • ~/builds/horizon/launcher-redesign-3/r7b-mods-night-1280x800.png, r7b-mods-dawn-1280x800.png
  • A Horizon instance (empty): r7b-mods-horizon-night-1280x800.png

Performance (launcher CPU over 45 s at rest after 15 s, release, interleaved; seeded instance, HORIZON_LAUNCHER_PAGE=instance-mods)

Build Idle CPU (% of one core) RSS
R7a (#4459) 0.44 / 0.98 / 1.02 121–122 MB
R7b 1.18 / 1.00 / 1.27 129 MB

Within the runs' noise (main alone swung 1.02–1.67 earlier today); no new clock: the list is read once and redrawn only on change. RSS +7 MB: the update check and the jar reads. Raw: ~/builds/horizon/launcher-redesign-3/perf-r7b.txt.

Self-check

Scope: 77 of the 559 lines are the 11 new strings in 7 languages.

pr_ready (tools/pr_ready.py on ludovics-mac-mini, against origin/main at f6a757ac2, 1 min 9 s)

Check Result
Scope ⚠️ 13 files, +540 −25; 559 lines of code: over 500, split it if it can ship in parts
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 481 passed (1 min 1 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 ✅ (2 s)
launcher clippy ✅ (2 s)
launcher tests ✅ 280 passed (4 s)
Parity ➖ 2 affected, to run in CI (no vanilla data here): lan_integration, lunge_motion
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/4490 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/launcher-night-mods` --- ### 📝 Commits (2) - [`c1c646a`](https://github.com/horizon-rust/horizon/commit/c1c646a326e631a432a6bd06d091afc4737792fe) Launcher: the instance's Mods tab (redesign R7b) - [`63db88b`](https://github.com/horizon-rust/horizon/commit/63db88b844fba9e08d37ef58b018568d4cd190aa) Merge remote-tracking branch 'origin/main' into feat/launcher-night-mods ### 📊 Changes **13 files changed** (+540 additions, -25 deletions) <details> <summary>View changed files</summary> 📝 `docs/design-system.md` (+6 -0) 📝 `launcher/lang/de.json` (+12 -1) 📝 `launcher/lang/es.json` (+12 -1) 📝 `launcher/lang/fr.json` (+12 -1) 📝 `launcher/lang/pl.json` (+12 -1) 📝 `launcher/lang/ru.json` (+12 -1) 📝 `launcher/lang/uk.json` (+12 -1) 📝 `launcher/lang/zh.json` (+12 -1) 📝 `launcher/src/home_tabs.rs` (+12 -2) ➕ `launcher/src/instance_mods.rs` (+405 -0) 📝 `launcher/src/main.rs` (+4 -0) 📝 `launcher/src/mods_page.rs` (+24 -15) 📝 `launcher/src/servers_page.rs` (+5 -1) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Ludovic has seen the screenshots and approved it (2026-10-30). main merged in (f6a757ac2). Redesign step R7b (plan R0, screens 5 and 6): the instance's Mods tab, after R7a's tabs (#4459). ## What - Home gets a **Mods** tab after Overview: every mod of the selected instance on one nearly opaque card, its loader in the header ("Fabric mods", "Horizon mods") beside a filter. - A Java instance lists its `mods/` jars, the browser's and those put in by hand: name and version (from the browser's record, else the jar's own `fabric.mod.json`/`quilt.mod.json`/`mods.toml` via `horizon_port_pack::jar::read`, else the file name), where it comes from (Modrinth, "needed by another mod", "Local file · name.jar"), and a switch. Off renames the jar `.disabled`, as the browser already does. The jars are read off the UI thread, once per instance and again after a switch or an install. - A Horizon instance lists the registry mods the browser installed, switched as the game's Options > Mods does (`mods_switch`, revocations included). - When the browser found a newer version, an amber **Update x.y** pill installs it; **Update all (n)** and **Add mods** (the Mods page) sit at the strip's end. - Java instances without a loader have no Mods tab. - The Mods page's per-instance load moves into `mods_load()`, shared by the tab without the page's first search. So Home now runs the browser's update check for the selected instance (as the Mods page did when opened), which is what the badges need. - `HORIZON_LAUNCHER_PAGE=instance-mods` opens the tab for screenshots; docs/design-system.md gets a "Night" bullet. Not in this PR: the ⋯ menu (open page, remove, show file; Remove stays on the Mods page) and the native mods' build plate of screen 6, which comes with native mods per instance (N1). The owner gate, Play and every start path are untouched. ## Screenshots (real launcher, scratch homes, 1280×800 at 1x, Mac mini; seeded Fabric instance, two jars recorded as Modrinth's Sodium and Fabric API at old versions so the real update check finds the newer ones, one local jar turned off) - `~/builds/horizon/launcher-redesign-3/r7b-mods-night-1280x800.png`, `r7b-mods-dawn-1280x800.png` - A Horizon instance (empty): `r7b-mods-horizon-night-1280x800.png` ## Performance (launcher CPU over 45 s at rest after 15 s, release, interleaved; seeded instance, `HORIZON_LAUNCHER_PAGE=instance-mods`) | Build | Idle CPU (% of one core) | RSS | |---|---|---| | R7a (#4459) | 0.44 / 0.98 / 1.02 | 121–122 MB | | **R7b** | **1.18 / 1.00 / 1.27** | 129 MB | Within the runs' noise (main alone swung 1.02–1.67 earlier today); no new clock: the list is read once and redrawn only on change. RSS +7 MB: the update check and the jar reads. Raw: `~/builds/horizon/launcher-redesign-3/perf-r7b.txt`. ## Self-check Scope: 77 of the 559 lines are the 11 new strings in 7 languages. **pr_ready** (`tools/pr_ready.py` on ludovics-mac-mini, against origin/main at f6a757ac2, 1 min 9 s) | Check | Result | | --- | --- | | Scope | ⚠️ 13 files, +540 −25; 559 lines of code: over 500, split it if it can ship in parts | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 481 passed (1 min 1 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 | ✅ (2 s) | | launcher clippy | ✅ (2 s) | | launcher tests | ✅ 280 passed (4 s) | | Parity | ➖ 2 affected, to run in CI (no vanilla data here): lan_integration, lunge_motion | | 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:14:05 +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#5652
No description provided.