Add NIP-65 relay list display and improve identity UI
- Add NIP-65 relay list service to fetch kind 10002 events from relays - Replace configurable relay page with read-only NIP-65 relay display - Update identity page to show display name and username in same badge - Use reglisse heading font for titles throughout the UI - Navigate to You page after vault unlock instead of identities list - Add autofocus to vault password input field - Add profile metadata service for fetching kind 0 events - Add readonly mode to relay-rw component Files modified: - package.json (version bump to 0.0.6) - projects/common/src/lib/services/relay-list/relay-list.service.ts (new) - projects/common/src/lib/services/profile-metadata/profile-metadata.service.ts (new) - projects/common/src/lib/constants/fallback-relays.ts (new) - projects/*/src/app/components/home/identity/* (UI improvements) - projects/*/src/app/components/edit-identity/relays/* (NIP-65 display) - projects/*/src/app/components/vault-login/* (autofocus, navigation) - projects/common/src/lib/styles/* (heading fonts) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -93,3 +93,26 @@ export interface SignerMetaData {
|
||||
|
||||
vaultSnapshots?: SignerMetaData_VaultSnapshot[];
|
||||
}
|
||||
|
||||
/**
|
||||
* Cached profile metadata from kind 0 events
|
||||
*/
|
||||
export interface ProfileMetadata {
|
||||
pubkey: string;
|
||||
name?: string;
|
||||
display_name?: string;
|
||||
displayName?: string; // Some clients use this instead
|
||||
picture?: string;
|
||||
banner?: string;
|
||||
about?: string;
|
||||
website?: string;
|
||||
nip05?: string;
|
||||
lud06?: string;
|
||||
lud16?: string;
|
||||
fetchedAt: number; // Timestamp when this was fetched
|
||||
}
|
||||
|
||||
/**
|
||||
* Cache for profile metadata, stored in session storage
|
||||
*/
|
||||
export type ProfileMetadataCache = Record<string, ProfileMetadata>;
|
||||
|
||||
Reference in New Issue
Block a user