feat: space avatar color with color picker UI
Add avatarColor field to spaces, matching the user avatar color system. Spaces get a random color on creation and owners can change it in space settings. The color controls the fallback gradient when no icon is uploaded, replacing the old deterministic hash-based gradient. Includes full federation support, explore page, mutual spaces, and color picker in both create and settings modals.
This commit is contained in:
@@ -222,7 +222,7 @@ function SpaceCard({
|
||||
const [joinError, setJoinError] = useState('');
|
||||
const [iconGradient, setIconGradient] = useState<string | null>(null);
|
||||
|
||||
const fallbackGradient = getSpaceGradient(space.id, space.name).gradient;
|
||||
const fallbackGradient = getSpaceGradient(space.id, space.name, space.avatarColor).gradient;
|
||||
const isPublic = space.visibility === 'public';
|
||||
const isJoined = space.joined === true;
|
||||
const originLabel = space._instanceOrigin
|
||||
|
||||
Reference in New Issue
Block a user