[PR #4391] [MERGED] Launcher: Play's steps while it gets ready (R4b) #5601

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

📋 Pull Request Information

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

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


📝 Commits (9)

  • 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
  • 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
  • 486e300 Merge remote-tracking branch 'origin/main' into feat/launcher-night-home
  • 69937e5 Merge branch 'feat/launcher-night-home' into feat/launcher-night-steps

📊 Changes

14 files changed (+804 additions, -392 deletions)

View changed files

📝 docs/design-system.md (+9 -0)
📝 launcher/lang/de.json (+10 -4)
📝 launcher/lang/es.json (+10 -4)
📝 launcher/lang/fr.json (+10 -4)
📝 launcher/lang/pl.json (+10 -4)
📝 launcher/lang/ru.json (+10 -4)
📝 launcher/lang/uk.json (+10 -4)
📝 launcher/lang/zh.json (+10 -4)
📝 launcher/src/backend.rs (+38 -0)
➕ launcher/src/home.rs (+530 -0)
📝 launcher/src/instances_page.rs (+1 -1)
📝 launcher/src/main.rs (+74 -362)
📝 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: this branch contains it and its base is main, so the diff shows it too. Lands after it.

Redesign step R4b (plan R0, screen 3): Play's steps while it gets ready. Principle 5 of the plan: steps, not logs.

What

  • While a version prepares, Play reads "Getting ready…", with the download's percentage while one
    runs from Mojang ("Getting ready… 34%"), and Cancel sits beside it during that download (the next
    one goes on from where it stopped, as before). The version picker, Mods and Folder step aside.
  • Under Play (where the player looks after pressing it, #666): the bar, what is happening
    ("Downloading Minecraft 26.3 from Mojang · 1,754 of 5,160 files"; between downloads, the preparation's
    last line) with the time left from the download's pace since it was first seen (none in its first
    5 s), and the steps: Game files, Java, Sounds, Prepare, and Play when Play was pressed. The one
    under way is lit, those done are ticked.
  • backend::PrepareStep: the preparation says which step it is at (an atomic, as mojang::progress
    does for files): preparer sets Game files then Java, sounds sets Sounds, the window's thread sets
    Prepare before horizon-prepare runs.
  • The progress bar takes the night look everywhere (6 px, plate-coloured track, accent fill).
  • The old block under the hero (bar, last log line, "The first preparation takes a few minutes.") goes.
  • HORIZON_LAUNCHER_PAGE=getting-ready shows the state for screenshots: nothing runs (a preparation
    needs an account that owns the game, and the screenshot homes have none).
  • Unchanged: what Prepare and Play do, the owner gate, Cancel's effect.
  • i18n: the new strings in the 7 languages; the removed one dropped. Tests: the time left, the steps' order.

Screenshots (real launcher, scratch homes, 1280×800 at 1x, Mac mini)

  • ~/builds/horizon/launcher-redesign-3/r4b-getting-ready-night-1280x800.png, r4b-getting-ready-dawn-1280x800.png

Performance (launcher CPU over 45 s at rest after 15 s, release, interleaved with R4 and R5)

Build Idle CPU (% of one core) RSS
R4 (#4382) 0.89 / 0.93 / 0.89 111–117 MB
R4b 0.91 / 0.89 / 0.89 111–118 MB

Nothing runs at rest: the step and the percentage are read when the window draws, which it does on the
preparation's own lines (one a second during a download). Raw: ~/builds/horizon/launcher-redesign-3/perf-r4b-r5.txt.

Self-check (scope counts #4382 too: this branch contains it)

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

Check Result
Scope ⚠️ 14 files, +804 −392; 1187 lines of code: over 500, split it if it can ship in parts
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 480 passed (1 min 22 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 ✅ (49 s)
launcher tests ✅ 280 passed (1 min 34 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/4391 **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-steps` --- ### 📝 Commits (9) - [`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 - [`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 - [`486e300`](https://github.com/horizon-rust/horizon/commit/486e3001d73934331a400e64342f30a565e7cbd9) Merge remote-tracking branch 'origin/main' into feat/launcher-night-home - [`69937e5`](https://github.com/horizon-rust/horizon/commit/69937e549563d056602cffb946f59e69ca98382b) Merge branch 'feat/launcher-night-home' into feat/launcher-night-steps ### 📊 Changes **14 files changed** (+804 additions, -392 deletions) <details> <summary>View changed files</summary> 📝 `docs/design-system.md` (+9 -0) 📝 `launcher/lang/de.json` (+10 -4) 📝 `launcher/lang/es.json` (+10 -4) 📝 `launcher/lang/fr.json` (+10 -4) 📝 `launcher/lang/pl.json` (+10 -4) 📝 `launcher/lang/ru.json` (+10 -4) 📝 `launcher/lang/uk.json` (+10 -4) 📝 `launcher/lang/zh.json` (+10 -4) 📝 `launcher/src/backend.rs` (+38 -0) ➕ `launcher/src/home.rs` (+530 -0) 📝 `launcher/src/instances_page.rs` (+1 -1) 📝 `launcher/src/main.rs` (+74 -362) 📝 `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: this branch contains it and its base is main, so the diff shows it too. Lands after it. Redesign step R4b (plan R0, screen 3): Play's steps while it gets ready. Principle 5 of the plan: steps, not logs. ## What - While a version prepares, **Play reads "Getting ready…"**, with the download's percentage while one runs from Mojang ("Getting ready… 34%"), and **Cancel** sits beside it during that download (the next one goes on from where it stopped, as before). The version picker, Mods and Folder step aside. - **Under Play** (where the player looks after pressing it, #666): the bar, what is happening ("Downloading Minecraft 26.3 from Mojang · 1,754 of 5,160 files"; between downloads, the preparation's last line) with **the time left** from the download's pace since it was first seen (none in its first 5 s), and **the steps**: Game files, Java, Sounds, Prepare, and Play when Play was pressed. The one under way is lit, those done are ticked. - `backend::PrepareStep`: the preparation says which step it is at (an atomic, as `mojang::progress` does for files): `preparer` sets Game files then Java, `sounds` sets Sounds, the window's thread sets Prepare before horizon-prepare runs. - The progress bar takes the night look everywhere (6 px, plate-coloured track, accent fill). - The old block under the hero (bar, last log line, "The first preparation takes a few minutes.") goes. - `HORIZON_LAUNCHER_PAGE=getting-ready` shows the state for screenshots: nothing runs (a preparation needs an account that owns the game, and the screenshot homes have none). - Unchanged: what Prepare and Play do, the owner gate, Cancel's effect. - i18n: the new strings in the 7 languages; the removed one dropped. Tests: the time left, the steps' order. ## Screenshots (real launcher, scratch homes, 1280×800 at 1x, Mac mini) - `~/builds/horizon/launcher-redesign-3/r4b-getting-ready-night-1280x800.png`, `r4b-getting-ready-dawn-1280x800.png` ## Performance (launcher CPU over 45 s at rest after 15 s, release, interleaved with R4 and R5) | Build | Idle CPU (% of one core) | RSS | |---|---|---| | R4 (#4382) | 0.89 / 0.93 / 0.89 | 111–117 MB | | **R4b** | **0.91 / 0.89 / 0.89** | 111–118 MB | Nothing runs at rest: the step and the percentage are read when the window draws, which it does on the preparation's own lines (one a second during a download). Raw: `~/builds/horizon/launcher-redesign-3/perf-r4b-r5.txt`. ## Self-check (scope counts #4382 too: this branch contains it) **pr_ready** (`tools/pr_ready.py` on ludovics-mac-mini, against origin/main at d5f484c89, 3 min 46 s) | Check | Result | | --- | --- | | Scope | ⚠️ 14 files, +804 −392; 1187 lines of code: over 500, split it if it can ship in parts | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 480 passed (1 min 22 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 | ✅ (49 s) | | launcher tests | ✅ 280 passed (1 min 34 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:42 +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#5601
No description provided.