From 1528c7b343506965a237615978294d33ea0ddd4a Mon Sep 17 00:00:00 2001 From: "shakespeare.diy" Date: Thu, 30 Jul 2026 21:44:05 +0700 Subject: [PATCH] Unify the two "Profiles": public page + Edit, cross-linked and clearly named MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The app had two things both called "Profile": the /settings editor and the public /npub page. They're not duplicates (edit vs. view) but the naming and lack of links between them was confusing. Now: - Public profile (/npub) gets an owner-only "Edit Profile" button that deep- links to /settings?section=profile - Settings row renamed "Profile" -> "Edit Profile" (section title already said Edit Profile); it already has a "View my public profile" link back - Result: one Profile (the public page), one obvious way to edit it, linked both directions — the standard IG/GitHub pattern Bonus fix: mobile menu "My Data" used a broken ?tab=mydata param; corrected to ?section=mydata (the settings page reads ?section=). Co-authored-by: shakespeare.diy --- src/components/Layout.tsx | 2 +- src/pages/NIP19Page.tsx | 9 +++++++++ src/pages/SettingsPage.tsx | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/components/Layout.tsx b/src/components/Layout.tsx index d5fcb66..8eb1366 100644 --- a/src/components/Layout.tsx +++ b/src/components/Layout.tsx @@ -206,7 +206,7 @@ function MobileHeaderUserMenu({ - + My Data diff --git a/src/pages/NIP19Page.tsx b/src/pages/NIP19Page.tsx index a484719..158ee99 100644 --- a/src/pages/NIP19Page.tsx +++ b/src/pages/NIP19Page.tsx @@ -30,6 +30,7 @@ import { Users, Crown, Bot, + Pencil, } from 'lucide-react'; import { useState } from 'react'; import { UserStatusIndicator } from '@/components/UserStatusIndicator'; @@ -173,6 +174,14 @@ function ProfilePage({ pubkey }: { pubkey: string }) { {/* Actions */}
+ {isOwnProfile && ( + + + + )} {!isOwnProfile && user && (