From 1a1ed4e1d0568a1610d5f5da3d541a59afe2b863 Mon Sep 17 00:00:00 2001 From: David Skoland Date: Tue, 24 Mar 2026 12:23:45 +0100 Subject: Add reconnect UI, disconnect button, and visual cleanup - Redesign disconnect overlay as a full-screen modal with dark backdrop - Add working Reconnect button that properly re-establishes WebSocket connection - Add Disconnect button in Settings for testing - Separate disconnect and ban/kick codepaths (no reconnect on ban) - Log disconnect notice in IC log using hrtext style - Refactor area list rendering from client state (renderAreaList) - Extract appendICNotice for reusable IC log notices - Clean up charselect: hide during loading, simplify toolbar layout - Freshen loading screen and charselect styling - Remove loading progress text updates (just show "Loading...") - Guard against undefined client.chars and client.serv Co-Authored-By: Claude Opus 4.6 (1M context) --- webAO/client/handleBans.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'webAO/client/handleBans.ts') diff --git a/webAO/client/handleBans.ts b/webAO/client/handleBans.ts index 9eec9be..cf7f881 100644 --- a/webAO/client/handleBans.ts +++ b/webAO/client/handleBans.ts @@ -6,7 +6,7 @@ import { safeTags } from "../encoding"; * @param {string} reason why */ export const handleBans = (type: string, reason: string) => { - document.getElementById("client_error")!.style.display = "flex"; + document.getElementById("client_error_overlay")!.style.display = "flex"; document.getElementById("client_errortext")!.innerHTML = `${type}:
${safeTags(reason).replace(/\n/g, "
")}`; (document.getElementById("client_reconnect")).style.display = -- cgit From c923dbe9a71a77db4f32c3b3e5153d24441c0ff6 Mon Sep 17 00:00:00 2001 From: David Skoland Date: Tue, 24 Mar 2026 12:27:46 +0100 Subject: no double notice --- webAO/client/handleBans.ts | 1 - 1 file changed, 1 deletion(-) (limited to 'webAO/client/handleBans.ts') diff --git a/webAO/client/handleBans.ts b/webAO/client/handleBans.ts index cf7f881..004b27e 100644 --- a/webAO/client/handleBans.ts +++ b/webAO/client/handleBans.ts @@ -11,5 +11,4 @@ export const handleBans = (type: string, reason: string) => { `${type}:
${safeTags(reason).replace(/\n/g, "
")}`; (document.getElementById("client_reconnect")).style.display = "none"; - alert(type + ":\r" + reason); }; -- cgit