Skip to content

feat(EditorMentionMenu): add item.color forwarded to leading Avatar#35

Open
IgorShevchik wants to merge 1 commit into
mainfrom
feat/editor-mention-menu-avatar-color
Open

feat(EditorMentionMenu): add item.color forwarded to leading Avatar#35
IgorShevchik wants to merge 1 commit into
mainfrom
feat/editor-mention-menu-avatar-color

Conversation

@IgorShevchik
Copy link
Copy Markdown
Collaborator

Summary

  • Adds color?: AvatarProps['color'] to EditorMentionMenuItem.
  • Forwards it as the default color to the item's leading B24Avatar. Explicit item.avatar.color still wins, since the avatar object is spread after color in the h(B24Avatar, ...) call.
  • No host-level color is introduced — src/theme/editor-mention-menu.ts is untouched. The new prop only tints the inner Avatar.
  • Particularly useful for @mention UX where roles, statuses, or other per-user signals are conveyed by avatar tint.

Follow-up to #24 (Avatar/AvatarGroup color), #27 (User), #28 (ChatMessage), #29 (Alert), #30 (Toast), #31 (Timeline), #32 (NavigationMenu), #33 (Tabs), #34 (CommandPalette).

Test plan

  • pnpm run lint / pnpm run typecheck pass (no test file exists for EditorMentionMenu — it renders inside the editor only)
  • Verify in editor playground that per-item color tints the mention-menu avatar
  • Verify explicit item.avatar.color overrides the cascade

🤖 Generated with Claude Code

@IgorShevchik IgorShevchik force-pushed the feat/editor-mention-menu-avatar-color branch from 7712643 to 6d2d991 Compare May 13, 2026 06:59
Adds `color?: AvatarProps['color']` to `EditorMentionMenuItem` and
forwards it as the default `color` to the item's leading `B24Avatar`.
Explicit `item.avatar.color` still wins, since the avatar object is
spread after `color` in the `h(B24Avatar, ...)` call. No host-level
color is introduced — the new prop only tints the inner Avatar.

Especially useful for @mention UX where roles, statuses, or other
per-user signals are conveyed by avatar tint.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@IgorShevchik IgorShevchik force-pushed the feat/editor-mention-menu-avatar-color branch from 6d2d991 to 3c0923b Compare May 13, 2026 07:06
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.

1 participant