feat(mods): a Mods page for the Rust launcher, with Discover, repositories and reviews #292

Open
HumanBean wants to merge 2 commits from HumanBean/LongshotLauncher:feat/rust-launcher-mods into main
Owner

Summary

Ports the Mods tab (#268) into the Rust/Slint launcher, on top of #284. It reads the builder's format 1 mod documents, like #268 does, and follows #284's own components and style.

Rebased onto main now that #284 has merged. Where they conflicted, main's reviewed behaviour was kept: an install applies straight away and then asks for the mod's permissions, as #284 settled. Updates use the pinned command.

What it adds:

  • Mods page:
    • Your mods appear as Saves-style cards. Each card shows a version · id · repository line, the mod's name, and its state on the right.
    • Built-in mods sit in a collapsed "Built in" group. Required ones say "Always on"; the others have a switch.
  • Add mods (Discover): search the repositories' mods, then Install, see Details, or Uninstall.
    • "Add manually" opens a file picker.
    • "Manage repositories" opens #284's side panel. There you can add a repository, reorder, refresh or remove it, and pick a suggested example repository.
  • One review dialog for install, update, uninstall, unsafe code and adding a repository. It shows what a mod asks for, what it installs and its licence; for a repository, it shows the repository's key.
  • One set of mod actions shared by the mod card, Discover's panel and the Details page.

Read first: src/mods.rs, ui/mods.slint.

Testing

  • Through the PC's job queue on this head: cargo fmt --check, cargo clippy --all-targets -D warnings, cargo test (171 passed, 1 ignored), a release build, and the translations check.
  • Run by hand on Linux (CachyOS, Sway) in a scratch launcher profile, against the example repository at https://git.magicbean.dev/HumanBean/LongshotMods. The page was reviewed screen by screen and reworked over several design rounds.
  • Not run: installing into a real game profile. The scratch profile has no game files.

Still to do

  • The new texts are translated into every catalog by Claude. No native speaker has checked them yet.
  • "Add manually" picks files only. A mod that is a folder is added by dropping it on the window.

🤖 Generated with Claude Code

https://claude.ai/code/session_017vw8dyKi9X9AgqbaPS28uY

## Summary Ports the Mods tab (#268) into the Rust/Slint launcher, on top of [#284](https://git.magicbean.dev/MagicBeanDev/LongshotLauncher/pulls/284). It reads the builder's format 1 mod documents, like #268 does, and follows #284's own components and style. Rebased onto `main` now that #284 has merged. Where they conflicted, `main`'s reviewed behaviour was kept: an install applies straight away and then asks for the mod's permissions, as #284 settled. Updates use the pinned command. What it adds: - **Mods page:** - Your mods appear as Saves-style cards. Each card shows a version · id · repository line, the mod's name, and its state on the right. - Built-in mods sit in a collapsed "Built in" group. Required ones say "Always on"; the others have a switch. - **Add mods (Discover):** search the repositories' mods, then Install, see Details, or Uninstall. - "Add manually" opens a file picker. - "Manage repositories" opens #284's side panel. There you can add a repository, reorder, refresh or remove it, and pick a suggested example repository. - **One review dialog** for install, update, uninstall, unsafe code and adding a repository. It shows what a mod asks for, what it installs and its licence; for a repository, it shows the repository's key. - **One set of mod actions** shared by the mod card, Discover's panel and the Details page. Read first: `src/mods.rs`, `ui/mods.slint`. ## Testing - Through the PC's job queue on this head: `cargo fmt --check`, `cargo clippy --all-targets -D warnings`, `cargo test` (171 passed, 1 ignored), a release build, and the translations check. - Run by hand on Linux (CachyOS, Sway) in a scratch launcher profile, against the example repository at https://git.magicbean.dev/HumanBean/LongshotMods. The page was reviewed screen by screen and reworked over several design rounds. - Not run: installing into a real game profile. The scratch profile has no game files. ## Still to do - The new texts are translated into every catalog by Claude. No native speaker has checked them yet. - "Add manually" picks files only. A mod that is a folder is added by dropping it on the window. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_017vw8dyKi9X9AgqbaPS28uY
feat(mods): a Mods page for the Rust launcher, with Discover, repositories and reviews
All checks were successful
PR title / Conventional Commit title (pull_request) Successful in 4s
08844a5df3
The Mods page reads the builder's format 1 documents, as #268 does, in #284's style:
- Your mods and a collapsed Built in group as Saves-style cards; required built-in mods always on, the rest switchable.
- Add mods is Discover: search the repositories' mods, Install, Details, Uninstall; Add manually opens a file picker; Manage repositories is #284's side panel.
- One review dialog for install, update, uninstall, unsafe code and repositories: what a mod asks for, what it installs, its licence, a repository's key.
- One set of mod actions on the card, Discover's panel and the Details page.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8dyKi9X9AgqbaPS28uY
HumanBean changed title from WIP: feat(mods): a Mods page for the Rust launcher, with Discover, repositories and reviews to feat(mods): a Mods page for the Rust launcher, with Discover, repositories and reviews 2026-11-27 00:37:56 +00:00
HumanBean changed target branch from rust-slint-launcher to main 2026-11-27 14:23:57 +00:00
HumanBean force-pushed feat/rust-launcher-mods from 08844a5df3
All checks were successful
PR title / Conventional Commit title (pull_request) Successful in 4s
to b13272c4b0
Some checks failed
CI / What the change needs (pull_request) Successful in 4s
CI / Lint (actionlint, ShellCheck, gitleaks) (pull_request) Successful in 13s
PR title / Conventional Commit title (pull_request) Successful in 8s
CI / Rust formatting, lint and tests (pull_request) Successful in 4m9s
CI / Release packages and stable upgrades (pull_request) Failing after 1h0m4s
2026-11-27 14:42:58 +00:00
Compare
Author
Owner

Rebased onto main after #284 merged (old head 08844a5d, new head b13272c4). Also adds the Mods page's texts to every catalog, since main's translations check now finds them. fmt, clippy, cargo test (171 passed), the release build and the translations check pass through the job queue.

Rebased onto main after #284 merged (old head 08844a5d, new head b13272c4). Also adds the Mods page's texts to every catalog, since main's translations check now finds them. fmt, clippy, cargo test (171 passed), the release build and the translations check pass through the job queue.
Author
Owner

Rebased onto main again (old head b13272c4, new head d33cb08c, on #299). Only ui/game-versions.slint (kept #301's layout, with the Add version button primary) and the catalogs conflicted. fmt, clippy, cargo test (173 passed), the release build and the translations check pass through the job queue.

Rebased onto main again (old head b13272c4, new head d33cb08c, on #299). Only ui/game-versions.slint (kept #301's layout, with the Add version button primary) and the catalogs conflicted. fmt, clippy, cargo test (173 passed), the release build and the translations check pass through the job queue.
HumanBean force-pushed feat/rust-launcher-mods from b13272c4b0
Some checks failed
CI / What the change needs (pull_request) Successful in 4s
CI / Lint (actionlint, ShellCheck, gitleaks) (pull_request) Successful in 13s
PR title / Conventional Commit title (pull_request) Successful in 8s
CI / Rust formatting, lint and tests (pull_request) Successful in 4m9s
CI / Release packages and stable upgrades (pull_request) Failing after 1h0m4s
to d33cb08c71
Some checks failed
CI / What the change needs (pull_request) Successful in 9s
PR title / Conventional Commit title (pull_request) Successful in 10s
CI / Lint (actionlint, ShellCheck, gitleaks) (pull_request) Successful in 15s
CI / Rust formatting, lint and tests (pull_request) Successful in 12m47s
CI / Release packages and stable upgrades (pull_request) Failing after 1h0m3s
2026-11-27 17:44:45 +00:00
Compare
Author
Owner

Rebased onto main (#318) again (old head d33cb08c, new head 1c08ce08). #318's switching mods while the game runs now also covers a required dependency's enable. One #318 test now starts from an accepted mod, because this page shows a mod awaiting its code review as off. fmt, clippy, cargo test (182 passed), the release build and the translations check pass through the job queue.

Rebased onto main (#318) again (old head d33cb08c, new head 1c08ce08). #318's switching mods while the game runs now also covers a required dependency's enable. One #318 test now starts from an accepted mod, because this page shows a mod awaiting its code review as off. fmt, clippy, cargo test (182 passed), the release build and the translations check pass through the job queue.
HumanBean force-pushed feat/rust-launcher-mods from d33cb08c71
Some checks failed
CI / What the change needs (pull_request) Successful in 9s
PR title / Conventional Commit title (pull_request) Successful in 10s
CI / Lint (actionlint, ShellCheck, gitleaks) (pull_request) Successful in 15s
CI / Rust formatting, lint and tests (pull_request) Successful in 12m47s
CI / Release packages and stable upgrades (pull_request) Failing after 1h0m3s
to 1c08ce08ba
Some checks failed
CI / What the change needs (pull_request) Successful in 6s
PR title / Conventional Commit title (pull_request) Successful in 6s
CI / Lint (actionlint, ShellCheck, gitleaks) (pull_request) Successful in 11s
CI / Rust formatting, lint and tests (pull_request) Successful in 9m36s
CI / Release packages and stable upgrades (pull_request) Failing after 1h0m2s
2026-11-27 22:18:10 +00:00
Compare
Some checks failed
CI / What the change needs (pull_request) Successful in 6s
PR title / Conventional Commit title (pull_request) Successful in 6s
CI / Lint (actionlint, ShellCheck, gitleaks) (pull_request) Successful in 11s
CI / Rust formatting, lint and tests (pull_request) Successful in 9m36s
CI / Release packages and stable upgrades (pull_request) Failing after 1h0m2s
This pull request has changes conflicting with the target branch.
  • assets/lang/de.json
  • assets/lang/es.json
  • assets/lang/fr.json
  • assets/lang/it.json
  • assets/lang/ja.json
  • assets/lang/ko.json
  • assets/lang/nl.json
  • assets/lang/pl.json
  • assets/lang/pt-BR.json
  • assets/lang/ru.json
  • assets/lang/zh-Hans.json
  • assets/lang/zh-Hant.json
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u 'feat/rust-launcher-mods:HumanBean-feat/rust-launcher-mods'
git switch 'HumanBean-feat/rust-launcher-mods'
Sign in to join this conversation.
No reviewers
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
MagicBeanDev/LongshotLauncher!292
No description provided.