[PR #1588] [MERGED] Server packs: the download progress toast #3616

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/1588
Author: @socksprox
Created: 10/24/2026
Status: ✅ Merged
Merged: 10/25/2026
Merged by: @ludovic111

Base: main ← Head: feat/server-resource-packs


📝 Commits (3)

  • a5f5d8d Server packs: the download progress toast
  • 6d735c2 Server packs: the download toast follows DownloadedPackSource's notifier
  • 42afd72 Server packs: the download toast shows over the connection screen

📊 Changes

5 files changed (+433 additions, -50 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+5 -0)
📝 crates/horizon-client/src/game/server_packs.rs (+246 -3)
📝 crates/horizon-client/src/server_packs/download.rs (+79 -16)
📝 crates/horizon-client/src/title.rs (+1 -31)
📝 crates/horizon-client/src/toasts.rs (+102 -0)

📄 Description

🤖 Opened by an AI agent (Devin) on behalf of socksprox, not by a human.

Summary

#1570 landed the client's server resource-pack manager (ServerPackManager port: prompt, Server Resource Packs setting, downloads into downloads/<uuid>/<sha1>, activation on top). What's missing against vanilla 26.3 is PackDownloadNotificationComponent — the SystemToast that follows a download:

  • download.pack.title with download.pack.progress.percent when the server sends a Content-Length, else download.pack.progress.bytes (human-readable, Unit.humanReadable)
  • download.pack.failed when a batch fails, replacing the progress toast
  • The vanilla 5-second display time, slide in/out, ui.toast.in/ui.toast.out sounds

To feed it, the download Queue takes a progress channel per batch — vanilla's DownloadProgressListener: requestStart (with Content-Length), downloadedBytes, downloadFinished.

Verification

  • cargo check -p horizon-client --lib --bins — clean
  • cargo test -p horizon-client --lib server_packs — 11/11

🤖 Generated with Devin (Cognition)


🔄 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/1588 **Author:** [@socksprox](https://github.com/socksprox) **Created:** 10/24/2026 **Status:** ✅ Merged **Merged:** 10/25/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/server-resource-packs` --- ### 📝 Commits (3) - [`a5f5d8d`](https://github.com/horizon-rust/horizon/commit/a5f5d8df34293f561e0bb102d1e74f1ae1fce55d) Server packs: the download progress toast - [`6d735c2`](https://github.com/horizon-rust/horizon/commit/6d735c26d31f060623fb2b7835925555e0105158) Server packs: the download toast follows DownloadedPackSource's notifier - [`42afd72`](https://github.com/horizon-rust/horizon/commit/42afd721e7497b63c1195f64012816e24b3318ff) Server packs: the download toast shows over the connection screen ### 📊 Changes **5 files changed** (+433 additions, -50 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+5 -0) 📝 `crates/horizon-client/src/game/server_packs.rs` (+246 -3) 📝 `crates/horizon-client/src/server_packs/download.rs` (+79 -16) 📝 `crates/horizon-client/src/title.rs` (+1 -31) 📝 `crates/horizon-client/src/toasts.rs` (+102 -0) </details> ### 📄 Description > 🤖 Opened by an AI agent (Devin) on behalf of socksprox, not by a human. ## Summary #1570 landed the client's server resource-pack manager (`ServerPackManager` port: prompt, `Server Resource Packs` setting, downloads into `downloads/<uuid>/<sha1>`, activation on top). What's missing against vanilla 26.3 is `PackDownloadNotificationComponent` — the `SystemToast` that follows a download: - `download.pack.title` with `download.pack.progress.percent` when the server sends a Content-Length, else `download.pack.progress.bytes` (human-readable, `Unit.humanReadable`) - `download.pack.failed` when a batch fails, replacing the progress toast - The vanilla 5-second display time, slide in/out, `ui.toast.in`/`ui.toast.out` sounds To feed it, the download `Queue` takes a progress channel per batch — vanilla's `DownloadProgressListener`: `requestStart` (with Content-Length), `downloadedBytes`, `downloadFinished`. ## Verification - `cargo check -p horizon-client --lib --bins` — clean - `cargo test -p horizon-client --lib server_packs` — 11/11 🤖 Generated with Devin (Cognition) --- <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:50 +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#3616
No description provided.