[PR #3757] [CLOSED] Launcher: builds get a page of their own #5197

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

📋 Pull Request Information

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

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


📝 Commits (3)

  • 5acebe2 Launcher: builds get a page of their own
  • ce24dd5 Launcher: the builds page keeps the sidebar's row states, and Spanish
  • 403c80d Re-run CI

📊 Changes

8 files changed (+370 additions, -107 deletions)

View changed files

📝 launcher/lang/de.json (+4 -1)
➕ launcher/lang/es.json (+199 -0)
📝 launcher/lang/fr.json (+4 -1)
📝 launcher/lang/ru.json (+4 -1)
➕ 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.

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, the pack's own summary for a ported pack, or the registry line;
  • 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: cargo test in launcher/ (260 lib tests, 45 in the binary, 6 registry, the rest untouched), 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, Новая сборка is on the line of the title, 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 the driver's 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 where they are, 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, which is 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/3757 **Author:** [@Domanffe](https://github.com/Domanffe) **Created:** 10/29/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feat/launcher-builds-page` --- ### 📝 Commits (3) - [`5acebe2`](https://github.com/horizon-rust/horizon/commit/5acebe2a2a51f6c3a809c872b3762a048c436349) Launcher: builds get a page of their own - [`ce24dd5`](https://github.com/horizon-rust/horizon/commit/ce24dd551218bc6b26e1b9f3602a74925a3ff32b) Launcher: the builds page keeps the sidebar's row states, and Spanish - [`403c80d`](https://github.com/horizon-rust/horizon/commit/403c80de2f0abca9115fbc9270ab33328d2fa8a7) Re-run CI ### 📊 Changes **8 files changed** (+370 additions, -107 deletions) <details> <summary>View changed files</summary> 📝 `launcher/lang/de.json` (+4 -1) ➕ `launcher/lang/es.json` (+199 -0) 📝 `launcher/lang/fr.json` (+4 -1) 📝 `launcher/lang/ru.json` (+4 -1) ➕ `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. 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, the pack's own summary for a ported pack, or the registry line; - 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**: `cargo test` in `launcher/` (260 lib tests, 45 in the binary, 6 registry, the rest untouched), `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, `Новая сборка` is on the line of the title, 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 the driver's 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 where they are, 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`, which is 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:10:54 +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#5197
No description provided.