MBS-10791: tiny_elements UI UX - #57
Open
bblumenfelder wants to merge 5 commits into
Open
Conversation
added 5 commits
May 5, 2026 14:27
Replace the horizontal nav-tabs + per-card variant button layout with a three-column grid: category rail with nested flavor list on the left, component grid in the middle, live preview pane with explicit "Insert into editor" button on the right. Add componentcount + Mebis colour tokens; teach utils::button_icon_css the new .elements-comp-icon selector so existing component icons render under the new markup.
Add 15px clickable dot indicators on each component card that toggle variants on click, plus a context-sensitive variant strip below the component grid that appears on dot hover and shows clickable chips with each variant's display name. Card click selects the component for the Insert button; clicks on dots do not change the selection. Strip stays visible while hovering it, hides 150ms after the cursor leaves both the dots and the strip.
Double-clicking a component card selects it and triggers Insert immediately, bypassing the explicit Insert button. Dots are excluded so quick double-toggling of a variant cannot accidentally insert.
Variant toggles previously refreshed the live preview only when the toggled component was the currently selected one. With the hover-driven strip, users routinely toggle on a component they're hovering over without selecting it first. Track the component currently rendered in the preview pane (set by showPreviewFor) and refresh it whenever its variants change, regardless of selection state.
bblumenfelder
force-pushed
the
MBS-10791_tiny_elements_UI-UX
branch
from
May 5, 2026 12:27
d9a8b7b to
15e0412
Compare
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.
Implemented some UX improvements because modal was too tiny (hehe) for the amount of data:
The challenge was to make the user understand immediately the structure and configurability of flavors with their variants by explicit description. Prevent accidential insertion of element by single click (changed to double click);
Concrete changes: