From ca3d390180d38de577f11a65bcbf26fb13ff9133 Mon Sep 17 00:00:00 2001 From: Dorian Date: Sat, 14 Feb 2026 11:13:21 +0000 Subject: [PATCH] feat: update AppHeader and useAccounts for improved user profile handling - Replaced robohash image source with user-defined profile picture in AppHeader. - Enhanced name display with truncation for better UI consistency. - Introduced caching and fetching of Nostr profile metadata in useAccounts. - Added computed properties for active profile and profile picture to streamline user data retrieval. This update improves the user experience by ensuring accurate profile representation and efficient data management. --- src/components/AppHeader.vue | 19 +++---- src/composables/useAccounts.ts | 92 ++++++++++++++++++++++++++++++++-- 2 files changed, 99 insertions(+), 12 deletions(-) diff --git a/src/components/AppHeader.vue b/src/components/AppHeader.vue index 18a8d0f..b6214df 100644 --- a/src/components/AppHeader.vue +++ b/src/components/AppHeader.vue @@ -193,12 +193,12 @@ class="profile-button flex items-center gap-2" > Avatar - {{ nostrActiveName }} + {{ nostrActiveName }} @@ -268,12 +268,12 @@
Avatar - {{ nostrActiveName }} + {{ nostrActiveName }}