gutenberg icon indicating copy to clipboard operation
gutenberg copied to clipboard

Admin Materials and Surfaces

Open mtias opened this issue 1 year ago • 36 comments

As we further develop the primitives that make up the overall admin system (#53322) it seems important to map out the main elements that compose it. This issue focuses largely on how things might work and how things are structured, not how they look.

We'll start, for the sake of the presentation, with defining Materials, Concepts, and Screens. Materials are the places where Concepts are rendered; Concepts are the interfaces for the various items a site needs to represent; and Screens are the dedicated routes that bring them all together and construct the various user flows.

The terminology is just an instrument to help us break things down. The main thing to capture here is that the admin is composed out of a few shared pieces to account for the needs of extensibility, personalization, flexibility, and consistency.


The Materials

The overall Admin user interface is composed of a few core materials, grouped into Base, Surfaces, and Overlays.

Base

This is the base layer of the interface. It can change colors between light, dark, or user defined color palettes. The base layer contains the following items:

Image

Surfaces

We define three main element that build up the various layouts of the admin screens.

  • Canvas The primary area for previewing and editing content (e.g., block editors).
  • Stage Harbors either a Library of items (posts, pages, media, products, orders, patterns, fonts, etc) or Settings. This is also the main area for plugins to develop more customized interfaces.
  • Inspector Is meant to be a narrow (possibly fixed) width element for quick edit panels, style panel, editor inspector, plugin sidebars, etc.
Image

Overlays

Includes modals, preferences, dialogs, and interfaces like command palette.

The Concepts

Each surface can bring together a set of reusable, high-level concepts. These are primitives that define structure and functionality. Most of these already exist in code and have been the main focus of development as they tie in with the component and design system in encapsulating functionality, user interaction, accessibility affordances, etc. These are not meant to be exhaustive, just a high level grouping of the most common elements.

  • Navigation Menus (dropdowns, drilldowns), drawer, tabs, item groups.
  • Collection Lists, grids, tables, and alternate layout representations of DataViews.
  • Forms & Settings Structured fields, validation, form layout (e.g., DataForm, ToolPanel). (Fields API meets component system.)
  • Block Editor Context-specific editors for entities like posts, templates, and patterns.
  • Widget Small units laid out in a grid that connect with various functional components to create a personalized dashboard experiences.
  • Inserter UI for adding new blocks, new post types, new templates, etc.

The Screens

With these building blocks in place, every Admin screen can be declared as a layout incorporating these surfaces and concepts. This modular approach helps us ensure consistency, flexibility, scalability, and clarity across the entire admin and plugin experience. The layouts themselves are not fixed but starting points, since they can be reconfigured by plugins or by the user through data view configuration.

Illustrative example: Pages...

These are a few wireframes of how it comes together for a specific screen like "Pages" and all the ways in which it can be configured.

Image

List view with canvas showing full template preview.

Image

List view with canvas showing abstracted template preview (template is hidden, it only renders title and content like the default editor).

Image

Table view

Image

Table view with quick edit / bulk edit open.

Image

Grid view with quick edit / bulk edit open.

And the way we would describe this as a layout is something like the following:

Pages:
    Stage: Lists + Inserter + Tabs
        Default: List, [Table, Grid]
    Inspector: quick-edit
        Default fields: [ Title, Slug, Parent, [...] ]
    Canvas: block-editor
        Default view: Template, [Abstracted View]

[!IMPORTANT]
This is meant to be an ongoing working draft as we refine these elements.

mtias avatar Jul 25 '25 17:07 mtias

Thank you for posting this high-level view of admin area work. From the view of a small business site builder, the admin UX is critical to WP’s future adoption. My "regular people" clients need a flexible, useful, efficient, and beautiful UI or they just won't use it. I assume the same is true of DIY people on both .org and .com.

You said:

Stage Harbors either a Library of items (posts, pages, media, products, orders, patterns, fonts, etc) or Settings. This is also the main area for plugins to develop more customized interfaces. Inspector Is meant to be a narrow (possibly fixed) width element for quick edit panels, style panel, editor inspector, plugin sidebars, etc.

Please, I beg you, do not make the sidebars fixed - on either side. Unlike us, many who use WP's admin do not have multiple, large screens available when they work. Not being able to adjust the width of the sidebars in the admin now is a real frustration I hear about WP’s admin interface now. They want to be able to make the List View wider or narrower by dragging it - and I have to agree. Dragging the width of an element on your screen is expected behavior.

Also, please address the lack of support for right-click or cmd/ctrl+click to open new tabs within the newer admin screens. This forces users into a single-window workflow, which is frustratingly inefficient for many users. And again, this is expected behavior on the web. While this may be a complex challenge, addressing it would significantly improve the user experience.

These suggestions might seem trivial to you, but I promise, they matter to new adopters. If "regular users" don't feel like WP is a pleasant, flexible, efficient, and user-focused experience for them . . . they will fade away to other platforms.

cleo3 avatar Jul 25 '25 23:07 cleo3

How does this affect those of us who want to disable Gutenberg and use WordPress for the PHP functionality it can add to a HTML site?

DavidWaumsley avatar Jul 27 '25 09:07 DavidWaumsley

I appreciate the systematic approach here and look forward to how it can combine with potentially an API, or more extensible menus for the side panels and other pieces. That way truly any interface can be created, all from the same system, which creates a better experience for everyone.

They want to be able to make the List View wider or narrower by dragging it - and I have to agree. Dragging the width of an element on your screen is expected behavior.

I think this is a discussion to be had in the side panel issue, but I would consider debating this for the sake of a consistent experience and collapsible panels. Often we think people need more customisation than they do and it frequently is a case of being able to transition, close and easily navigate back. This is why many interfaces today are removing adjustable panels and opting for collapsing.

This all said, there is a lot of discussion to be had section by section reviewing the experience, it starts with the materials and surfaces, though and refines down.

karmatosed avatar Jul 27 '25 10:07 karmatosed

Please can we seriously consider how this aligns with existing APIs, such as the Settings API, when rendering options pages. Given the extensive plugin ecosystem, if help vs requiring plugin authors to redo all their code in JavaScript as we currently have with the block editor.

ajaydsouza avatar Jul 28 '25 16:07 ajaydsouza

This layout seems to be based on a block theme framework. What about the majority of WordPress users who aren't using a block theme? Is WordPress just ignoring the majority of users and developers in future development efforts ?

techmagick avatar Jul 29 '25 00:07 techmagick

This layout seems to be based on a block theme framework. What about the majority of WordPress users who aren't using a block theme? Is WordPress just ignoring the majority of users and developers in future development efforts ?

Continuity is important, but let's face it.. the "majority" of WP users are older people like yourself who are fiercely resistant to change. You could fork, but then you need the minority to slave away in providing critical security and performance updates to an increasingly outdated system. The technical debt to keep everything like text: static and the same, is quite unsustainable. A more sustainable metric would be realtime traffic, rather than the number of websites people no longer visit. Ignore the Abstract Majority you mentioned.

Sirjazzfeetz avatar Jul 29 '25 06:07 Sirjazzfeetz

Based on the aggravatingly fixed page/block sidebar in the current Block Editor I have to agree with others here that more flexibility would be extremely welcome. It's objectively the most-used UI element when creating or editing content. For anything more complex than a simple page, or core paragraph block, users already have to do quite a lot of scrolling and accordion-opening. Increasing flexibility in that sidebar would be particularly welcome.

davidinnes avatar Jul 30 '25 18:07 davidinnes

I like it 🔥

I can see some issues for UX later on but I think we can refine those UI UX stuff really faster later on.

sinanisler avatar Aug 04 '25 13:08 sinanisler

I think this is a really bad idea.

The first push was the block editor. I am managing 400+ websites, and all of them use either a classic/regular theme, or a hybrid one.

The second push was the draggable metabox drawer, which was quickly removed after lots of protests, but it might come back in a future release.

Is this the third push?

How many of you are regular users, or how many of you are small business owners who need to manage their website in a comfortable, familiar way? I bet none. WordPress should be a familiar CMS (like it's been for decades). Don't bring this JavaScript nonsense. Improve, or simplify, the current UI. Better (SVG) icons, improved typography, updated code (PHP 8+), vanilla JavaScript for minor interactions (where CSS is not applicable).

wolffe avatar Aug 11 '25 17:08 wolffe

Intro: Corporate (Gutenberg, Page Builder and Classic Sites) and also small business like / private WP Dev/Admin here.

I am managing 400+ websites, and all of them use either a classic/regular theme, or a hybrid one.

WP 5.0 with the new (Gutenberg) editor has been released in December 2018 - that is nearly 7 years ago. In the company I work for we also have some "classic" sites left, but Gutenberg is here to stay - and I'm glad it is. In this 7 years it has matured a lot - of course not like 20+ years of WordPress. But to stay relevant WP has to evolve - hopefully with less drama than the editor release this time.

I like this new admin approach so far - which can be kind of tested already in the site editor. Great work.

who need to manage their website in a comfortable, familiar way

The current admin is a mess! Mostly triggered by missing unified solutions and flexibility, that the new admin is (hopefully) trying to tackle.

  • Most plugin authors showcasing their menu item on the top level in the sidebar, even when it is just some settings you don't change regularly.
  • Also a lot of plugins are implementing their own settings page style and therefor different plugins have completely different settings pages. Neither comfortable, nor familiar.
  • And as dev who wants maybe shared settings between sites you have to hope that the plugin author supports this or you have to figure out how the plugin works - manually for every plugin.
  • And not to speak about admin notices which too often get misused as marketing banner.

So my hope is for more and easy to use standards (and the reuse or something similar to the Settings API).

It is easy to just complain, but don't forget that you have the opportunity to participate.

michakrapp avatar Aug 12 '25 11:08 michakrapp

Please, I beg you, do not make the sidebars fixed - on either side.

I will mention that last year I built a plugin that allows for declarative custom meta fields as JSON rendered with core WP components (as a sort of lightweight alternative to ACF). They default to the post settings sidebar and even nicely sectioning them out into panels, the number one request I got from users was to "move as many fields to the left (out of the sidebar) so we have more room" 😭. I am sure it would be more substantially more complex to style components to support that full flexibility but Container Queries are here and can really help if everything is resizable.

Speaking of "declarative custom meta fields as JSON",

Fields API meets component system.

I am quite interested to see where this goes.


Overall this looks like a good direction, I'm excited to see more of what's next for building in the admin. I've built out several admin pages for standalone plugins with react and all the premade components, wp-scripts, hooks, are really fun to work with but I do find myself wishing for some standard layouts. I have based my custom settings pages off of the Site Health section which feels just right for the amount of tabs and controls I have. I suppose that would fit in to the "canvas" category outlined here. It might be nice to integrate with the Settings API somehow (as mentioned above) and allow for some pre-made bits to be added automatically.

kurtrank avatar Aug 12 '25 14:08 kurtrank

WP 5.0 with the new (Gutenberg) editor has been released in December 2018 - that is nearly 7 years ago. In the company I work for we also have some "classic" sites left, but Gutenberg is here to stay - and I'm glad it is.

This doesn't make it less a mistake. You only need to look around you: how many websites are using the Classic Editor plugin, the amount of 1-star reviews for Gutenberg (before they are being removed by the plugin review team), and, and... everywhere else, to be fair.

That's why everybody is here, to steer it back to the right path.

There is no place for ReactJS in the admin area. PHP/HTML and CSS is enough. Vanilla JS for minor interactions.

wolffe avatar Aug 12 '25 14:08 wolffe

There is no place for ReactJS in the admin area. PHP/HTML and CSS is enough. Vanilla JS for minor interactions.

That's the perfect way to make sure WP stays in the past.

ResponsiveFlow avatar Aug 12 '25 15:08 ResponsiveFlow

There is no place for ReactJS in the admin area. PHP/HTML and CSS is enough. Vanilla JS for minor interactions.

That's the perfect way to make sure WP stays in the past.

HTML and CSS is not the past. It's present and future. Cramming every JS framework into it, this is the perfect way to "run a ship aground".

wolffe avatar Aug 12 '25 15:08 wolffe

HTML and CSS is not the past. It's present and future

People want interactivity, fast backend that doesn't refresh on every click, skeleton loading, etc. All the modern SaaS already offer this kind of functionality

ResponsiveFlow avatar Aug 12 '25 15:08 ResponsiveFlow

HTML and CSS is not the past. It's present and future

People want interactivity, fast backend that doesn't refresh on every click, skeleton loading, etc. All the modern SaaS already offer this kind of functionality

Which people? All the people out there who oppose these changes?

We all know by now that, whoever is building Gutenberg, and the "new" WordPress, has no real customer experience.

The age of SPA's is long gone. WordPress is not a SaaS, it's a CMS.

wolffe avatar Aug 12 '25 15:08 wolffe

To chime in here: I think it's both true that a) the Jamstack wars are over without a winner and b) that still people do expect faster interactivity than they used to in a more modern outfit, and rightly so. So I don't think there's a lot to argue about here.

And I don't care too much about the techstack as long as the dev flexibility is baked right into it in a way similar to classic php hooks that is still not the case with current editor/block hook/filter system. Ideally it also shouldn't involve dev toolchains from here to China to be able to work with and build on the platform (I love the wp-scripts package, but it's also a bit absurd how much boilerplate code is needed these days to output a simple post-related variable in a block and in the front end, but sure, that's not just a WP problem, and usually considered "good" dev/ex for some reason).

Edit: As a humorous side note to my ranty above side note about dev code complexity, Youtube just served me this short by @ryanwelcher - https://youtube.com/shorts/0gm6Oz2AEuQ?si=Mj3I4mH89z_czxIl

ts-mz avatar Aug 12 '25 16:08 ts-mz

The thread highlights an ongoing problem with both Gutenberg and FSE; inconsistent developer outreach. Almost everything in this issue already exists in Gutenberg as the FSE Site Editor. It seems like most in this thread have no idea. This issue is only offering conventions and grouping of what already exists.

Install a FSE theme and take a look.

christopherabalos avatar Aug 12 '25 16:08 christopherabalos

Could you please add a <button type="submit"> with this menu style: { position: sticky; top: 0; left: 0; } by default? It would help with very long pages, especially for content managers who don’t save pages often and don’t use hotkeys. Thanks!

BlackStar1991 avatar Aug 12 '25 20:08 BlackStar1991

I think that in this thread there are two layers of discussion:

On the one hand, it is very well known that people are resistant to change, especially in the UI department. Pretty much every UI redesign of any application gets a push-back of a vocal minority. And, to be honest, even for the majority, it might be jarring at first. Very rarely people react to this kind of change in their familiar experience with: “I love it!”.

However, for those who have been around long enough: do you remember YouTube's or Facebook's UI from 15 years ago? At every change, users complained: when I see that UI now, it looks awfully dated.

I'm not saying all the UI changes were good. But I am saying that keeping the UI and experience stuck at 15 years ago would have most definitely been a mistake.

At this point, I think that like other commenters have said, as a community we should accept that Gutenberg is here to stay, and for the best. “Steering [WordPress] back” to a paradigm without Gutenberg is simply not gonna happen and I don't see value in continuing such discussions—this would really be fork territory.

Now, before the mass downvotes arrive (probably too late!), on the other hand, this doesn't mean Gutenberg is perfect or doesn't have loads room for improvement. I just feel like the conversation should be productively focused on “steering improvement” within this new paradigm, not as a forceful resistance towards anything.

One thing I am frustrated about pretty much every day when I use WordPress, is how disjointed the Admin experience feels. The classic Admin experience is dated, confusing, and has been abused over the years by lack of clear guidelines and design language. At the same time, when you switch to FSE, you are transported to a different admin, which is more consistent and modern, but lacks continuity with the rest of the admin experience. So, even though it's more snappy, navigating between the two applications makes it feel sluggish and jarring.

I think this redesign has been long-coming and it feels this is being thought out with all the learnings of the past seven years in mind: I love the conceptualization of Canvas → Stage → Inspector, for instance. Which I think in a way coalesced naturally in the rest of the Gutenberg experience, but needs to be unified and integrated with everything else.

sunyatasattva avatar Aug 18 '25 19:08 sunyatasattva