[PR #2896] [MERGED] Launcher: the owner gate's screen, once for offline players and on a refused Play #4675

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

📋 Pull Request Information

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

Base: main ← Head: feat/launcher-owner-screen


📝 Commits (2)

  • 7afb41a launcher: the owner gate's screen, once for offline players and on a refused Play
  • 85c8276 Merge branch 'feat/launcher-owner-gate' into feat/launcher-owner-screen

📊 Changes

6 files changed (+194 additions, -8 deletions)

View changed files

📝 docs/microsoft-account.md (+5 -0)
📝 launcher/lang/fr.json (+5 -1)
📝 launcher/lang/ru.json (+5 -1)
📝 launcher/src/backend.rs (+4 -0)
📝 launcher/src/main.rs (+18 -6)
➕ launcher/src/owner_page.rs (+157 -0)

📄 Description

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

Stacked on #2892 (the owner gate). Its own diff is the second commit: +194 −8.

What

The owner gate as a screen in the window, for players without an account that owns Minecraft: Java Edition. That includes everyone who played offline until now.

  • It shows once, when the launcher opens (after the data-collection question). It reads:
    • "Sign in with a Microsoft account that owns Minecraft: Java Edition to play."
    • "Horizon needs a Microsoft account that owns Minecraft: Java Edition, like other launchers."
    • "Your worlds, offline names and settings stay where they are."
    • Two buttons: Not now and Sign in. settings.json remembers the player has seen it (owner_notice_seen).
  • It shows again whenever Play is refused: Home, an instance, a pack, joining a friend, quick play. Home's Sign in row (from #2892) opens it too.
  • Sign in runs on the screen itself:
    • "Asking Microsoft…", then the code with Copy code and Open link.
    • An error stays on the screen.
    • Once the sign-in is done (an owner is in), the screen closes and Play works.
  • Strings: EN, FR and RU. The Settings code line now goes through i18n too ("Open {link} in your browser and enter this code:").
  • The card has a set width, so the wrapped heading is measured at the width it's drawn at. With w_full().max_w() the buttons fell out of the card.
  • Docs: a paragraph in docs/microsoft-account.md, "The owner gate".

Screenshots

Taken from the launcher's own window on the Mac mini, in fresh mktemp -d homes with an offline-only player (accounts.json with one offline name, no account). The files are on the Mac mini:

  • ~/builds/horizon/owner-gate/gate-dark.png
  • ~/builds/horizon/owner-gate/gate-light.png
  • ~/builds/horizon/owner-gate/home-row-dark.png (Home after Not now; the Sign in row is below the fold)

Still to do: the real run with Ludovic's sign-in (Play works, sign out, Play refused with this screen, keychain clean). The orchestrator is arranging it, and the results will be posted here.

pr_ready (tools/pr_ready.py --quick on ludovics-mac-mini, against origin/main at 7f760b8eb, 1 min 9 s)

Check Result
Scope ⚠️ 15 files, +875 −215; 927 lines of code: over 500, split it if it can ship in parts
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 365 passed (53 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 ✅ (2 s)
launcher clippy ✅ (4 s)
launcher tests ✅ 202 passed (9 s)
Parity ➖ 1 affected, to run in CI (--quick): lan_integration
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

(pr_ready measures against main, so its scope line counts both PRs of the stack.)

🤖 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/2896 **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-owner-screen` --- ### 📝 Commits (2) - [`7afb41a`](https://github.com/horizon-rust/horizon/commit/7afb41a1285e418a3e3440374f6e0f99796b9713) launcher: the owner gate's screen, once for offline players and on a refused Play - [`85c8276`](https://github.com/horizon-rust/horizon/commit/85c8276e06c0240cf3986fc311d5661fb00e5772) Merge branch 'feat/launcher-owner-gate' into feat/launcher-owner-screen ### 📊 Changes **6 files changed** (+194 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `docs/microsoft-account.md` (+5 -0) 📝 `launcher/lang/fr.json` (+5 -1) 📝 `launcher/lang/ru.json` (+5 -1) 📝 `launcher/src/backend.rs` (+4 -0) 📝 `launcher/src/main.rs` (+18 -6) ➕ `launcher/src/owner_page.rs` (+157 -0) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Stacked on #2892 (the owner gate). Its own diff is the second commit: +194 −8. ## What The owner gate as a screen in the window, for players without an account that owns Minecraft: Java Edition. That includes everyone who played offline until now. - **It shows once, when the launcher opens** (after the data-collection question). It reads: - "Sign in with a Microsoft account that owns Minecraft: Java Edition to play." - "Horizon needs a Microsoft account that owns Minecraft: Java Edition, like other launchers." - "Your worlds, offline names and settings stay where they are." - Two buttons: **Not now** and **Sign in**. `settings.json` remembers the player has seen it (`owner_notice_seen`). - **It shows again whenever Play is refused**: Home, an instance, a pack, joining a friend, quick play. Home's Sign in row (from #2892) opens it too. - **Sign in runs on the screen itself**: - "Asking Microsoft…", then the code with Copy code and Open link. - An error stays on the screen. - Once the sign-in is done (an owner is in), the screen closes and Play works. - **Strings:** EN, FR and RU. The Settings code line now goes through i18n too ("Open {link} in your browser and enter this code:"). - The card has a set width, so the wrapped heading is measured at the width it's drawn at. With `w_full().max_w()` the buttons fell out of the card. - Docs: a paragraph in docs/microsoft-account.md, "The owner gate". ## Screenshots Taken from the launcher's own window on the Mac mini, in fresh `mktemp -d` homes with an offline-only player (`accounts.json` with one offline name, no account). The files are on the Mac mini: - `~/builds/horizon/owner-gate/gate-dark.png` - `~/builds/horizon/owner-gate/gate-light.png` - `~/builds/horizon/owner-gate/home-row-dark.png` (Home after Not now; the Sign in row is below the fold) Still to do: the real run with Ludovic's sign-in (Play works, sign out, Play refused with this screen, keychain clean). The orchestrator is arranging it, and the results will be posted here. **pr_ready** (`tools/pr_ready.py --quick` on ludovics-mac-mini, against origin/main at 7f760b8eb, 1 min 9 s) | Check | Result | | --- | --- | | Scope | ⚠️ 15 files, +875 −215; 927 lines of code: over 500, split it if it can ship in parts | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 365 passed (53 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 | ✅ (2 s) | | launcher clippy | ✅ (4 s) | | launcher tests | ✅ 202 passed (9 s) | | Parity | ➖ 1 affected, to run in CI (--quick): lan_integration | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | (pr_ready measures against main, so its scope line counts both PRs of the stack.) 🤖 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:07:07 +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#4675
No description provided.