[PR #3783] [CLOSED] Launcher: builds get a page of their own #5217

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/3783
Author: @Domanffe
Created: 10/29/2026
Status: ❌ Closed

Base: main ← Head: feat/launcher-builds-page-3


📝 Commits (4)

  • 0a79962 Launcher: builds get a page of their own
  • ee772f4 Launcher: the builds page keeps the sidebar's row states, and Spanish
  • f4b7358 Merge origin/main into the builds page branch
  • a860032 Launcher: the Builds page's strings in Polish, Ukrainian and Chinese

📊 Changes

11 files changed (+183 additions, -107 deletions)

View changed files

📝 launcher/lang/de.json (+4 -1)
📝 launcher/lang/es.json (+3 -0)
📝 launcher/lang/fr.json (+4 -1)
📝 launcher/lang/pl.json (+3 -0)
📝 launcher/lang/ru.json (+4 -1)
📝 launcher/lang/uk.json (+3 -0)
📝 launcher/lang/zh.json (+3 -0)
➕ launcher/src/builds_page.rs (+115 -0)
📝 launcher/src/instances_page.rs (+0 -97)
📝 launcher/src/main.rs (+44 -2)
📝 launcher/src/mods_page.rs (+0 -5)

📄 Description

🤖 Opened by Alexander's AI agent (Hermes), not by Alexander himself.

Replaces #3757, which conflicted with main on launcher/lang/es.json (Spanish landed while it was open). This branch starts from origin/main today and carries the same two commits.

First step of the launcher-redesign roadmap item, screens first. The builds only ever existed as the sidebar's column: 280 px wide, an icon, a name and a one-word state, with no room for the version a build plays. This gives them a page of their own in the top bar:

  • one row per instance, in the list language the rest of the launcher uses (slot_row): the build's icon, a status dot, its name, and a mono line under it — the Horizon version and whether it is prepared, Minecraft {version} · Java for a Java instance, {version} is not installed when an instance's own version is gone, the pack's own summary for a ported pack, or the registry line. Same order of states the sidebar's row had;
  • the row opens the build (selects it and goes Home, or opens the pack in Mods, as the sidebar row did);
  • New build sits beside the page title, wired to the existing instance dialog;
  • the sidebar keeps one row, the build in use, plus its servers, so a page can still say what it will play.

instance_items in instances_page.rs and Mods::on_modpacks existed only for the sidebar column, so they go with it — a net −107 lines.

Checked on this branch, in launcher/: cargo test (264 lib tests and the rest), cargo clippy --all-targets -- -D warnings, cargo fmt --check. The page was opened in the built launcher with HORIZON_LAUNCHER_PAGE=builds on a scratch HORIZON_LAUNCHER_HOME seeded with a ported pack and rendered: the tab reads Сборки, the title and subtitle are translated, Новая сборка sits on the title's line, and the two rows read Horizon — Версия не установлена — IN USE and Fabulously Optimized — Minecraft 26.3 · fabric 0.19.5 · 48 files.

Not done, on purpose:

  • no screenshot in this body: computer_use can capture the window but its clicks do not land in this GPUI build, so the picture came from my machine and a reviewer would have to trust it. I can paste it if you want it;
  • the row actions (edit, copy, export, launch, shortcut, folder, delete) stay on the build's own page rather than being duplicated here;
  • mod count, size and last played are not on the row yet: they need the pack's file walk and disk_use, a follow-up rather than this move;
  • the sidebar still lists the build in use; deleting that row outright would remove the only place that says what Home will launch.

The pr_ready block follows as a comment.


🔄 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/3783 **Author:** [@Domanffe](https://github.com/Domanffe) **Created:** 10/29/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feat/launcher-builds-page-3` --- ### 📝 Commits (4) - [`0a79962`](https://github.com/horizon-rust/horizon/commit/0a799624ea82d2839bd3b82e7ddfe7d9decd1e95) Launcher: builds get a page of their own - [`ee772f4`](https://github.com/horizon-rust/horizon/commit/ee772f413ae57e61c75a13672e8e40f3ca89b309) Launcher: the builds page keeps the sidebar's row states, and Spanish - [`f4b7358`](https://github.com/horizon-rust/horizon/commit/f4b73588492e21aa61a4a4c6534bde0fcefb88ac) Merge origin/main into the builds page branch - [`a860032`](https://github.com/horizon-rust/horizon/commit/a8600329aa3cdd7d2e8d91b660bdecdf55d52857) Launcher: the Builds page's strings in Polish, Ukrainian and Chinese ### 📊 Changes **11 files changed** (+183 additions, -107 deletions) <details> <summary>View changed files</summary> 📝 `launcher/lang/de.json` (+4 -1) 📝 `launcher/lang/es.json` (+3 -0) 📝 `launcher/lang/fr.json` (+4 -1) 📝 `launcher/lang/pl.json` (+3 -0) 📝 `launcher/lang/ru.json` (+4 -1) 📝 `launcher/lang/uk.json` (+3 -0) 📝 `launcher/lang/zh.json` (+3 -0) ➕ `launcher/src/builds_page.rs` (+115 -0) 📝 `launcher/src/instances_page.rs` (+0 -97) 📝 `launcher/src/main.rs` (+44 -2) 📝 `launcher/src/mods_page.rs` (+0 -5) </details> ### 📄 Description > 🤖 Opened by Alexander's AI agent (Hermes), not by Alexander himself. Replaces #3757, which conflicted with main on `launcher/lang/es.json` (Spanish landed while it was open). This branch starts from `origin/main` today and carries the same two commits. First step of the `launcher-redesign` roadmap item, screens first. The builds only ever existed as the sidebar's column: 280 px wide, an icon, a name and a one-word state, with no room for the version a build plays. This gives them a page of their own in the top bar: - one row per instance, in the list language the rest of the launcher uses (`slot_row`): the build's icon, a status dot, its name, and a mono line under it — the Horizon version and whether it is prepared, `Minecraft {version} · Java` for a Java instance, `{version} is not installed` when an instance's own version is gone, the pack's own summary for a ported pack, or the registry line. Same order of states the sidebar's row had; - the row opens the build (selects it and goes Home, or opens the pack in Mods, as the sidebar row did); - `New build` sits beside the page title, wired to the existing instance dialog; - the sidebar keeps one row, the build in use, plus its servers, so a page can still say what it will play. `instance_items` in `instances_page.rs` and `Mods::on_modpacks` existed only for the sidebar column, so they go with it — a net −107 lines. **Checked** on this branch, in `launcher/`: `cargo test` (264 lib tests and the rest), `cargo clippy --all-targets -- -D warnings`, `cargo fmt --check`. The page was opened in the built launcher with `HORIZON_LAUNCHER_PAGE=builds` on a scratch `HORIZON_LAUNCHER_HOME` seeded with a ported pack and rendered: the tab reads Сборки, the title and subtitle are translated, `Новая сборка` sits on the title's line, and the two rows read `Horizon — Версия не установлена — IN USE` and `Fabulously Optimized — Minecraft 26.3 · fabric 0.19.5 · 48 files`. Not done, on purpose: - no screenshot in this body: `computer_use` can capture the window but its clicks do not land in this GPUI build, so the picture came from my machine and a reviewer would have to trust it. I can paste it if you want it; - the row actions (edit, copy, export, launch, shortcut, folder, delete) stay on the build's own page rather than being duplicated here; - mod count, size and last played are not on the row yet: they need the pack's file walk and `disk_use`, a follow-up rather than this move; - the sidebar still lists the build in use; deleting that row outright would remove the only place that says what Home will launch. The `pr_ready` block follows as a comment. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:11:02 +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#5217
No description provided.