From 68ee1b31222cd5ed7c98b7558c0d4ff9d94f95f2 Mon Sep 17 00:00:00 2001 From: Gigi Date: Fri, 17 Oct 2025 20:35:17 +0200 Subject: [PATCH] feat: add clear button for bookmark data - Right-aligned clear button in the same row as load/decrypt - Clears events, stats, and timing data - Disabled when no data to clear --- src/components/Debug.tsx | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/components/Debug.tsx b/src/components/Debug.tsx index 944807c1..37d328ad 100644 --- a/src/components/Debug.tsx +++ b/src/components/Debug.tsx @@ -257,6 +257,14 @@ const Debug: React.FC = ({ relayPool }) => { } } + const handleClearBookmarks = () => { + setBookmarkEvents([]) + setBookmarkStats(null) + setTLoadBookmarks(null) + setTDecryptBookmarks(null) + DebugBus.info('debug', 'Cleared bookmark data') + } + const handleBunkerLogin = async () => { if (!bunkerUri.trim()) { setBunkerError('Please enter a bunker URI') @@ -499,7 +507,7 @@ const Debug: React.FC = ({ relayPool }) => {

Bookmark Loading

Test bookmark loading and decryption (kinds: 10003, 30003, 30001, 39701)
-
+
+