Skip to content

Fix Unicode avatar initials - #585

Merged
czarandy merged 1 commit into
mainfrom
fix/540-avatar-grapheme-initials
Aug 25, 2026
Merged

Fix Unicode avatar initials#585
czarandy merged 1 commit into
mainfrom
fix/540-avatar-grapheme-initials

Conversation

@czarandy

Copy link
Copy Markdown
Owner

Summary

  • derive Avatar initials at grapheme-cluster boundaries with Intl.Segmenter
  • fall back to Unicode code-point iteration when grapheme segmentation is unavailable
  • cover emoji, zero-width joiner sequences, and decomposed characters in tests and Storybook

Testing

  • pnpm test
  • pnpm lint
  • pnpm typecheck
  • pnpm build
  • pnpm build:storybook

Closes #540

@vercel

vercel Bot commented Aug 25, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
silver-ui-site Ready Ready Preview Aug 25, 2026 1:06am
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
silver-ui Ignored Ignored Aug 25, 2026 1:06am

@czarandy
czarandy merged commit 034e516 into main Aug 25, 2026
4 checks passed
@czarandy
czarandy deleted the fix/540-avatar-grapheme-initials branch August 25, 2026 01:29
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.

Avatar: initials are garbled for names starting with emoji or multi-codepoint characters

1 participant