Repository navigation
Allow customization of avatars for users and groups - #26081
Merged
Merged
Conversation
oliverguenther
force-pushed
the
feature/custom-avatars
branch
from
October 16, 2026 07:14
8c6f43a to
09d934d
Compare
oliverguenther
force-pushed
the
feature/custom-avatars
branch
from
October 16, 2026 07:18
09d934d to
65f2b05
Compare
oliverguenther
marked this pull request as ready for review
October 16, 2026 08:47
For that to work, we need to be able to override the inputs
For preview purposes, it is preferable we can go through the standard API endpoints for the previewing. This access is restricted to admins that can modify everyone's avatar, or the same user
oliverguenther
force-pushed
the
feature/custom-avatars
branch
from
October 16, 2026 09:51
767b716 to
fb3231f
Compare
HDinger
approved these changes
Oct 16, 2026
HDinger
left a comment
Contributor
There was a problem hiding this comment.
Nice 👏 🏅
I took the freedom and fixed the issues I remarked myself 😅
| data: { turbo: true, turbo_method: :delete, turbo_confirm: t(:are_you_sure_delete_avatar) } | ||
| ) | ||
| ) { t("avatars.delete_image") } %> | ||
| <% end %> |
Contributor
There was a problem hiding this comment.
The UX of this component is not really ideal. I for example don't see that I uploaded anything whithin this component. However, in the D-Team we are planning a primer form file_input field which would solve this. So it is fine to keep it like it is for now.
|
Warning Flaky specs
🤖 Ask Copilot to investigateCopy the prompt below into a new comment on this PR to delegate the investigation to GitHub Copilot. It will look into the flakiness and open a separate pull request with you as reviewer. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ticket
https://community.openproject.org/work_packages/SE-625
What are you trying to accomplish?
Screenshots
2026-10-16_08-30-51.mp4
What approach did you choose and why?
Allow customization of the initials being rendered, as well as the background color.
Allows clicking on an avatar to trigger a dialog to edit or switch the type of avatar you, or the user/group should have
Allow avatar components to be rendered for preview reasons, not only with the live avatar. For this, the API is extended to allow admins or the current user to preview an avatar of a different type.
Slightly modifies the SVG rendering to allow for easier replacement during previews
Refactors the group tab registration to work the same way as users, avoiding patching the core from avatar settings
AI involvement
Collaborative – AI generated a substantial part of the code; I reviewed and understand every line.
Merge checklist