mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-02-05 00:39:38 +03:00
[PR #1061] [MERGED] feat: add ability to set default profile picture #1041
Reference in New Issue
Block a user
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?
📋 Pull Request Information
Original PR: https://github.com/pocket-id/pocket-id/pull/1061
Author: @stonith404
Created: 10/29/2025
Status: ✅ Merged
Merged: 11/4/2025
Merged by: @stonith404
Base:
main← Head:feat/default-profile-picture📝 Commits (9)
57028f0feat: add ability to set default profile picture0a1210ereformat code14f47b3add default profile picture to e2e test33e1d07Update backend/internal/controller/app_images_controller.goe5a933cUpdate backend/internal/service/app_images_service.gobefd114don't store value in the database if user has custom profile picture7bde960fix e2e tests372dc29Merge branch 'main' into feat/default-profile-pictured39e680coderabbit feedback📊 Changes
14 files changed (+316 additions, -77 deletions)
View changed files
📝
backend/internal/bootstrap/services_bootstrap.go(+1 -1)📝
backend/internal/common/errors.go(+10 -0)📝
backend/internal/controller/app_images_controller.go(+54 -0)📝
backend/internal/service/app_images_service.go(+28 -2)📝
backend/internal/service/user_service.go(+35 -32)📝
backend/internal/utils/file_util.go(+14 -0)📝
frontend/messages/en.json(+4 -3)📝
frontend/src/lib/components/ui/button/button.svelte(+19 -1)📝
frontend/src/lib/services/app-config-service.ts(+25 -4)📝
frontend/src/lib/utils/cached-image-util.ts(+7 -0)📝
frontend/src/routes/settings/admin/application-configuration/+page.svelte(+22 -5)📝
frontend/src/routes/settings/admin/application-configuration/application-image.svelte(+63 -18)📝
frontend/src/routes/settings/admin/application-configuration/update-application-images.svelte(+30 -10)📝
tests/specs/application-configuration.spec.ts(+4 -1)📄 Description
This PR adds the functionality for adding a custom default profile picture. If not set, Pocket ID will generate a profile picture with the initials of the user.
Closes #1018
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.