Skip to content
Open
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
62060b8
feat(webapp): add a profile photo editor modal with circular crop and…
kathiekiwi Aug 27, 2026
01619a9
feat(webapp): store profile photos in S3 and serve them presigned
kathiekiwi Aug 27, 2026
8068b39
feat(webapp): change your profile picture from the account page
kathiekiwi Aug 27, 2026
9245092
feat(webapp): delete the previous profile photo after a new one is st…
kathiekiwi Aug 27, 2026
41dbfad
feat(webapp): verify profile photo bytes and return fetchable avatar …
kathiekiwi Aug 27, 2026
569c46c
fix(webapp): size the avatar image to its container
kathiekiwi Aug 27, 2026
c25c7b0
fix(webapp): allow the avatar object store origin in the image policy
kathiekiwi Aug 27, 2026
cefdc34
fix(webapp): reject unsafe hosts when deriving an image policy origin
kathiekiwi Aug 27, 2026
b4cf0ae
feat(webapp): remove your profile photo from the account page
kathiekiwi Aug 27, 2026
5aca646
feat(webapp): show, remove and drag-drop the profile picture in the p…
kathiekiwi Aug 27, 2026
4516205
feat(webapp): show and remove the current profile picture from the ac…
kathiekiwi Aug 27, 2026
8128436
fix(webapp): hide the remove button once a new profile picture is picked
kathiekiwi Aug 27, 2026
89421bc
feat(webapp): serve avatar bytes from our own origin for re-cropping
kathiekiwi Aug 27, 2026
a651d06
feat(webapp): load the existing profile picture straight into the cro…
kathiekiwi Aug 27, 2026
fea2e6c
feat(webapp): show a tooltip on the account page profile picture
kathiekiwi Aug 27, 2026
820a2a7
feat(webapp): show the saved profile picture statically in the photo …
kathiekiwi Aug 27, 2026
a614903
fix(webapp): move the remove button to the footer's right slot
kathiekiwi Aug 27, 2026
3eac9a3
fix(webapp): drop refused uploads and block avatar writes while imper…
kathiekiwi Aug 27, 2026
237e84d
fix(webapp): fall back to the picker when the saved photo fails to load
kathiekiwi Aug 27, 2026
1a083d3
refactor(webapp): build the avatar routes with the dashboard route bu…
kathiekiwi Aug 27, 2026
529bfe6
feat(webapp): give profile pictures their own object store
kathiekiwi Aug 28, 2026
11afe1a
fix(webapp): only show uploaded photos in the profile picture editor
kathiekiwi Aug 28, 2026
64e24f4
fix(webapp): hide profile picture uploads when no avatar store is con…
kathiekiwi Aug 28, 2026
11af3dc
fix(webapp): reject protocol-relative avatar urls in the photo editor
kathiekiwi Aug 28, 2026
c4b7ae4
fix(webapp): sign avatar store requests as s3 and ignore blank config
kathiekiwi Aug 28, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix(webapp): only show uploaded photos in the profile picture editor
  • Loading branch information
kathiekiwi committed Aug 28, 2026
commit 11afe1abdee56dbf262dc4cd3c9bf78dc852f6f1
5 changes: 4 additions & 1 deletion apps/webapp/app/routes/account._index/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,9 @@ function ChangeProfilePhotoButton() {
});
};

// Only our own uploads are app-relative; OAuth avatars are absolute URLs.
const uploadedAvatarUrl = user.avatarUrl?.startsWith("/") ? user.avatarUrl : undefined;
Comment thread
kathiekiwi marked this conversation as resolved.
Resolved

const remove = () => {
actionRef.current = "remove";
fetcher.submit(null, { method: "delete", action: "/resources/account/avatar" });
Expand Down Expand Up @@ -526,7 +529,7 @@ function ChangeProfilePhotoButton() {
open={isOpen}
onOpenChange={setIsOpen}
onSave={save}
currentAvatarUrl={user.avatarUrl ?? undefined}
currentAvatarUrl={uploadedAvatarUrl}
onRemove={remove}
isSaving={isSaving}
/>
Expand Down
Loading