✨ Allow Compact Starters to Be Dismissed and Mirror bottom-left Layout#107
Merged
cristiantela merged 4 commits intov3-mainfrom May 7, 2026
Merged
✨ Allow Compact Starters to Be Dismissed and Mirror bottom-left Layout#107cristiantela merged 4 commits intov3-mainfrom
cristiantela merged 4 commits intov3-mainfrom
Conversation
paulobernardoaf
approved these changes
May 7, 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 compact conversation starters lacked a way to be dismissed by the user, and its layout was hardcoded for right-side placement. This PR adds a close button so users can dismiss the starters panel, adds a
positionprop to mirror the layout correctly when the widget is anchored tobottom-left, and introduces unit tests for both changes as well as forFSButton's newonlyIconbehaviour.Summary of Changes
ConversationStartersCompact— close button: Added anFSButtonclose button inside the compact starters panel. It calls anonClosecallback (passed fromWidget, wired toclearStarters) when clicked.Widgetwas updated to destructureclearStartersfromuseConversationStartersand forward it asonClose.ConversationStartersCompact—positionprop: Added apositionprop ('bottom-right'|'bottom-left', both in PropTypes). The value is applied as a BEM modifier class (weni-starters-compact--bottom-right/weni-starters-compact--bottom-left). The--bottom-leftvariant flips alignment, margin, and close-button corner in SCSS.Widgetforwardsconfig.positionto keep layout and widget position in sync.FSButton—onlyIconprop: Added anonlyIconboolean prop. Whentrue, it appends theweni-fs-button--only-iconclass and forces the icon size to'medium'regardless of thesizeprop, ensuring consistent icon sizing for icon-only buttons.Tests: Added
ConversationStarters.test.jsxcoverage for the close button (renders, callsonClose, safe withoutonClose, does not fireonStarterClick) and for both position modifier classes. CreatedFSButton.test.jsxcovering rendering, all variant/size/modifier classes,onlyIconclass and icon-size behaviour, icon rendering, loading state, and disabled state.Design Files
Shopping assistant – Suggested questions
Demonstration