feat(avatar): enhance SpaceAvatar component with emoji support

- Updated SpaceAvatar component to allow emoji-based avatars, enabling users to select emojis as their space avatar.
- Added new props and computed properties to handle emoji logic and display.
- Enhanced UI to include an emoji picker and clear option for avatars.
- Updated localization strings in English and Chinese for new avatar features.
- Adjusted styles for emoji display and interaction.

This update improves user personalization options for avatars, enhancing the overall user experience in the application.
This commit is contained in:
wizardchen
2026-02-02 00:30:27 +08:00
committed by lyingbug
parent 72173432c9
commit 342e56735f
15 changed files with 767 additions and 352 deletions
@@ -99,7 +99,7 @@ func (r *organizationRepository) ListSearchable(ctx context.Context, query strin
// Update updates an organization (Select ensures zero values like invite_code_validity_days=0 are persisted)
func (r *organizationRepository) Update(ctx context.Context, org *types.Organization) error {
return r.db.WithContext(ctx).Model(&types.Organization{}).Where("id = ?", org.ID).
Select("name", "description", "require_approval", "searchable", "invite_code_validity_days", "member_limit", "updated_at").
Select("name", "description", "avatar", "require_approval", "searchable", "invite_code_validity_days", "member_limit", "updated_at").
Updates(org).Error
}