[PR #2590] [MERGED] Launcher: instances in the sidebar, and a dialog to make and edit them #4453

Closed
opened 2026-11-03 04:17:15 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: main ← Head: feat/launcher-instances-ui


📝 Commits (1)

  • a76456b Launcher: instances in the sidebar, and a dialog to make and edit them

📊 Changes

5 files changed (+621 additions, -71 deletions)

View changed files

📝 launcher/README.md (+3 -1)
➕ launcher/src/instances_page.rs (+583 -0)
📝 launcher/src/main.rs (+22 -68)
📝 launcher/src/modpacks_page.rs (+1 -0)
📝 launcher/src/servers_page.rs (+12 -2)

📄 Description

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

Clean room: designed from the feature list in briefs/launcher-features-1.md; no other launcher's code, docs or assets were read.

Stacked on #2587 (instances core), with it as its base: merge #2587 first; GitHub then moves this one onto main.

What

Launcher feature 1 of 20, second half: instances in the window.

  • Sidebar: the instances, Horizon first, then those without a group, then each group under its name. Each shows its icon: a block or item texture from the player's own prepared files (first frame, drawn as pixels with art::bake, never shipped), a colour with the name's initial, Horizon's grass block, or the initial. Clicking Horizon or an own instance selects it and goes Home; a modpack opens its Modpacks page as before.
  • + beside INSTANCES opens New instance: name, Start from (Empty / A copy of the selected one), group, icon (24 textures + 8 colours + none), and "Import a modpack…" (the Mods page's Modpacks tab, where + used to go). A copy runs in the background ("Copying…"), then the new instance is selected.
  • Home gets an Instance row: Edit… (same dialog: name, group, icon), Copy… (the dialog with " copy" filled in), Open folder.
  • The dialog's fields are the launcher's shared text fields (servers_page::field, two new Fields); Enter saves, Escape closes.

Icon colours are Horizon's accent and seven picked to sit beside it in both themes.

Screenshots (Mac mini, scratch homes)

Home with a selected instance, a group, texture and colour icons:
Home

Edit instance:
Edit

Copy… : New instance with the copy prefilled, then after Create (the copy is selected; its folder holds the source's saves):
Copy
After

How tested

launcher$ cargo fmt --check                                                    ok
launcher$ cargo clippy --all-targets --locked --features gpui/runtime_shaders -- -D warnings   ok
launcher$ cargo test --locked --features gpui/runtime_shaders                  lib 141 passed, bin 35 passed

Driven in the real window on the Mac mini (fresh mktemp -d for HORIZON_HOME, HORIZON_LAUNCHER_HOME, XDG_*; HORIZON_LAUNCHER_NO_SELF_UPDATE=1; a version whose resources link to the shared prepared files), with scripted clicks: Edit → pick the TNT icon → Save (sidebar shows it); + → Create with no name ("An instance needs a name."); Copy… → Create (instances/creative-builds-copy/saves made, settings.json instance moved to it). Typing into the fields could not be scripted in this session (synthetic key events reach no window there, Escape included); the fields are the same widget as the Servers page's.

Not run on Linux or Windows (no machine of ours for it tonight); CI builds both.

Needs Ludovic

Nothing.

🤖 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/2590 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/27/2026 **Status:** ✅ Merged **Merged:** 10/27/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/launcher-instances-ui` --- ### 📝 Commits (1) - [`a76456b`](https://github.com/horizon-rust/horizon/commit/a76456b036df5f1e654dec863a8b5116c6e945e2) Launcher: instances in the sidebar, and a dialog to make and edit them ### 📊 Changes **5 files changed** (+621 additions, -71 deletions) <details> <summary>View changed files</summary> 📝 `launcher/README.md` (+3 -1) ➕ `launcher/src/instances_page.rs` (+583 -0) 📝 `launcher/src/main.rs` (+22 -68) 📝 `launcher/src/modpacks_page.rs` (+1 -0) 📝 `launcher/src/servers_page.rs` (+12 -2) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Clean room: designed from the feature list in briefs/launcher-features-1.md; no other launcher's code, docs or assets were read. Stacked on #2587 (instances core), with it as its base: merge #2587 first; GitHub then moves this one onto main. ## What Launcher feature 1 of 20, second half: instances in the window. - **Sidebar**: the instances, Horizon first, then those without a group, then each group under its name. Each shows its icon: a block or item texture from the player's own prepared files (first frame, drawn as pixels with `art::bake`, never shipped), a colour with the name's initial, Horizon's grass block, or the initial. Clicking Horizon or an own instance selects it and goes Home; a modpack opens its Modpacks page as before. - **+** beside INSTANCES opens **New instance**: name, Start from (Empty / A copy of the selected one), group, icon (24 textures + 8 colours + none), and "Import a modpack…" (the Mods page's Modpacks tab, where + used to go). A copy runs in the background ("Copying…"), then the new instance is selected. - **Home** gets an **Instance** row: Edit… (same dialog: name, group, icon), Copy… (the dialog with "<name> copy" filled in), Open folder. - The dialog's fields are the launcher's shared text fields (`servers_page::field`, two new `Field`s); Enter saves, Escape closes. Icon colours are Horizon's accent and seven picked to sit beside it in both themes. ## Screenshots (Mac mini, scratch homes) Home with a selected instance, a group, texture and colour icons: ![Home](https://raw.githubusercontent.com/ludovic111/horizon/screenshots/launcher-features/instances/home.png) Edit instance: ![Edit](https://raw.githubusercontent.com/ludovic111/horizon/screenshots/launcher-features/instances/edit.png) Copy… : New instance with the copy prefilled, then after Create (the copy is selected; its folder holds the source's saves): ![Copy](https://raw.githubusercontent.com/ludovic111/horizon/screenshots/launcher-features/instances/copy.png) ![After](https://raw.githubusercontent.com/ludovic111/horizon/screenshots/launcher-features/instances/after.png) ## How tested ``` launcher$ cargo fmt --check ok launcher$ cargo clippy --all-targets --locked --features gpui/runtime_shaders -- -D warnings ok launcher$ cargo test --locked --features gpui/runtime_shaders lib 141 passed, bin 35 passed ``` Driven in the real window on the Mac mini (fresh `mktemp -d` for `HORIZON_HOME`, `HORIZON_LAUNCHER_HOME`, `XDG_*`; `HORIZON_LAUNCHER_NO_SELF_UPDATE=1`; a version whose resources link to the shared prepared files), with scripted clicks: Edit → pick the TNT icon → Save (sidebar shows it); + → Create with no name ("An instance needs a name."); Copy… → Create (`instances/creative-builds-copy/saves` made, `settings.json` `instance` moved to it). Typing into the fields could not be scripted in this session (synthetic key events reach no window there, Escape included); the fields are the same widget as the Servers page's. Not run on Linux or Windows (no machine of ours for it tonight); CI builds both. ## Needs Ludovic Nothing. 🤖 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 04:17:15 +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#4453
No description provided.