Skip to content

Conversation

@mcfdez
Copy link
Contributor

@mcfdez mcfdez commented Dec 31, 2025

What is this PR about?

This pull request adds support for solid color avatars in the profile settings, allowing users to select a color as their avatar. The implementation includes UI changes to the profile form, avatar rendering improvements, and new utility functions for avatar handling.

Profile Form Enhancements:

  • Added a new solid color avatar option to the profile form, including a color picker input and a Palette icon for selection. The form now uses the getAvatarType and isSolidColorAvatar utilities to handle avatar types and values. [1] [2] [3]
  • Updated the form logic to use a useRef for the color input and to properly handle color avatar selection and value changes.

Avatar Rendering Improvements:

  • Modified the AvatarImage component to render a colored div when the avatar is a solid color, using the isSolidColorAvatar utility, ensuring consistent appearance for color avatars. [1] [2]

New Avatar Utility Functions:

  • Introduced isSolidColorAvatar and getAvatarType in avatar-utils.ts to encapsulate logic for detecting and handling solid color avatars and determining avatar type for form selection.

Checklist

Before submitting this PR, please make sure that:

Issues related

closes #213

Screenshots

image image image

@mcfdez mcfdez force-pushed the feat/solid-color-avatars branch from 66ef843 to eb14a68 Compare December 31, 2025 07:58
@mcfdez mcfdez marked this pull request as ready for review December 31, 2025 08:03
@mcfdez mcfdez requested a review from Siumauricio as a code owner December 31, 2025 08:03
@Siumauricio Siumauricio merged commit 13ad8cb into Dokploy:canary Jan 4, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add more avatar options or/and custom avatar for the Dokploy dashboard

2 participants