Auto-save profile picture on selection (don't require Update Profile click) #101
Labels
No labels
app:activities
app:chat
app:events
app:forum
app:libra
app:market
app:restaurant
app:tasks
app:wallet
app:webapp
bug
enhancement
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
aiolabs/webapp#101
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
In the profile edit form (
src/modules/base/components/ProfileSettings.vue), picking a new picture uploads to pict-rs immediately, but the URL only gets written touser.extra.picture(and broadcast as kind-0 metadata) when the user clicks Update Profile and submits the form.Problem
This is a footgun:
Proposal
When an image lands in
uploadedPicture(i.e.ImageUploadv-model emits a result), trigger an auto-save that:updateProfile()with the new picture URL.Display-name and username edits stay manual (still require Update Profile) — the user types those incrementally, so auto-save would fire on every keystroke. Only the picture (a discrete pick action) should auto-save.
Files
src/modules/base/components/ProfileSettings.vue— wire a watcher onuploadedPicturethat submits picture-only when a new image arrives.Acceptance
user.extra.pictureand publishes a kind-0 metadata event without any extra click.