✨ Redesign Tooltip as Notification With Open-on-Click and Line Clamp#105
Merged
cristiantela merged 4 commits intov3-mainfrom May 7, 2026
Merged
✨ Redesign Tooltip as Notification With Open-on-Click and Line Clamp#105cristiantela merged 4 commits intov3-mainfrom
cristiantela merged 4 commits intov3-mainfrom
Conversation
…onent Remove the count/max display logic from Badge, turning it into a minimal dot indicator. Move absolute positioning from Launcher into Badge itself so placement is self-contained. Co-authored-by: Cursor <cursoragent@cursor.com>
Rename the Tooltip component to Notification and move it to src/components/Notification/. Clicking the notification content now opens the webchat via onOpen, and long messages are clamped to three lines. The close button is prevented from shrinking on wide content. Adds full unit test coverage for all new behaviour. Co-authored-by: Cursor <cursoragent@cursor.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## v3-main #105 +/- ##
===========================================
+ Coverage 61.90% 61.94% +0.03%
===========================================
Files 81 81
Lines 3749 3747 -2
Branches 1025 1000 -25
===========================================
Hits 2321 2321
+ Misses 1380 1379 -1
+ Partials 48 47 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
paulobernardoaf
approved these changes
May 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Type of Change
Motivation and Context
The launcher's Tooltip component was being squeezed by long message content, causing the close button to disappear. Additionally, users had no way to open the webchat by interacting with the notification bubble itself. This PR renames the component to
Notification(better reflecting its purpose), fixes the close button layout, clamps message text to three lines, and wires a click/keyboard handler to open the webchat directly from the notification.As a separate concern, the
Badgecomponent was simplified into a minimal dot indicator, removing the count display and centralising its absolute positioning within the component itself.Summary of Changes
Notification component (renamed from Tooltip):
src/components/Tooltip/tosrc/components/Notification/and updated all CSS class names fromweni-tooltiptoweni-notification.flex-shrink: 0andwidth: fit-contentto the close button so it always renders at its natural size regardless of message width..weni-notification__contentwith-webkit-line-clamp: 3to cap text at three lines.onClickandonKeyDown(Enter) handlers to the content area so clicking or pressing Enter opens the webchat via a newonOpenprop passed fromLauncher.Launcher.jsxto passtoggleChatasonOpentoNotification.Notification.test.jsx) covering rendering, close button, and content-area open/keyboard behaviour.Badge refactor:
count/maxdisplay logic fromBadge, turning it into a plain dot indicator.Launcher.scssintoBadge.scssso placement is self-contained.Design Files
Shopping assistant - Notifications
Demonstration