Content types control panel

Open
#269 1 comment 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 2 days

@sneridagh is already working on this.

Since Oct 21, 2026.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
8/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
javascript, react, storybook, tailwindcss
Domain
design, frontend

Research direction

This is a multi-phase design epic, not a single task. Start by reading the Phases list and the Architecture table, then the Backend section and plone/plone.restapi#2061. The first concrete step is phase 0: scaffolding the new @plone/controlpanels package with its driver interface, MockDriver, and dependency lint rule. Read the existing @plone/quanta controls and cmsui's Field.tsx resolution order first. Done means the maintainers have agreed on the scope and split it into smaller issues.

Written by the indexing model from the issue text.

Description

03 type: feature (plip)

Responsible persons

Proposer

Víctor Fernández de Alba (@sneridagh)

Seconder

Érico Andrei (@ericof)
Timo Stollenwerk (@tisto)

Summary

A new Content types control panel for Aurora at /controlpanel/content-types.
It brings together what the classic Content Settings control panel (@@content-controlpanel) and the Volto Dexterity Content Types control panel do today.
The type is the unit: a list of types, plus one page per type with the tabs Settings, Workflow, Fields, Behaviors and Layout.

It is built so the same screens can run in Volto without changes.

Design

Content Types Control Panel.html

Scope

  • Type list: search and filters, a row menu that opens any tab, a bulk bar (change workflow, delete), an inline Addable switch, and a site defaults strip (default workflow, defaults for new types).
  • Add type dialog: name, a short name derived from the name, description, and "start from a copy of an existing type".
  • Type page:
    • one URL per tab: /controlpanel/content-types/{type}/{settings|workflow|fields|behaviors|layout}
    • one save per type: edits from all tabs collect in a sticky save bar, and tabs with unsaved edits show a dot
    • a dialog when leaving with unsaved edits
  • Settings: addable, allowed contents (all / only selected / nothing), shown in search results, usable as a folder's default page, comments, versioning. Settings that add-ons contribute are rendered from their schema with the registered widgets.
  • Workflow: explains the current workflow. A three-step Change workflow dialog (choose, map states, review) suggests mappings that keep visibility, shows item counts per state, and shows progress while it runs. The same flow works for several types at once (one change per type) and for the site default.
  • Workflow state colors: every state has a color, so the list, the Workflow tab, the change dialog and other UI (e.g. the contents view) show states consistently. Colors are one of the six Quanta color families (gray, blue, teal, green, yellow, red), so themes and dark mode can style them. The first that applies wins: the app's configuration, the color the backend sets on the state, defaults for Plone's core states, then a color derived from who can see items in the state, so custom workflows get one too.
  • Fields: fieldsets and fields, reordered by drag or keyboard. Fields that come from behaviors are shown locked, with a link to the behavior. Custom fields are edited in a side panel (Quanta's Sheet).
  • Behaviors: behaviors that add fields form an ordered list, those that don't form a separate unordered group, and a live preview shows the edit form. The add dialog explains conflicts (included behaviors, pairs, deprecated ones).
  • Layout: default blocks for new items. Aurora's editor is Plate, not the Volto blocks editor, so this tab needs its own design. It starts as a placeholder.
  • Redirects: /controlpanel/dexterity-types[/:id[/schema|/layout]] redirects to the matching new route.

Architecture

Layer Where Depends on
Controls @plone/quanta (added in #275: Switch, ToggleButton, ToggleButtonGroup, ProgressBar, Sheet) React, Tailwind
Screens new package @plone/controlpanels react, react-aria-components, @plone/quanta, @plone/helpers (form store), @plone/registry, jotai, @plone/types
Data a ContentTypesDriver interface in @plone/controlpanels, with capabilities flags none
Adapters createRestApiDriver in @plone/controlpanels (#351) talks to plone.restapi. Aurora runs it on the server, behind cmsui's resource routes, and AuroraDriver calls those routes. Volto runs it in the browser through its Api (plone/volto#8500) the app's way to call plone.restapi
  • @plone/controlpanels must not import react-router, any i18n library, @plone/client, @plone/cmsui or @plone/components. A lint rule will enforce this.
  • Navigation uses the react-aria-components RouterProvider.
  • Translations and toasts come from a provider.
  • Like the other add-ons, the package ships its TypeScript source; the app compiles it. For Volto it will also ship precompiled CSS with the Tailwind utilities it and Quanta use, so Volto needs no Tailwind setup.
  • Widgets are resolved from the registry with the FormWidgetProps contract from #243. The resolution order in cmsui's Field.tsx moves to @plone/helpers so both packages share it. Volto widgets will be updated to the same contract (a separate bugfix).
  • Anything the current plone.restapi can't do sits behind a capability flag. The UI ships against today's backend and turns features on as the backend gains them.
  • A MockDriver with fixtures from a real site runs the screens in Storybook and tests, so UI work doesn't wait for the backend.

Phases

Phases 0 to 6 are merged: the stack #271 → #369, on 2026-11-21. Left: the Layout tab (7), the capabilities that wait on plone.restapi (8), and the Volto side of the port (9).

  • 0. (#271) Scaffold @plone/controlpanels: the driver interface and types, capability flags, MockDriver and fixtures, the provider (router, t, notify), Storybook, and the dependency lint rule
  • 1. Quanta controls: done in #275 (Switch, ToggleButton, ToggleButtonGroup, ProgressBar, Sheet), on React Aria Components 1.22 (#273)
  • 2. (#309) Type list and add dialog, the Aurora route and redirects, and AuroraDriver list/create/delete on the existing endpoints
  • 3. (#310) The type page (tabs, per-type edit store, save bar, leave dialog) and the Settings tab
  • 4. (#313) The Fields tab and the field editor in a Sheet; in @plone/client, replacing a whole schema (PUT /@types/{type}), which also deletes fields
  • 5. (#335) The Behaviors tab and behavior metadata config (groups, included behaviors, pairs, deprecated)
  • 6. (#338) The Workflow tab and the change dialog; (#340) several types at once from the list's selection bar, and the site default from the site defaults strip
  • (#339) Aurora uses @content-types, @behaviors and @workflows when the backend has them, and today's endpoints otherwise
  • 7. The Layout tab: a design for Plate-based default layouts
  • 8. Turn on the capability flags in AuroraDriver as the plone.restapi endpoints land (see below)
  • 9. Volto port: routes and providers in Volto, with the shared plone.restapi driver (no Redux driver), and Volto widgets on the FormWidgetProps contract. In Aurora, merged: (#350) compiled CSS for apps without Tailwind, (#351) the plone.restapi driver shared with Volto. In Volto: plone/volto#8500, draft until @plone/controlpanels is released.

Merged

The stack was merged on 2026-11-21, bottom-up, one squash commit per PR on main:

# PR What
1 #271 The @plone/controlpanels package: driver, types, mock, provider
2 #309 The type list, add and delete dialogs, the Aurora route and redirects
3 #310 The type page, its save bar and leave dialog, and the Settings tab
4 #313 The Fields tab
5 #335 The Behaviors tab, and behavior metadata in the config
6 #338 The Workflow tab and the change dialog
7 #339 Aurora uses @content-types, @behaviors and @workflows when the backend has them
8 #340 Changing the workflow of several types, and the site default
9 #350 Compiled, scoped CSS for apps without Tailwind, such as Volto
10 #351 The plone.restapi driver moves into @plone/controlpanels, for Aurora and Volto
11 #353 Translations like @plone/plate's, and a guide to packages for Volto and Aurora
12 #369 Follow the reviewed plone.restapi API: content_count, "Show in navigation", the whole workflow chain

In Aurora, the control panel is at /@@controlpanel/content-types, and /@@controlpanel/dexterity-types redirects to it. The screens link to Volto's /controlpanel/content-types by default, and Aurora passes its own path as basePath.

Next
  • Release @plone/controlpanels with the add-on packages (packages/scripts/preleaser.js already lists it), and the packages with pending news: @plone/cmsui, @plone/client (updateTypeSchema) and @plone/types (behavior metadata, workflow state colors). @plone/quanta needs no release: the Sheet fixes came with #360. @plone/helpers 2.0.0-alpha.12 is out.
  • The Volto port (phase 9): plone/volto#8500 leaves draft once @plone/controlpanels is released. It needs a new tarball for the #369 changes.
  • The backend PRs: plone/plone.restapi#2070, plone/plone.restapi#2080, plone/plone.restapi#2081 and plone/plone.restapi#2090 are in review. Aurora turns their features on as they land (phase 8).
  • Still open: the Layout tab (phase 7, needs a design), and a folderish key in @content-types.
  • Nick: plone/nick#116 adds the same services to Nick. #438 lets the driver detect them there, where the site's type is Site, not Plone Site.

Backend

plone.restapi has no API for per-type content settings, workflow changes, behavior order or behavior metadata.
Proposal, discussed with the plone.restapi maintainers: plone/plone.restapi#2061. First implementation: plone/plone.restapi#2070.

  • @content-types, a new service: lists types with their settings, creates (also as a copy), deletes, and reads and changes each type's settings (/@content-types/{type}). Behaviors are a complete, ordered list. Add-ons can contribute their own settings, as fieldsets with a schema.
  • /@content-types/{type}/workflow: one type's workflow, changed one type at a time with a state mapping and a dry_run preview. The change is synchronous for now; running it as a job waits for a Plone jobs system.
  • @workflows (read-only for now): workflows with their states, transitions, visibility per state and optional state colors. The site default workflow changes through POST /@workflows.
  • @behaviors (read-only): the available behaviors and the fields each one adds.
  • Edit form preview: GET /@types/{type}?behaviors=…, the schema for a given behavior order.
  • An acceptance test server target, so the Aurora acceptance tests can run against an unreleased plone.restapi branch.

@types stays the schema service, and @controlpanels/dexterity-types stays as it is.

Importing and exporting types is left for later: the plone.restapi maintainers prefer a generic export and import of GenericSetup profiles, or support in plone.exportimport, over a type-specific one. The control panel leaves out the Export and Import actions until then.

In the driver: AuroraDriver maps these endpoints to the ContentTypesDriver model and turns each capability on as its endpoint lands. Workflow changes keep the driver's job model: until the backend has jobs, AuroraDriver returns an already finished job, so the dialog doesn't change. Changing several types runs one change per type.

Related

  • #272: typed behaviors in @plone/types. The control panel uses plain behavior names until it lands.

Assisted-by: Claude Opus 5.5

Dominant language
JavaScript
Stars
10
Forks
9
Avg merge
4d 7h
Merged PRs (30d)
54

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from plone/aurora

All issues in plone/aurora

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.