[PR #4399] [MERGED] Launcher: New instance with Horizon, Vanilla and Modded kinds (R6) #5607

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

📋 Pull Request Information

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

Base: main ← Head: feat/launcher-night-new-instance


📝 Commits (10+)

  • bbc9c46 Launcher: Home's hero in the night look (R4)
  • 95825f8 Launcher: translate Folder and Version, drop the strings Home no longer has
  • 2b78aa1 Launcher: Play's steps while it gets ready, in the night look (R4b)
  • 5a42da4 Launcher: test the time left and the steps' order
  • c81de0f Launcher: translate the steps' strings, drop the old preparing line
  • 0cbb5ba Launcher: the sign-in sheet in the night look (R5)
  • e2479b2 Launcher: New instance with Horizon, Vanilla and Modded kinds (R6)
  • c7cc6e1 Launcher: Home says Ready to play only when Play would start the game
  • f26519b Merge branch 'feat/launcher-night-home' into feat/launcher-night-steps
  • 5e2d9e7 Merge branch 'feat/launcher-night-home' into feat/launcher-night-sign-in

📊 Changes

17 files changed (+1611 additions, -514 deletions)

View changed files

📝 docs/design-system.md (+19 -0)
📝 launcher/lang/de.json (+30 -4)
📝 launcher/lang/es.json (+30 -4)
📝 launcher/lang/fr.json (+30 -4)
📝 launcher/lang/pl.json (+30 -4)
📝 launcher/lang/ru.json (+30 -4)
📝 launcher/lang/uk.json (+30 -4)
📝 launcher/lang/zh.json (+30 -4)
📝 launcher/src/backend.rs (+38 -0)
➕ launcher/src/home.rs (+530 -0)
📝 launcher/src/instances_page.rs (+96 -34)
📝 launcher/src/main.rs (+82 -362)
➕ launcher/src/new_instance.rs (+353 -0)
📝 launcher/src/owner_page.rs (+196 -88)
📝 launcher/src/servers_page.rs (+5 -1)
📝 launcher/src/shell.rs (+81 -0)
📝 launcher/src/theme.rs (+1 -1)

📄 Description

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

Ludovic has seen the screenshots and approved it (2026-10-30). Stacked on #4382, #4391 and #4392: this branch contains them and its base is main, so the diff shows them too. Lands after them.

Redesign step R6 (plan R0, screen 4): New instance with its kinds.

What

  • launcher/src/new_instance.rs (new): tabs for the kind, Horizon / Vanilla / Modded.
    • Vanilla and Modded make a Java instance (instances::create_java, as the CLI's
      instance create --minecraft does). The version comes from Mojang's public version list
      (minecraft_versions::load, fetched once when the dialog first needs it, kept for offline use): a
      search field, Snapshots and Old toggles, the newest release chosen.
    • Modded adds the loader, Fabric or Quilt (what loaders.rs supports today), at its newest
      stable version, asked of the loader's service on Create, so a Minecraft version it doesn't support
      says so in the dialog. NeoForge and Forge come with their loader PRs.
    • The name follows the choice ("Fabric 26.3") until the player types their own.
    • "Play downloads the game from Mojang for your account the first time, with the Java it needs.":
      nothing of the game downloads here; the owner gate is unchanged.
  • Horizon instances are made as before (empty or a copy of the selected one).
  • The dialog takes the night look: an opaque plate cut in steps over the dimmed launcher, captions,
    night buttons (Create is the main action), and it scrolls when a Java kind makes it taller than the window.
  • Field::InstanceVersion for the search.
  • HORIZON_LAUNCHER_PAGE=new-instance opens the dialog on Modded for screenshots.
  • i18n: the new strings in the 7 languages. Test: the name a new Java instance gets.

Screenshots (real launcher, scratch homes, 1280×800 at 1x, Mac mini; Mojang's real list)

  • ~/builds/horizon/launcher-redesign-3/r6-new-instance-night-1280x800.png, r6-new-instance-dawn-1280x800.png

Performance (launcher CPU over 45 s at rest after 15 s, release, interleaved)

Build Idle CPU (% of one core) RSS
R4 (#4382) 0.82 / 0.82 / 0.73 111 MB
R6 0.89 / 0.89 / 0.47 112 MB

The list is fetched only when a Java kind is picked; nothing runs at rest. Raw: ~/builds/horizon/launcher-redesign-3/perf-r6.txt.

Self-check (scope counts #4382, #4391 and #4392 too: this branch contains them)

pr_ready (tools/pr_ready.py on ludovics-mac-mini, against origin/main at d5f484c89, 3 min 54 s)

Check Result
Scope ⚠️ 17 files, +1611 −514; 2106 lines of code: over 500, split it if it can ship in parts
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 480 passed (1 min 39 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 ✅ (1 s)
launcher clippy ✅ (53 s)
launcher tests ✅ 280 passed (1 min 20 s)
Parity ➖ 1 affected, to run in CI (no vanilla data here): 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/4399 **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-new-instance` --- ### 📝 Commits (10+) - [`bbc9c46`](https://github.com/horizon-rust/horizon/commit/bbc9c46c17a8da48e1de7275defd3286f4f432dd) Launcher: Home's hero in the night look (R4) - [`95825f8`](https://github.com/horizon-rust/horizon/commit/95825f818ce2fb1dafe775952f4c4afb0e906c35) Launcher: translate Folder and Version, drop the strings Home no longer has - [`2b78aa1`](https://github.com/horizon-rust/horizon/commit/2b78aa173533eee0c92a4f42231f7b1b98b2a819) Launcher: Play's steps while it gets ready, in the night look (R4b) - [`5a42da4`](https://github.com/horizon-rust/horizon/commit/5a42da4fe1ffd9f6c8432d9b0b1fee9e9f652ed2) Launcher: test the time left and the steps' order - [`c81de0f`](https://github.com/horizon-rust/horizon/commit/c81de0f908b62e83af52c7195b9cbe2ec2e66916) Launcher: translate the steps' strings, drop the old preparing line - [`0cbb5ba`](https://github.com/horizon-rust/horizon/commit/0cbb5bae35d2dd8137723cee94917815c543424e) Launcher: the sign-in sheet in the night look (R5) - [`e2479b2`](https://github.com/horizon-rust/horizon/commit/e2479b227244499778df260fdb1369af5ae7d525) Launcher: New instance with Horizon, Vanilla and Modded kinds (R6) - [`c7cc6e1`](https://github.com/horizon-rust/horizon/commit/c7cc6e1256f05bb2a388d056f7a48e63b6a3a4d1) Launcher: Home says Ready to play only when Play would start the game - [`f26519b`](https://github.com/horizon-rust/horizon/commit/f26519bb53c4c6d99076ccd39a6d7793ff647c8e) Merge branch 'feat/launcher-night-home' into feat/launcher-night-steps - [`5e2d9e7`](https://github.com/horizon-rust/horizon/commit/5e2d9e758b708a6e4617e96a1fcfaaf7191e04db) Merge branch 'feat/launcher-night-home' into feat/launcher-night-sign-in ### 📊 Changes **17 files changed** (+1611 additions, -514 deletions) <details> <summary>View changed files</summary> 📝 `docs/design-system.md` (+19 -0) 📝 `launcher/lang/de.json` (+30 -4) 📝 `launcher/lang/es.json` (+30 -4) 📝 `launcher/lang/fr.json` (+30 -4) 📝 `launcher/lang/pl.json` (+30 -4) 📝 `launcher/lang/ru.json` (+30 -4) 📝 `launcher/lang/uk.json` (+30 -4) 📝 `launcher/lang/zh.json` (+30 -4) 📝 `launcher/src/backend.rs` (+38 -0) ➕ `launcher/src/home.rs` (+530 -0) 📝 `launcher/src/instances_page.rs` (+96 -34) 📝 `launcher/src/main.rs` (+82 -362) ➕ `launcher/src/new_instance.rs` (+353 -0) 📝 `launcher/src/owner_page.rs` (+196 -88) 📝 `launcher/src/servers_page.rs` (+5 -1) 📝 `launcher/src/shell.rs` (+81 -0) 📝 `launcher/src/theme.rs` (+1 -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). Stacked on #4382, #4391 and #4392: this branch contains them and its base is main, so the diff shows them too. Lands after them. Redesign step R6 (plan R0, screen 4): New instance with its kinds. ## What - **`launcher/src/new_instance.rs`** (new): tabs for the kind, **Horizon / Vanilla / Modded**. - **Vanilla and Modded** make a Java instance (`instances::create_java`, as the CLI's `instance create --minecraft` does). The version comes from **Mojang's public version list** (`minecraft_versions::load`, fetched once when the dialog first needs it, kept for offline use): a search field, **Snapshots** and **Old** toggles, the newest release chosen. - **Modded** adds the loader, **Fabric or Quilt** (what `loaders.rs` supports today), at its newest stable version, asked of the loader's service on Create, so a Minecraft version it doesn't support says so in the dialog. NeoForge and Forge come with their loader PRs. - The name follows the choice ("Fabric 26.3") until the player types their own. - "Play downloads the game from Mojang for your account the first time, with the Java it needs.": nothing of the game downloads here; the owner gate is unchanged. - **Horizon** instances are made as before (empty or a copy of the selected one). - The dialog takes the night look: an opaque plate cut in steps over the dimmed launcher, captions, night buttons (Create is the main action), and it scrolls when a Java kind makes it taller than the window. - `Field::InstanceVersion` for the search. - `HORIZON_LAUNCHER_PAGE=new-instance` opens the dialog on Modded for screenshots. - i18n: the new strings in the 7 languages. Test: the name a new Java instance gets. ## Screenshots (real launcher, scratch homes, 1280×800 at 1x, Mac mini; Mojang's real list) - `~/builds/horizon/launcher-redesign-3/r6-new-instance-night-1280x800.png`, `r6-new-instance-dawn-1280x800.png` ## Performance (launcher CPU over 45 s at rest after 15 s, release, interleaved) | Build | Idle CPU (% of one core) | RSS | |---|---|---| | R4 (#4382) | 0.82 / 0.82 / 0.73 | 111 MB | | **R6** | **0.89 / 0.89 / 0.47** | 112 MB | The list is fetched only when a Java kind is picked; nothing runs at rest. Raw: `~/builds/horizon/launcher-redesign-3/perf-r6.txt`. ## Self-check (scope counts #4382, #4391 and #4392 too: this branch contains them) **pr_ready** (`tools/pr_ready.py` on ludovics-mac-mini, against origin/main at d5f484c89, 3 min 54 s) | Check | Result | | --- | --- | | Scope | ⚠️ 17 files, +1611 −514; 2106 lines of code: over 500, split it if it can ship in parts | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 480 passed (1 min 39 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 | ✅ (1 s) | | launcher clippy | ✅ (53 s) | | launcher tests | ✅ 280 passed (1 min 20 s) | | Parity | ➖ 1 affected, to run in CI (no vanilla data here): 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:13:44 +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#5607
No description provided.