[PR #1612] [CLOSED] fix(launcher): redraw virtualized lists after scroll jumps #3625

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/1612
Author: @RobertTGreat
Created: 10/24/2026
Status: ❌ Closed

Base: feat/launcher-horizon-modpacks ← Head: feat/launcher-ui-list-redraw


📝 Commits (6)

  • bffb68b Mod registry index: schema 1, .hpack and the checks before install
  • 7e513d2 Launcher: Horizon's registry as a mod browser source
  • b49fd60 Launcher: install from Horizon's registry, enable and disable, takedowns
  • f602ad6 Launcher Mods page: Horizon's registry beside Modrinth
  • dbdc038 Launcher: Horizon modpacks from the registry, each its own profile
  • 95d1fb7 fix(launcher): redraw virtualized lists after scroll jumps

📊 Changes

39 files changed (+2715 additions, -56 deletions)

View changed files

📝 Cargo.lock (+9 -1)
📝 crates/horizon-mods/Cargo.toml (+5 -0)
➕ crates/horizon-mods/src/index.rs (+538 -0)
➕ crates/horizon-mods/src/index/tests.rs (+162 -0)
📝 crates/horizon-mods/src/lib.rs (+3 -0)
📝 crates/horizon-mods/src/manifest.rs (+6 -3)
➕ crates/horizon-mods/src/modpack.rs (+299 -0)
📝 crates/horizon-mods/src/runtime.rs (+1 -4)
➕ crates/horizon-mods/tests/index/coords_hud-0.1.0.hmod (+0 -0)
➕ crates/horizon-mods/tests/index/coords_hud-0.1.0.hmod.minisig (+4 -0)
➕ crates/horizon-mods/tests/index/cozy-1.0.0.hpack (+0 -0)
➕ crates/horizon-mods/tests/index/index-v1.json (+109 -0)
➕ crates/horizon-mods/tests/index/test.pub (+2 -0)
➕ docs/api/mod-index.md (+95 -0)
📝 docs/launcher-commands.md (+23 -3)
📝 docs/mod-browser.md (+26 -0)
📝 docs/mods.md (+2 -1)
📝 launcher/Cargo.lock (+9 -0)
📝 launcher/Cargo.toml (+2 -0)
📝 launcher/src/backend.rs (+1 -0)

...and 19 more files

📄 Description

🤖 Opened by Robert's AI agent (OpenAI Codex, GPT-6.1 Sol), not by Robert himself.

What and why

Fix blank rows after large scrollbar jumps by scheduling a view notification after prepaint measurements change.

Preserves the owner’s registry UI while fixing redraws in its virtualized lists.

These are native launcher UI and usability changes: styling follows Horizon’s design system, using square beveled Blocks surfaces, shared tokens, violet actions, Pixelify headings/buttons, Geist text and Pixelarticons. Pagination, virtualized lists and compact controls make large libraries easier to use and keep the launcher responsive.

Registry dependencies

Updated for the owner’s registry implementation: index and .hpack format (#1634) → browser source (#1636) → install, toggles and takedowns (#1637) → Horizon browser UI (#1638) → native pack profiles (#1640).

The registry backend and format remain the owner’s work. This branch builds on #1640 and adapts the launcher UI around it. Related owner PRs remain separate: registry website #1596, submission page #1635, file checks #1642, registry tools #1646, and submission service #1659. The owner’s source provides project, source and report links to those registry pages. This UI series does not deploy that service or add unsupported shader-pack installation.

Draft dependency order

Layer 1 of 17. Depends on #1640. The draft targets the existing upstream feat/launcher-horizon-modpacks branch so the owner’s implementation is excluded from the UI diff. Review this layer’s focused diff; GitHub’s Files changed includes the earlier UI layers. Once the owner’s registry stack lands, retarget these drafts to main, merge the UI layers in order, and remove already-landed dependency commits before the next review.

Layer commit: 95d1fb79. Draft status is unchanged.

Validation

  • Every revised layer passes all-target Clippy with -D warnings -A dead_code; the exclusion covers the existing Windows mojang.rs dead-code diagnostics (name_in, link_stays_inside).
  • Assembled tip: 170 tests pass (133 library + 37 binary), with three environment-dependent tests ignored. This includes native registry install/takedown/pack fixtures, .hmod switches, registry page totals and the 10,000-project virtualization regression.
  • Launcher formatting and whitespace checks pass. Test runs use isolated game/launcher/XDG homes, with self-update, audio and telemetry disabled.
  • No new visual walkthrough was performed for this registry revision. The earlier UI preview covered the approved Home composition, artwork, compact controls and a 5,000-mod workspace.
Full-tip repository self-check (layer 17)

pr_ready (tools/pr_ready.py --quick --base origin/feat/launcher-horizon-modpacks on DESKTOP-KI5NGSR, against origin/feat/launcher-horizon-modpacks at dbdc0389f, 21 s)

Check Result
Scope ⚠️ 36 files, +6596 −1739; 8335 lines of code: over 500, split it if it can ship in parts
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 ✅
launcher clippy ❌ failed (4 s)
launcher tests ✅ 133 passed (13 s)
Parity ➖ not run (--quick): CI's parity job picks the affected harnesses
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

Series index

Layer Draft PR
1 fix(launcher): redraw virtualized lists after scroll jumps
2 fix(launcher): bound content checks across browser searches
3 feat(launcher): add isolated instance profiles
4 feat(launcher-ui): simplify Content navigation and filter popovers
5 feat(launcher-ui): organize complete Settings into icon sections
6 feat(launcher-ui): group Versions into Installed and Available
7 feat(launcher-ui): add Release Radar and prominent sponsorship
8 feat(launcher-ui): add the instance Content Workspace
9 feat(launcher-ui): manage instance content from its workspace
10 feat(launcher-ui): add instance Worlds Files and Logs tabs
11 feat(launcher-ui): create instances from the sidebar plus button
12 feat(launcher-ui): select launch instances from the original Home page
13 feat(launcher-ui): make Content cards easier to scan
14 feat(launcher): resolve real instance and content artwork
15 feat(launcher-ui): display real instance modpack and content icons
16 feat(launcher-ui): paginate Content browsing with a View selector
17 feat(launcher-ui): paginate and virtualize instance Content Workspace

🤖 Generated with OpenAI Codex.


🔄 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/1612 **Author:** [@RobertTGreat](https://github.com/RobertTGreat) **Created:** 10/24/2026 **Status:** ❌ Closed **Base:** `feat/launcher-horizon-modpacks` ← **Head:** `feat/launcher-ui-list-redraw` --- ### 📝 Commits (6) - [`bffb68b`](https://github.com/horizon-rust/horizon/commit/bffb68b0c59168f4354f9664023e18f4bed0b9f9) Mod registry index: schema 1, .hpack and the checks before install - [`7e513d2`](https://github.com/horizon-rust/horizon/commit/7e513d2d5c85eefdf4b23d3e1295699e45cc4886) Launcher: Horizon's registry as a mod browser source - [`b49fd60`](https://github.com/horizon-rust/horizon/commit/b49fd602df9dd5ebe00fa23bfd5316390544d729) Launcher: install from Horizon's registry, enable and disable, takedowns - [`f602ad6`](https://github.com/horizon-rust/horizon/commit/f602ad6fe303ccd7aafe18514855b29c1dfa6058) Launcher Mods page: Horizon's registry beside Modrinth - [`dbdc038`](https://github.com/horizon-rust/horizon/commit/dbdc0389fe9ce9d46911f7f0b8bff12b83eb7607) Launcher: Horizon modpacks from the registry, each its own profile - [`95d1fb7`](https://github.com/horizon-rust/horizon/commit/95d1fb79cf4282465a5e1a063bbfc17823c8d33a) fix(launcher): redraw virtualized lists after scroll jumps ### 📊 Changes **39 files changed** (+2715 additions, -56 deletions) <details> <summary>View changed files</summary> 📝 `Cargo.lock` (+9 -1) 📝 `crates/horizon-mods/Cargo.toml` (+5 -0) ➕ `crates/horizon-mods/src/index.rs` (+538 -0) ➕ `crates/horizon-mods/src/index/tests.rs` (+162 -0) 📝 `crates/horizon-mods/src/lib.rs` (+3 -0) 📝 `crates/horizon-mods/src/manifest.rs` (+6 -3) ➕ `crates/horizon-mods/src/modpack.rs` (+299 -0) 📝 `crates/horizon-mods/src/runtime.rs` (+1 -4) ➕ `crates/horizon-mods/tests/index/coords_hud-0.1.0.hmod` (+0 -0) ➕ `crates/horizon-mods/tests/index/coords_hud-0.1.0.hmod.minisig` (+4 -0) ➕ `crates/horizon-mods/tests/index/cozy-1.0.0.hpack` (+0 -0) ➕ `crates/horizon-mods/tests/index/index-v1.json` (+109 -0) ➕ `crates/horizon-mods/tests/index/test.pub` (+2 -0) ➕ `docs/api/mod-index.md` (+95 -0) 📝 `docs/launcher-commands.md` (+23 -3) 📝 `docs/mod-browser.md` (+26 -0) 📝 `docs/mods.md` (+2 -1) 📝 `launcher/Cargo.lock` (+9 -0) 📝 `launcher/Cargo.toml` (+2 -0) 📝 `launcher/src/backend.rs` (+1 -0) _...and 19 more files_ </details> ### 📄 Description > 🤖 Opened by Robert's AI agent (OpenAI Codex, GPT-6.1 Sol), not by Robert himself. ## What and why Fix blank rows after large scrollbar jumps by scheduling a view notification after prepaint measurements change. Preserves the owner’s registry UI while fixing redraws in its virtualized lists. These are **native launcher UI and usability changes**: styling follows [Horizon’s design system](https://github.com/ludovic111/horizon/blob/main/docs/design-system.md#blocks), using square beveled Blocks surfaces, shared tokens, violet actions, Pixelify headings/buttons, Geist text and Pixelarticons. Pagination, virtualized lists and compact controls make large libraries easier to use and keep the launcher responsive. ## Registry dependencies Updated for the owner’s registry implementation: [index and `.hpack` format (#1634)](https://github.com/ludovic111/horizon/pull/1634) → [browser source (#1636)](https://github.com/ludovic111/horizon/pull/1636) → [install, toggles and takedowns (#1637)](https://github.com/ludovic111/horizon/pull/1637) → [Horizon browser UI (#1638)](https://github.com/ludovic111/horizon/pull/1638) → [native pack profiles (#1640)](https://github.com/ludovic111/horizon/pull/1640). The registry backend and format remain the owner’s work. This branch builds on #1640 and adapts the launcher UI around it. Related owner PRs remain separate: [registry website #1596](https://github.com/ludovic111/horizon/pull/1596), [submission page #1635](https://github.com/ludovic111/horizon/pull/1635), [file checks #1642](https://github.com/ludovic111/horizon/pull/1642), [registry tools #1646](https://github.com/ludovic111/horizon/pull/1646), and [submission service #1659](https://github.com/ludovic111/horizon/pull/1659). The owner’s source provides project, source and report links to those registry pages. This UI series does not deploy that service or add unsupported shader-pack installation. ## Draft dependency order Layer **1 of 17**. Depends on #1640. The draft targets the existing upstream `feat/launcher-horizon-modpacks` branch so the owner’s implementation is excluded from the UI diff. [Review this layer’s focused diff](https://github.com/RobertTGreat/horizon/compare/dbdc0389fe9ce9d46911f7f0b8bff12b83eb7607...95d1fb79cf4282465a5e1a063bbfc17823c8d33a); GitHub’s Files changed includes the earlier UI layers. Once the owner’s registry stack lands, retarget these drafts to `main`, merge the UI layers in order, and remove already-landed dependency commits before the next review. Layer commit: [`95d1fb79`](https://github.com/RobertTGreat/horizon/commit/95d1fb79cf4282465a5e1a063bbfc17823c8d33a). Draft status is unchanged. ## Validation - Every revised layer passes all-target Clippy with `-D warnings -A dead_code`; the exclusion covers the existing Windows `mojang.rs` dead-code diagnostics (`name_in`, `link_stays_inside`). - Assembled tip: **170 tests pass** (133 library + 37 binary), with three environment-dependent tests ignored. This includes native registry install/takedown/pack fixtures, `.hmod` switches, registry page totals and the 10,000-project virtualization regression. - Launcher formatting and whitespace checks pass. Test runs use isolated game/launcher/XDG homes, with self-update, audio and telemetry disabled. - No new visual walkthrough was performed for this registry revision. The earlier UI preview covered the approved Home composition, artwork, compact controls and a 5,000-mod workspace. <details><summary>Full-tip repository self-check (layer 17)</summary> **pr_ready** (`tools/pr_ready.py --quick --base origin/feat/launcher-horizon-modpacks` on DESKTOP-KI5NGSR, against origin/feat/launcher-horizon-modpacks at dbdc0389f, 21 s) | Check | Result | | --- | --- | | Scope | ⚠️ 36 files, +6596 −1739; 8335 lines of code: over 500, split it if it can ship in parts | | 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 | ✅ | | launcher clippy | ❌ failed (4 s) | | launcher tests | ✅ 133 passed (13 s) | | Parity | ➖ not run (--quick): CI's parity job picks the affected harnesses | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | </details> ## Series index | Layer | Draft PR | | --- | --- | | 1 | [fix(launcher): redraw virtualized lists after scroll jumps](https://github.com/ludovic111/horizon/pull/1612) | | 2 | [fix(launcher): bound content checks across browser searches](https://github.com/ludovic111/horizon/pull/1613) | | 3 | [feat(launcher): add isolated instance profiles](https://github.com/ludovic111/horizon/pull/1614) | | 4 | [feat(launcher-ui): simplify Content navigation and filter popovers](https://github.com/ludovic111/horizon/pull/1615) | | 5 | [feat(launcher-ui): organize complete Settings into icon sections](https://github.com/ludovic111/horizon/pull/1616) | | 6 | [feat(launcher-ui): group Versions into Installed and Available](https://github.com/ludovic111/horizon/pull/1617) | | 7 | [feat(launcher-ui): add Release Radar and prominent sponsorship](https://github.com/ludovic111/horizon/pull/1618) | | 8 | [feat(launcher-ui): add the instance Content Workspace](https://github.com/ludovic111/horizon/pull/1619) | | 9 | [feat(launcher-ui): manage instance content from its workspace](https://github.com/ludovic111/horizon/pull/1620) | | 10 | [feat(launcher-ui): add instance Worlds Files and Logs tabs](https://github.com/ludovic111/horizon/pull/1621) | | 11 | [feat(launcher-ui): create instances from the sidebar plus button](https://github.com/ludovic111/horizon/pull/1622) | | 12 | [feat(launcher-ui): select launch instances from the original Home page](https://github.com/ludovic111/horizon/pull/1623) | | 13 | [feat(launcher-ui): make Content cards easier to scan](https://github.com/ludovic111/horizon/pull/1624) | | 14 | [feat(launcher): resolve real instance and content artwork](https://github.com/ludovic111/horizon/pull/1625) | | 15 | [feat(launcher-ui): display real instance modpack and content icons](https://github.com/ludovic111/horizon/pull/1626) | | 16 | [feat(launcher-ui): paginate Content browsing with a View selector](https://github.com/ludovic111/horizon/pull/1627) | | 17 | [feat(launcher-ui): paginate and virtualize instance Content Workspace](https://github.com/ludovic111/horizon/pull/1628) | 🤖 Generated with [OpenAI Codex](https://openai.com/codex/). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04: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#3625
No description provided.