Skip to content

MBS-10791: tiny_elements UI UX - #57

Open
bblumenfelder wants to merge 5 commits into
mainfrom
MBS-10791_tiny_elements_UI-UX
Open

MBS-10791: tiny_elements UI UX#57
bblumenfelder wants to merge 5 commits into
mainfrom
MBS-10791_tiny_elements_UI-UX

Conversation

@bblumenfelder

@bblumenfelder bblumenfelder commented May 5, 2026

Copy link
Copy Markdown

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);

image

Concrete changes:

  • Switch the component picker from horizontal tabs + per-card variant buttons to a three-column layout:
  • category rail with nested flavor list on the left, component grid in the middle,
  • live preview panel with an explicit "Insert into editor" button on the right.
  • Variants in a hover-driven strip below the grid,
  • 15px clickable dot indicators on each card.
  • double-click on a card inserts immediately
  • preview updates on hover or selection.

Benedikt Blumenfelder 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
bblumenfelder force-pushed the MBS-10791_tiny_elements_UI-UX branch from d9a8b7b to 15e0412 Compare May 5, 2026 12:27
@bblumenfelder
bblumenfelder requested a review from sh-csg May 5, 2026 12:46
@PhMemmel PhMemmel changed the title Mbs 10791 tiny elements UI ux MBS-10791: tiny_elements UI UX Jul 14, 2026
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