[PR #1061] [MERGED] feat: add ability to set default profile picture #1041

Closed
opened 2026-02-04 21:12:38 +03:00 by OVERLORD · 0 comments
Owner

📋 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: mainHead: feat/default-profile-picture


📝 Commits (9)

  • 57028f0 feat: add ability to set default profile picture
  • 0a1210e reformat code
  • 14f47b3 add default profile picture to e2e test
  • 33e1d07 Update backend/internal/controller/app_images_controller.go
  • e5a933c Update backend/internal/service/app_images_service.go
  • befd114 don't store value in the database if user has custom profile picture
  • 7bde960 fix e2e tests
  • 372dc29 Merge branch 'main' into feat/default-profile-picture
  • d39e680 coderabbit 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.

## 📋 Pull Request Information **Original PR:** https://github.com/pocket-id/pocket-id/pull/1061 **Author:** [@stonith404](https://github.com/stonith404) **Created:** 10/29/2025 **Status:** ✅ Merged **Merged:** 11/4/2025 **Merged by:** [@stonith404](https://github.com/stonith404) **Base:** `main` ← **Head:** `feat/default-profile-picture` --- ### 📝 Commits (9) - [`57028f0`](https://github.com/pocket-id/pocket-id/commit/57028f0b67f2c36e3a8d8e6672ab4e8fb919a72b) feat: add ability to set default profile picture - [`0a1210e`](https://github.com/pocket-id/pocket-id/commit/0a1210eca77fa2c9af875caa392ab5a1bbfc04e2) reformat code - [`14f47b3`](https://github.com/pocket-id/pocket-id/commit/14f47b31e9f4b21f1b0235c1e3e35274f3726a21) add default profile picture to e2e test - [`33e1d07`](https://github.com/pocket-id/pocket-id/commit/33e1d076ac98a8955410fcadbbdaefbb1c3454e6) Update backend/internal/controller/app_images_controller.go - [`e5a933c`](https://github.com/pocket-id/pocket-id/commit/e5a933c5dabaa04e45a76f431ed01955a178b42d) Update backend/internal/service/app_images_service.go - [`befd114`](https://github.com/pocket-id/pocket-id/commit/befd114026ecd5337bac4dca3050ba94fa370b12) don't store value in the database if user has custom profile picture - [`7bde960`](https://github.com/pocket-id/pocket-id/commit/7bde960c75d6e2041c4d162a5def045e3416869a) fix e2e tests - [`372dc29`](https://github.com/pocket-id/pocket-id/commit/372dc2935da7c307fa2e4e695da0840162a9656c) Merge branch 'main' into feat/default-profile-picture - [`d39e680`](https://github.com/pocket-id/pocket-id/commit/d39e680c020292f15106e8ad5f77756ddd62b0c2) coderabbit feedback ### 📊 Changes **14 files changed** (+316 additions, -77 deletions) <details> <summary>View changed files</summary> 📝 `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) </details> ### 📄 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 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-04 21:12:38 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/pocket-id#1041