feat(mobile): add profile editing - #3852
Conversation
Let mobile identities publish display name, avatar, and bio metadata while preserving existing kind-0 fields and tags. Co-authored-by: alebairos <alexandre.bairos@gmail.com> Signed-off-by: alebairos <alexandre.bairos@gmail.com>
Co-authored-by: alebairos <alexandre.bairos@gmail.com> Signed-off-by: alebairos <alexandre.bairos@gmail.com>
|
same note as on #3859 — you two are solving the same thing; worth picking one pr or splitting name/avatar vs bio |
Co-authored-by: alebairos <alexandre.bairos@gmail.com> Signed-off-by: alebairos <alexandre.bairos@gmail.com>
|
Thanks; we compared #3859. This PR keeps display name, avatar, and bio together because they publish one kind-0 metadata snapshot. It additionally bounds JPEG uploads to avoid the reproduced production HTTP 413 and has physical-device/VPS acceptance. We’ll defer to maintainers on consolidation. |
Adapt the inline emoji avatar concept from block#3859 onto the complete profile editor while preserving photo upload, removal, and bio editing. Co-authored-by: Blue Pink Neon <bluepinkneon@mycl.one> Co-authored-by: alebairos <alexandre.bairos@gmail.com> Signed-off-by: alebairos <alexandre.bairos@gmail.com>
|
Following the overlap note, I consolidated the unique #3859 capability here rather than opening a third competing profile-editor PR. Commit Verification at exact head
The invited-iPhone acceptance build also included #3835 because that identity stores a Happy to follow maintainer direction on final consolidation. |
@Chessing234 See the last comment. We adapted the emoji part from #3859 into this PR. I tested in android and iOS and liked the results. |
|
@wpfleger96 please take a look when you have some time. I'm using this code in my phones and liked the results. Buzz rocks, I've deployed a VPS relay for friends and family. I forgot to mention I'm using Buzz to fix buzz. cool. |
Summary
Allow the active Mobile identity to create and update its Nostr kind-0 profile
from Settings.
The editor supports display name, avatar, and bio while preserving unexposed
profile fields and event tags. Saves are signed by the active identity,
published to its current community, and reflected locally only after relay
acceptance. If the active identity or relay changes during the edit, the save
aborts instead of publishing with stale configuration.
Profile avatars are selected at a bounded 512 by 512 resolution, converted to
JPEG, and uploaded through the authenticated media path. This avoids reverse
proxy rejection of multi-megabyte device photos without changing the
full-resolution message-attachment path.
Related issue
N/A. This follows the post-invite profile-less identity gap discovered while
testing #3835 and the ID-search improvement in #3843.
Testing
just ci1,032 passed,1 skipped)2,003 passed,14 ignored3 passed200for both revised avatar uploads;the immediately preceding full-resolution request reproduced HTTP
413.Buzz originating channel:
c26bd1cd-860c-4f0e-8b8c-54f5ac3a6a56