From 50e6a50de4e43a63855079976588fd825fd34ee4 Mon Sep 17 00:00:00 2001 From: Siavash Sameni Date: Sun, 12 Apr 2026 08:47:13 +0400 Subject: [PATCH] feat(ui): phone-style layout for direct calls MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The call screen now shows two different layouts depending on whether the call is a 1:1 direct call or a room/group call: **Direct call (directCallPeer set):** - Large centered identicon (96px circular with glow) - Peer name (22px bold) + fingerprint (11px mono) - Connection badge: "P2P Direct" (green), "Via Relay" (blue), or "Connecting..." (yellow) — auto-detected from the call-debug buffer's dual_path_race_won event - Room name header shows the peer's alias/fp instead of "general" - Group participant list is hidden **Room/group call (directCallPeer null):** - Existing group participant list layout — unchanged The badge updates live from pollStatus by scanning the debug buffer for the connect:dual_path_race_won event. If the path was "Direct" → green P2P badge; if "Relay" → blue relay badge. Before the race resolves, shows yellow "Connecting...". directCallView is cleared on showConnectScreen (call end). CSS in style.css: .direct-call-view, .dc-identicon, .dc-name, .dc-fp, .dc-badge with .relay and .connecting modifiers. Co-Authored-By: Claude Opus 4.6 (1M context) --- desktop/index.html | 10 +++++++ desktop/src/main.ts | 62 ++++++++++++++++++++++++++++++++++--------- desktop/src/style.css | 60 ++++++++++++++++++++++++++++++++++++++++- 3 files changed, 119 insertions(+), 13 deletions(-) diff --git a/desktop/index.html b/desktop/index.html index b84b3dc..0a2713a 100644 --- a/desktop/index.html +++ b/desktop/index.html @@ -111,6 +111,16 @@
+ +