mirror of
https://gitlab.com/soapbox-pub/mkstack.git
synced 2026-12-05 08:23:35 +00:00
Implement NIP-65 relay management
- Replace single relayUrl with NIP-65 compatible relayMetadata structure - Add RelayListManager component for managing multiple relays with read/write permissions - Add NostrSync component to automatically sync user's NIP-65 relay list on login - Update NostrProvider to use relay list instead of single relay - Remove RelaySelector component and update empty states - Update AGENTS.md documentation to reflect relay management changes - Automatically publish relay list changes as NIP-65 events when user is logged in
This commit is contained in:
13 files changed
+478
-272
No files matched your search
@@ -10,7 +10,6 @@ import {
|
||||
DropdownMenuTrigger,
|
||||
} from '@/components/ui/dropdown-menu.tsx';
|
||||
import { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar.tsx';
|
||||
import { RelaySelector } from '@/components/RelaySelector';
|
||||
import { WalletModal } from '@/components/WalletModal';
|
||||
import { useLoggedInAccounts, type Account } from '@/hooks/useLoggedInAccounts';
|
||||
import { genUserName } from '@/lib/genUserName';
|
||||
@@ -43,9 +42,6 @@ export function AccountSwitcher({ onAddAccountClick }: AccountSwitcherProps) {
|
||||
</button>
|
||||
</DropdownMenuTrigger>
|
||||
<DropdownMenuContent className='w-56 p-2 animate-scale-in'>
|
||||
<div className='font-medium text-sm px-2 py-1.5'>Switch Relay</div>
|
||||
<RelaySelector className="w-full" />
|
||||
<DropdownMenuSeparator />
|
||||
<div className='font-medium text-sm px-2 py-1.5'>Switch Account</div>
|
||||
{otherUsers.map((user) => (
|
||||
<DropdownMenuItem
|
||||
|
||||
Reference in new issue
Block a user