Repository navigation
feat(chat/message-toolbar): Add tooltips for chat message actions (edit, reply, delete, react) - #21567
feat(chat/message-toolbar): Add tooltips for chat message actions (edit, reply, delete, react)#21567ramonlsouza merged 2 commits into
Conversation
…it, reply, delete, react)
WalkthroughThe pull request introduces several modifications to the Possibly related PRs
Suggested reviewers
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Outside diff range and nitpick comments (2)
bigbluebutton-html5/imports/ui/components/chat/chat-graphql/chat-message-list/page/chat-message/message-toolbar/component.tsx (2)
47-66: Add meaningful descriptions for tooltip messagesThe tooltip messages have empty descriptions. Consider adding descriptive text to help other developers understand the purpose of these messages.
editTooltip: { id: 'app.chat.header.tooltipEdit', - description: '', + description: 'Tooltip shown when hovering over the edit message button', defaultMessage: 'Edit message', }, replyTooltip: { id: 'app.chat.header.tooltipReply', - description: '', + description: 'Tooltip shown when hovering over the reply message button', defaultMessage: 'Reply to message', }, deleteTooltip: { id: 'app.chat.header.tooltipDelete', - description: '', + description: 'Tooltip shown when hovering over the delete message button', defaultMessage: 'Delete message', }, reactTooltip: { id: 'app.chat.header.tooltipReact', - description: '', + description: 'Tooltip shown when hovering over the message reactions button', defaultMessage: 'React to message', },
181-193: Maintain consistency in icon prop usageThe reactions button uses
svgIconwhile other buttons useicon. Consider using the same prop type for consistency.<EmojiButton onClick={(e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => { e.stopPropagation(); onReactionPopoverOpenChange(true); }} - svgIcon="reactions" + icon="reactions" color="light" data-test="reactionsPickerButton" ref={setReactionsAnchor} />
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
📒 Files selected for processing (3)
bigbluebutton-html5/imports/ui/components/chat/chat-graphql/chat-message-list/page/chat-message/message-toolbar/component.tsx(3 hunks)bigbluebutton-html5/private/config/settings.yml(1 hunks)bigbluebutton-html5/public/locales/en.json(1 hunks)
🔇 Additional comments (5)
bigbluebutton-html5/imports/ui/components/chat/chat-graphql/chat-message-list/page/chat-message/message-toolbar/component.tsx (3)
150-178: LGTM! Well-implemented reply button with tooltip
The implementation maintains accessibility with aria-describedby and includes proper event handling with stopPropagation. The tooltip integration is clean and follows best practices.
196-217: LGTM! Clean implementation of edit button with tooltip
The edit functionality is well-implemented with proper event handling and simplified event detail structure.
220-231: LGTM! Well-implemented delete button with tooltip and confirmation
The delete functionality includes proper safety measures with a confirmation modal and follows best practices for event handling.
bigbluebutton-html5/private/config/settings.yml (1)
776-776: LGTM! Toolbar configuration aligns with requirements.
The toolbar configuration correctly specifies the available chat message actions ['reply', 'edit', 'delete', 'reactions'] as per the documented options in the comment above.
Let's verify the integration with related components:
bigbluebutton-html5/public/locales/en.json (1)
58-61: LGTM! The new tooltip messages are well-structured.
The added tooltip entries follow the existing naming conventions and provide clear, concise messages that will improve the user experience when interacting with chat message actions.
|
Automated tests Summary✅ All the CI tests have passed! |



What does this PR do?
This PR adds tooltips for the chat tools (edit, reply, delete, react).
How to test
Just hover your mouse on chat tools.
Example: