From 3122502a833045cfc0da128087c968b582fc835b Mon Sep 17 00:00:00 2001 From: Cardinal Date: Wed, 24 Jun 2026 17:02:48 +0200 Subject: [PATCH] Improve storage refresh control and tooltip styling. Replace the storage cache reset cog with a refresh icon and confirmation, and simplify help tooltips to solid circles without borders. --- src/app/components/StampListSection.tsx | 45 ++++++++++++++----- .../css/StampListSection.module.css | 3 ++ .../components/css/SwapComponent.module.css | 30 +++---------- 3 files changed, 44 insertions(+), 34 deletions(-) diff --git a/src/app/components/StampListSection.tsx b/src/app/components/StampListSection.tsx index ab57611..86290be 100644 --- a/src/app/components/StampListSection.tsx +++ b/src/app/components/StampListSection.tsx @@ -509,6 +509,20 @@ const StampListSection: React.FC = ({ void fetchStamps(); }, [address, beeApiUrl, nodeAddress, beeHealth.status, isBeeHealthProbing]); + const handleHardReset = () => { + const confirmed = window.confirm( + 'Refresh storage list? This clears the local expired-stamps cache and reloads the page. Only use this if your storage list looks incorrect.' + ); + if (!confirmed) return; + + try { + localStorage.removeItem(EXPIRED_STAMPS_CACHE_KEY); + window.location.reload(); + } catch (error) { + console.error('Error clearing expired stamps cache:', error); + } + }; + // Function to refresh a specific stamp const refreshSingleStamp = async (stampToRefresh: BatchEvent) => { if (!address || beeNodeBlocks) return; @@ -839,19 +853,28 @@ const StampListSection: React.FC = ({ {/* Hard reset button - discrete at bottom */}
diff --git a/src/app/components/css/StampListSection.module.css b/src/app/components/css/StampListSection.module.css index f18eb7a..4d46e78 100644 --- a/src/app/components/css/StampListSection.module.css +++ b/src/app/components/css/StampListSection.module.css @@ -368,6 +368,9 @@ } .resetButton { + display: inline-flex; + align-items: center; + justify-content: center; background: transparent; border: 1px solid #30363d; color: #8b949e; diff --git a/src/app/components/css/SwapComponent.module.css b/src/app/components/css/SwapComponent.module.css index e989e4b..7085447 100644 --- a/src/app/components/css/SwapComponent.module.css +++ b/src/app/components/css/SwapComponent.module.css @@ -458,29 +458,6 @@ color: #ffffff; } -.tooltip { - cursor: help; - font-size: 12px; - font-weight: bold; - color: #8b949e; - background: none; - border: 1px solid #8b949e; - border-radius: 50%; - width: 16px; - height: 16px; - display: inline-flex; - align-items: center; - justify-content: center; - transition: all 0.2s ease; - line-height: 1; -} - -.tooltip:hover { - color: #ff7a00; - border-color: #ff7a00; - background-color: rgba(255, 122, 0, 0.1); -} - .checkboxLabel { font-size: 14px; color: #8b949e; @@ -497,11 +474,18 @@ height: 16px; background-color: #ff7a00; color: #ffffff; + border: none; border-radius: 50%; font-size: 12px; font-weight: bold; cursor: help; flex-shrink: 0; + line-height: 1; + transition: background-color 0.2s ease; +} + +.tooltip:hover { + background-color: #e56e00; } .uploadButton {