Commit Graph
22 Commits
Author SHA1 Message Date
Alex Gleason 49fbba6f98 Show all accounts in switcher; current user links to profile 2026-06-25 12:22:24 +03:00
Alex Gleason 881629a746 Remove genUserName, use Anonymous fallback directly 2026-05-30 02:06:38 +02:00
Alex Gleason 3f69f84d19 Skeletonize account UI while metadata is loading
While the kind-0 metadata query for logged-in accounts is in flight, we
were rendering the genUserName-derived animal name (and its first
letter as the avatar fallback) before falling back to the real display
name once the profile arrived. That made the AccountSwitcher trigger
flash a meaningless 'Brave Otter' / 'B' before settling on the real
identity.

Expose isLoading from useLoggedInAccounts and, while it is still true
and we have no metadata.name yet, render Skeletons in place of:
  - the avatar fallback letter (in the AccountSwitcher trigger and the
    other-accounts dropdown rows),
  - the displayed name in the dropdown rows.

Once the query settles, behavior is unchanged: a real name renders if
present, otherwise the genUserName fallback fills in.
2026-05-11 18:16:59 -05:00
Alex Gleason 90e9045829 Shrink AccountSwitcher trigger to match starpoint
Starpoint achieves a more compact trigger via className descendant
selectors on LoginArea (h-10, p-1 pr-2.5, gap-2, w-8 h-8 avatar, no
name label). Apply those values as the component's default instead of
requiring every call site to override them.

Drops the md+ name label \u2014 the display name still shows inside the
dropdown. Also removes the 'stable file' warning header since this is
now an actively-maintained component.
2026-04-26 20:36:10 -05:00
Alex Gleason 816051f5ea Greatly simplify the login and signup dialogs 2025-12-30 17:53:32 -06:00
Alex Gleason 8eddf49e61 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
2025-11-04 23:58:32 -06:00
Chad Curtis 14eccbcb6f wallet configuration settings + nwc baseline support 2025-07-13 06:47:45 +00:00
Alex Gleason 15dbc6df85 AccountSwitcher: modal={false} 2025-06-26 10:35:59 -05:00
Alex Gleason da87f2c7b1 RelaySelector should not accept any props 2025-06-04 18:32:45 -05:00
Alex Gleason 048bf4cc69 Refactor AppProvider, AppConfig and presetRelays 2025-06-04 10:20:31 -05:00
Alex Gleason a8163d7a6c Add RelaySelector 2025-06-02 21:46:07 -05:00
Alex Gleason 130300f1c1 Use generated username fallback in other parts of the UI 2025-06-01 11:11:13 -05:00
Alex Gleason 139e6696db Improve LoginArea sizing and space 2025-06-01 09:47:15 -05:00
Alex Gleason 69faf49454 Add max width to AccountSwitcher 2025-05-20 03:32:37 -05:00
Alex Gleason 73e7e818b2 Improve AccountSwitcher without kind 0 2025-05-16 14:09:28 -05:00
Alex Gleason 282d6f4d4e Add comments to login stuff saying not to modify 2025-04-21 11:29:49 -05:00
Alex Gleason dec966b693 Refactor AccountSwitcher / LoginArea 2025-04-18 15:36:58 -05:00
Alex Gleason d88285480c Refactor useLoggedInAccounts into a separate hook 2025-04-18 15:30:11 -05:00
Alex Gleason d29f328bd4 LoginForm -> LoginDialog, SignupForm -> SignupDialog 2025-04-18 15:20:19 -05:00
Alex Gleason e07e98c882 Fix AccountSwitcher 2025-04-18 00:15:29 -05:00
Alex Gleason b4605cf672 Fix AccountSwitcher 2025-04-17 23:46:33 -05:00
Alex Gleason 360b9062b8 Include the AccountSwitcher component 2025-04-17 23:27:15 -05:00