From 646d4fa3f1b4746f417a2f57bec7d75277e30a5e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Alejandro=20Guti=C3=A9rrez?=
<35082514+alezmad@users.noreply.github.com>
Date: Sat, 2 May 2026 23:24:49 +0100
Subject: [PATCH] fix(ui): chat footer reflects per-topic encryption state
---
apps/web/src/modules/mesh/topic-chat-panel.tsx | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/apps/web/src/modules/mesh/topic-chat-panel.tsx b/apps/web/src/modules/mesh/topic-chat-panel.tsx
index 5d1a24a..4e605f4 100644
--- a/apps/web/src/modules/mesh/topic-chat-panel.tsx
+++ b/apps/web/src/modules/mesh/topic-chat-panel.tsx
@@ -1095,7 +1095,15 @@ export function TopicChatPanel({
SSE · 2s push
key valid until {fmtTime(apiKeyExpiresAt)}
- v0.2.0 · plaintext base64 · per-topic crypto in v0.3.0
+ {keyState === "ready"
+ ? "v0.3.0 · 🔒 e2e encrypted (crypto_secretbox)"
+ : keyState === "not_sealed"
+ ? "v0.3.0 · waiting for re-seal · v1 plaintext fallback"
+ : keyState === "topic_unencrypted"
+ ? "v1 plaintext base64 · click enable to upgrade"
+ : keyState === "loading"
+ ? "loading topic key…"
+ : "v0.3.0 · key state: error"}