13 Commits
Author SHA1 Message Date
raucao 8a3847ce31 Merge branch 'feature/nostr-profile-fields' into live 2026-11-19 22:00:26 +04:00
raucao be133af6fa Upload avatar and header images from the Nostr profile editor
CI / Test (pull_request) Successful in 49s
Release Drafter / Update release notes draft (pull_request) Successful in 37s
The editor gains edit affordances over the avatar and header image and an upload panel that stores the image (previewing the server-cropped result) and records it as pending. Saving the profile signs a Blossom upload token, flushes the pending images, merges the returned URLs into the kind-0 content, and keeps pending state until the publish succeeds so a retry re-flushes.
2026-11-19 21:58:12 +04:00
raucao 39d084bfdf Merge branch 'feature/nostr-profile-fields' into live 2026-11-19 18:51:52 +04:00
raucao e2ff905bdb Reuse the account avatar as the Nostr profile picture fallback
When the published profile has no usable `picture` (missing, blank, or not an http(s) URL), the editor previews the account avatar and writes its public URL into the profile on save. An existing valid picture is left untouched.

The component exposes the account avatar URL to the Stimulus controller, which applies it in `content()` only when `picture` is absent or not a URL, so the preview and the published content agree.
2026-11-19 18:50:50 +04:00
raucao da6d8a5828 Merge branch 'feature/nostr-profile-fields' into live 2026-11-19 17:50:50 +04:00
raucao 4d2e0aa2b6 Add about and website fields to the Nostr profile editor
CI / Test (pull_request) Successful in 46s
The profile editor only covered display name, NIP-05 and Lightning address. Add the bio (`about`) and `website` fields, read from the existing profile and written back on save (with `website` validated as an http(s) URL).

Lay the form out in a responsive two-column grid (single column on mobile) and align the submit button with the other account settings forms. Also fix the avatar size utility (`size:28` -> `size-28`), which left the avatar unsized on small screens and let it overlap the display-name label.

Avatar and banner image editing is still to come.
2026-11-19 17:49:21 +04:00
raucao 3f36ba261b Avoid duplicate site entries in Nostr list editors
The relay and media server editors compared the configured site URL
against existing event entries with raw string equality, so a trailing
slash or different case made the site entry look missing and it was
prepended again as a duplicate "added" row. Compare with
NostrManagerService.normalize_url instead, matching the status
components and the JS list editor.
2026-11-19 15:52:00 +04:00
raucao c1826a46f4 Handle all kind 0 display-name variants in the Nostr profile editor
CI / Test (pull_request) Successful in 51s
Release Drafter / Update release notes draft (pull_request) Successful in 6s
The editor read only `display_name`/`displayName` and wrote just `display_name` (deleting `displayName`), so profiles using `name` or the deprecated aliases were shown and updated incorrectly.

Read the first present of `display_name`, `displayName`, `name` and `username` (NIP-01/NIP-24 priority) with a fallback to the account display name, and write the edited value to every variant. The key list lives in `NostrManagerService::DISPLAY_NAME_KEYS` and is passed to the Stimulus controller so Ruby and JS stay in sync.
2026-11-19 15:14:29 +04:00
raucao 2af8efde18 Unify the URL list editors and harden the metadata fetch 2026-11-18 22:19:46 +04:00
raucao 5edbd3aed1 Add the Blossom media server list (kind 10063) 2026-11-18 22:19:46 +04:00
raucao 23898ae0a0 Publish the profile (kind 0) from settings 2026-11-18 22:19:46 +04:00
raucao 92a36cf3f7 Publish the relay list (NIP-65) from settings 2026-11-18 22:19:46 +04:00
raucao 2b30c6b750 Add Nostr onboarding: discovery services, settings UI and metadata chain 2026-11-18 22:19:35 +04:00