From 587676b656279a7742236bc175dbcd23b75fa8e9 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 20 Jan 2026 17:22:05 +0000 Subject: [PATCH] refactor(user-menu): reorganize menu items for better UX Reorder menu sections by logical grouping: - Identity (user profile) at top - Account config (wallet, relays, blossom) grouped together - App preferences (theme) in consistent location - Promotional (support grimoire) separated - Session actions (login/logout) at bottom This provides a more intuitive flow and consistent placement regardless of login state. --- src/components/nostr/user-menu.tsx | 186 ++++++++++++++--------------- 1 file changed, 89 insertions(+), 97 deletions(-) diff --git a/src/components/nostr/user-menu.tsx b/src/components/nostr/user-menu.tsx index 387e69b..ecf21de 100644 --- a/src/components/nostr/user-menu.tsx +++ b/src/components/nostr/user-menu.tsx @@ -370,6 +370,7 @@ export default function UserMenu() { + {/* User Profile - Identity section */} {account && ( <> @@ -385,7 +386,7 @@ export default function UserMenu() { )} - {/* Wallet Section - Always show */} + {/* Wallet Section */} {nwcConnection ? ( )} - {/* Support Grimoire Section */} - - -
-
- - Support Grimoire -
- -
- - - {formatSats(monthlyDonations)} - - {" / "} - {formatSats(MONTHLY_GOAL_SATS)} - - - {goalProgress.toFixed(0)}% - -
-
-
- + {/* Account Configuration - Relays & Blossom */} {account && ( <> {relays && relays.length > 0 && ( - <> - - - - Relays - - {relays.length} - - - - {relays.map((relay) => ( - - ))} - - - + + + Relays + + {relays.length} + + + + {relays.map((relay) => ( + + ))} + + )} {blossomServers && blossomServers.length > 0 && ( - <> - - - - - Blossom Servers - - {blossomServers.length} - - - - {blossomServers.map((server) => ( - { - addWindow( - "blossom", - { subcommand: "list", serverUrl: server }, - `Files on ${server}`, - ); - }} - > - - {server} - - ))} - - - + + + + Blossom Servers + + {blossomServers.length} + + + + {blossomServers.map((server) => ( + { + addWindow( + "blossom", + { subcommand: "list", serverUrl: server }, + `Files on ${server}`, + ); + }} + > + + {server} + + ))} + + )} - - - - Log out - )} - {!account && ( - <> - - setShowLogin(true)}> - Log in - - - )} - - {/* Theme Section - Always show */} + {/* App Preferences - Theme */} @@ -554,6 +509,43 @@ export default function UserMenu() { ))} + + {/* Support Grimoire */} + +
+
+ + Support Grimoire +
+ +
+ + + {formatSats(monthlyDonations)} + + {" / "} + {formatSats(MONTHLY_GOAL_SATS)} + + + {goalProgress.toFixed(0)}% + +
+
+ + {/* Session Actions - Login/Logout at bottom */} + + {account ? ( + + Log out + + ) : ( + setShowLogin(true)}> + Log in + + )}