[PR #2278] [MERGED] Launcher: Sculk partner banner on Servers and Home #4168

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

📋 Pull Request Information

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

Base: main ← Head: feat/sculk-banner-launcher


📝 Commits (1)

  • 528d65a launcher: Sculk partner banner on Servers and Home

📊 Changes

5 files changed (+81 additions, -7 deletions)

View changed files

📝 docs/design-system.md (+5 -0)
➕ launcher/assets/sculk-banner.webp (+0 -0)
📝 launcher/src/main.rs (+3 -1)
➕ launcher/src/partner.rs (+64 -0)
📝 launcher/src/servers_page.rs (+9 -6)

📄 Description

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

What

A sponsor banner Ludovic asked for: Sculk (server hosting, promo code HORIZON15) in the launcher. The website's copy is #2274.

  • Servers page: at the end of the server list, or under the empty state, 600 px wide.
  • Home: under the "Ready to play" rows and the notices, 560 px wide, so it never moves Play or the version picker.
  • A muted mono Partner label above it says it is an ad. Clicking anywhere on it calls cx.open_url("https://my.sculkhosting.com/ref/horizon"). It shows a pointer cursor; under the pointer the label turns ink and the banner lifts 2 px. Tab reaches it like the other controls (keyboard).
  • The picture is in the binary: launcher/assets/sculk-banner.webp, 1200×441 (2× the widest it is shown at, for Retina), 50 KB, decoded through GPUI's WebP support. Nothing is fetched.
  • launcher/src/partner.rs holds the URL, the image and the widget. A unit test checks that the bundled file decodes at its size.
  • docs/design-system.md records it as the one exception to "the launcher ships no third-party pictures".

How tested

  • Launcher fmt, clippy -D warnings and tests (133 + 35 + 1): pass. tools/check_public_tree.py: pass.
  • Ran the debug launcher on the Mac mini with throwaway homes (HORIZON_HOME, HORIZON_LAUNCHER_HOME, XDG_*, no self-update, telemetry off) and captured it in dark and light: Servers (empty state), Home scrolled to the banner, and Servers with the pointer on the banner. The screenshots are with the orchestrator (horizon-parity/screenshots/sculk-banner/).

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

Check Result
Scope ✅ 5 files, +81 −7
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ➖ no Python change
rustfmt ➖ no Rust change
clippy ➖ no Rust change
tests ➖ no crate touched
doc tests ➖ no crate touched
tokens.css up to date ➖ theme untouched
launcher rustfmt ✅ (3 s)
launcher clippy ✅ (25 s)
launcher tests ✅ 133 passed (43 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)

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/2278 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/26/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/sculk-banner-launcher` --- ### 📝 Commits (1) - [`528d65a`](https://github.com/horizon-rust/horizon/commit/528d65ab12071937d5d893e4ec6e4ea79f105433) launcher: Sculk partner banner on Servers and Home ### 📊 Changes **5 files changed** (+81 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `docs/design-system.md` (+5 -0) ➕ `launcher/assets/sculk-banner.webp` (+0 -0) 📝 `launcher/src/main.rs` (+3 -1) ➕ `launcher/src/partner.rs` (+64 -0) 📝 `launcher/src/servers_page.rs` (+9 -6) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. ## What A sponsor banner Ludovic asked for: Sculk (server hosting, promo code HORIZON15) in the launcher. The website's copy is #2274. - **Servers page:** at the end of the server list, or under the empty state, 600 px wide. - **Home:** under the "Ready to play" rows and the notices, 560 px wide, so it never moves Play or the version picker. - A muted mono **Partner** label above it says it is an ad. Clicking anywhere on it calls `cx.open_url("https://my.sculkhosting.com/ref/horizon")`. It shows a pointer cursor; under the pointer the label turns `ink` and the banner lifts 2 px. Tab reaches it like the other controls (`keyboard`). - The picture is in the binary: `launcher/assets/sculk-banner.webp`, 1200×441 (2× the widest it is shown at, for Retina), 50 KB, decoded through GPUI's WebP support. Nothing is fetched. - `launcher/src/partner.rs` holds the URL, the image and the widget. A unit test checks that the bundled file decodes at its size. - `docs/design-system.md` records it as the one exception to "the launcher ships no third-party pictures". ## How tested - Launcher fmt, clippy `-D warnings` and tests (133 + 35 + 1): pass. `tools/check_public_tree.py`: pass. - Ran the debug launcher on the Mac mini with throwaway homes (`HORIZON_HOME`, `HORIZON_LAUNCHER_HOME`, `XDG_*`, no self-update, telemetry off) and captured it in dark and light: Servers (empty state), Home scrolled to the banner, and Servers with the pointer on the banner. The screenshots are with the orchestrator (`horizon-parity/screenshots/sculk-banner/`). **pr_ready** (`tools/pr_ready.py --quick` on ludovics-mac-mini, against origin/main at db4ea8a20, 1 min 13 s) | Check | Result | | --- | --- | | Scope | ✅ 5 files, +81 −7 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ➖ no Python change | | rustfmt | ➖ no Rust change | | clippy | ➖ no Rust change | | tests | ➖ no crate touched | | doc tests | ➖ no crate touched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ✅ (3 s) | | launcher clippy | ✅ (25 s) | | launcher tests | ✅ 133 passed (43 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) | ## 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:15:10 +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#4168
No description provided.