Skip to content

feat(website builder): page editor UI#5211

Merged
adrians5j merged 117 commits into
nextfrom
adrian/wb-editor-2-2026-05-13
May 26, 2026
Merged

feat(website builder): page editor UI#5211
adrians5j merged 117 commits into
nextfrom
adrian/wb-editor-2-2026-05-13

Conversation

@adrians5j
Copy link
Copy Markdown
Member

@adrians5j adrians5j commented May 14, 2026

What changed

This PR significantly improves the Website Builder editor UI. It introduces a new DragCursor component in admin-ui that replaces the plain orange circle with a designed pill-shaped drag indicator (dotted border on drag, solid fill when over a drop slot). The Style sidebar receives a major layout overhaul: a new SidebarRow primitive enforces a fixed-width label column with a vertically aligned control column across all style sections (Layout, Border, Background, Visibility), matching the Figma design. The element overlay label now shows the component icon alongside the name. BooleanInput and Visibility controls are replaced with SegmentedControl for a more compact inline experience. FileUrlFormatter is introduced as a configurable formatter (default passthrough in app-admin, real URL transformation in app-file-manager) registered via AdminConfig. Several admin-ui improvements ship alongside: SegmentedControl.Tabs, SegmentedControl full-width mode, ToggleGroup tooltip support, and FileUrlFormatter/FileUrl interfaces on AdminUiProvider.

Posts

https://x.com/WebinyCMS/status/2058070192815497325
https://x.com/WebinyCMS/status/2057497673901416748

Changelog

Website Builder Editor UI Improvements

Replaced the drag preview orange circle with a designed DragCursor pill component that shows the element name and icon, and changes appearance when hovering over a valid drop slot. Redesigned the Style sidebar to use a consistent label-left / control-right row layout across Layout, Border, Background, and Visibility sections. The element overlay chip now displays the component icon. Boolean and Visibility inputs now use segmented controls instead of switches.

FileUrlFormatter — Configurable URL Transformation

Added a FileUrlFormatter abstraction that allows packages to register a custom URL transformer via AdminConfig. The default implementation is a passthrough; app-file-manager registers a formatter that appends ?width=N when .width(N) is called, enabling thumbnail-sized image requests from the editor.

SegmentedControl Tabs and Full-Width Mode

SegmentedControl now supports a Tabs compound component for tab-panel layouts and a fullWidth prop that stretches the control to fill its container with equally-sized buttons.

Squash Merge Commit

feat: website builder editor UI improvements and FileUrlFormatter (#5211)

adrians5j and others added 30 commits May 4, 2026 15:24
…ls (#5107)

Co-authored-by: Bruno Zoric <bruno@webiny.com>
Co-authored-by: adrians5j <adrian@webiny.com>
The `@source` directive — which contains an absolute filesystem path —
was injected into every CSS file processed by PostCSS. Tailwind v4
removes the directive from CSS files it processes, but
`@tailwindcss/postcss` only processes files containing one of its
trigger at-rules; for other files (e.g., pre-bundled component CSS
imported through JS, like the Lexical editor styles), the injected
directive survived into the final bundle, exposing the build machine's
home directory in production output.

Add a small PostCSS plugin that runs after `@tailwindcss/postcss` and
removes any remaining `@source` at-rule from the output, so the leak
cannot escape regardless of which files trigger Tailwind processing.

Closes #5155
Co-authored-by: webiny-bot <webiny-bot@webiny.com>
Co-authored-by: Adrian Smijulj <adrian1358@gmail.com>
Co-authored-by: webiny-bot <webiny-bot@webiny.com>
Co-authored-by: Pavel Denisjuk <pavel@webiny.com>
Co-authored-by: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
@adrians5j adrians5j changed the title adrian/wb-editor-2-2026-05-13 Website Builder Editor UI Improvements May 25, 2026
@adrians5j adrians5j changed the title Website Builder Editor UI Improvements feat(website builder): page editor UI May 26, 2026
@adrians5j adrians5j merged commit 7342945 into next May 26, 2026
20 of 21 checks passed
@adrians5j adrians5j deleted the adrian/wb-editor-2-2026-05-13 branch May 26, 2026 09:32
@adrians5j adrians5j added this to the 6.4.0 milestone May 28, 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.

5 participants