[PR #6944] [MERGED] Clear stale client2-013 rows main already implements #7217

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/6944
Author: @MSedgeMC
Created: 11/2/2026
Status: ✅ Merged
Merged: 11/2/2026
Merged by: @ludovic111

Base: main ← Head: chore/ledger-client2-013


📝 Commits (1)

  • a10ada9 port_map: clear stale client2-013 rows main already implements

📊 Changes

1 file changed (+6 additions, -6 deletions)

View changed files

📝 tools/port_map/client2-013.tsv (+6 -6)

📄 Description

Six missing/unsure rows in tools/port_map/client2-013.tsv named no port for screens and chat state the tree has; they now cite it.

  • AlertScreen -> home crates/horizon-client/src/title.rs: Alert::Incompatible and Alert::Recreate are the two alerts, their OK/Cancel in Title::buttons, their title at 70 and text at 90 in Title::draw_with_items, their narration in Title::narration.
  • BackupConfirmScreen -> home crates/horizon-client/src/title.rs: the backup question before a world whose file fixes are due, and Edit World's Optimize World with the Erase Cached Data box; drawn in Title::draw_with_items, Escape runs its cancel in Title::escape.
  • BanNoticeScreens -> home crates/horizon-client-render/src/ban_notice.rs, crates/horizon-client/src/title.rs: initial_notices queues the multiplayer, name and skin bans as Notice, each with its title, message (reason, status, duration) and help link; Title::next_ban_notice opens them and Title::click_action handles Open in Browser and Copy.
  • ChatScreen.removed -> port crates/horizon-client/src/game/chat.rs::Game::keep_chat_draft: the text left in the box becomes the draft unless shouldDiscardDraft, blank text discards it, and a draft still shown unchanged stays.
  • ChatScreen.shouldDiscardDraft -> port crates/horizon-client/src/game/chat.rs::should_discard_draft: kept on interruption, and on Escape only with Save Chat Drafts; sent text discards it.
  • ChatScreen.formatChat stays missing, note corrected: the restored draft is typed into the box as plain text, and chat_draft_shown is tracked but never colours the input grey italic.

map-check: 111 rows, no problems.

Proven: python3 tools/port_ledger.py build --jar /data/home/horizon/.local/minecraft/26.3/jars/server.jar --jar /data/home/horizon/.local/minecraft/26.3/jars/client.jar && python3 tools/port_ledger.py map-check tools/port_map/client2-013.tsv -> 111 rows, no problems.
Not proven: no in-game check: the alert, backup-question and ban-notice screens and the kept chat draft were read in the code, never opened in a running client.


🔄 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/6944 **Author:** [@MSedgeMC](https://github.com/MSedgeMC) **Created:** 11/2/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `chore/ledger-client2-013` --- ### 📝 Commits (1) - [`a10ada9`](https://github.com/horizon-rust/horizon/commit/a10ada9b344b2483d3f0856715b17d5f0651e6b9) port_map: clear stale client2-013 rows main already implements ### 📊 Changes **1 file changed** (+6 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/client2-013.tsv` (+6 -6) </details> ### 📄 Description Six `missing`/`unsure` rows in `tools/port_map/client2-013.tsv` named no port for screens and chat state the tree has; they now cite it. - `AlertScreen` -> `home` `crates/horizon-client/src/title.rs`: `Alert::Incompatible` and `Alert::Recreate` are the two alerts, their OK/Cancel in `Title::buttons`, their title at 70 and text at 90 in `Title::draw_with_items`, their narration in `Title::narration`. - `BackupConfirmScreen` -> `home` `crates/horizon-client/src/title.rs`: the backup question before a world whose file fixes are due, and Edit World's Optimize World with the Erase Cached Data box; drawn in `Title::draw_with_items`, Escape runs its cancel in `Title::escape`. - `BanNoticeScreens` -> `home` `crates/horizon-client-render/src/ban_notice.rs`, `crates/horizon-client/src/title.rs`: `initial_notices` queues the multiplayer, name and skin bans as `Notice`, each with its title, message (reason, status, duration) and help link; `Title::next_ban_notice` opens them and `Title::click_action` handles Open in Browser and Copy. - `ChatScreen.removed` -> `port` `crates/horizon-client/src/game/chat.rs::Game::keep_chat_draft`: the text left in the box becomes the draft unless `shouldDiscardDraft`, blank text discards it, and a draft still shown unchanged stays. - `ChatScreen.shouldDiscardDraft` -> `port` `crates/horizon-client/src/game/chat.rs::should_discard_draft`: kept on interruption, and on Escape only with Save Chat Drafts; sent text discards it. - `ChatScreen.formatChat` stays `missing`, note corrected: the restored draft is typed into the box as plain text, and `chat_draft_shown` is tracked but never colours the input grey italic. map-check: `111 rows, no problems.` **Proven:** `python3 tools/port_ledger.py build --jar /data/home/horizon/.local/minecraft/26.3/jars/server.jar --jar /data/home/horizon/.local/minecraft/26.3/jars/client.jar && python3 tools/port_ledger.py map-check tools/port_map/client2-013.tsv` -> `111 rows, no problems.` **Not proven:** no in-game check: the alert, backup-question and ban-notice screens and the kept chat draft were read in the code, never opened in a running client. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:35: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#7217
No description provided.