Solid color avatar is not displayed after saving
To Reproduce
Problem
On Settings → Profile, choosing a solid color avatar and saving stores the color, but the sidebar still shows the initials, including after a reload.
A related problem: opening the color picker or upload dialog, cancelling, and
saving stores the literal value color or upload as the avatar, so the current
avatar is lost.
Steps to reproduce
- Go to /dashboard/settings/profile
- Click the color swatch, pick a color, and click Save
- Look at the sidebar avatar
Expected
The sidebar avatar shows the selected color.
Cause
AvatarImage lost its solid color handling in the shadcn migration so the
color is passed to the image as a URL.
I have fix for this . Video has been attached regarding before and after the fix . Please allot me the issue so i can work on this Thank you
https://github.com/user-attachments/assets/72c1ef3c-1648-4dec-a4e0-879047ee93bf
Current vs. Expected behavior
Following the steps above, I expected the sidebar avatar to show the selected color. Instead it shows the user's initials, even after a reload. The color is saved correctly and still appears in the profile form, but it isn't displayed in the sidebar.
In the related case, I expected the current avatar to stay the same after cancelling
the picker. Instead the literal value color (or upload) is saved as the avatar, the
current avatar is lost, and the browser requests that value as an image and gets a 404.
Cause: AvatarImage lost its solid color handling in the shadcn migration (#4706), so
the color is passed to the image as a URL. The feature was added in #3371.
Provide environment information
This issue persists on every version of Dokploy such as Self hosted ,Cloud version and Local development
Which area(s) are affected? (Select all that apply)
Cloud Version, Local Development
Are you deploying the applications where Dokploy is installed or on a remote server?
Same server where Dokploy is installed
Additional context
No response
Will you send a PR to fix it?
Yes