General overview
Status: ✅ Implemented · Redwood template: General overview page (oj-sp-general-overview-page; Redwood files it under Details)
The general overview is the plainest detail page there is: everything worth knowing about one simple business object, read-only, on one screen. A header names the record and carries a strip of key facts; below it, the record’s attributes are grouped into titled sections of label/value pairs, and an optional side column holds secondary context such as related contacts or recent activity. A switcher in the header jumps to another record without leaving the page.
In Mateu this is the GeneralOverview<Row> archetype: you list the records, load one, and return
its overview; Mateu adds the switcher and re-renders in place when the user picks another record.
When to use it
Section titled “When to use it”- To view a simple business object — a requisition, a supplier, an asset — whose information fits in a few sections and needs no tabs.
- When users move between sibling records often and should not go back to a list to do so.
When the object has many categories of related information, use the Foldout or the Item overview; when the user must edit, use an editable view or a CRUD.
Anatomy
Section titled “Anatomy”
| # | Region | What it holds | Mateu piece |
|---|---|---|---|
| 1 | Header | Record title (doubling as the record switcher), subtitle, status badge, a strip of contextual facts | switcherOptions() + load(); an EntityHeader (title, subtitle, badges, facts, metric) returned by overview() |
| 2 | Main slot | The record’s attributes in titled sections of label/value pairs | the rest of overview(): Cards, property rows, StatusLists… |
| 3 | Info slot | Secondary, read-only context beside the main content | info(row, rq) + infoWidth() |
Responsive behaviour
Section titled “Responsive behaviour”On wide screens the main content and the info column sit side by side; on narrow ones they stack
(below 48rem on Vaadin, below the md breakpoint on Redwood) and the main content comes first.
promoteInfoSlot puts the info column on top when stacked. The header and its facts strip stay at
the top in every width.
What you can configure
Section titled “What you can configure”Legend: ✅ supported · 🟡 partial · ❌ not supported · ➖ not applicable
| Element | Mateu piece | Redwood | Notes |
|---|---|---|---|
| Page width | @PageWidth | ✅ | |
| Record title | EntityHeader.title | ✅ | Spectra’s general-overview header |
| Record switcher | switcherOptions(), load(); first record selected by default | ✅ | it is the title (Spectra’s data switcher) |
| Switcher label | recordLabel() | 🟡 | Redwood always labels it “Record” |
| Switcher type-ahead search | — | ❌ | available for header switchers on other pages (RecordSwitcherSupplier) |
| Subtitle | EntityHeader.subtitle | ✅ | |
| Status badge | EntityHeader.badges | ✅ | the first is the template header’s badge, the rest follow the subtitle |
| Contextual facts | EntityHeader.facts, metricLabel/metricValue | ✅ | the metric becomes one more fact |
| Primary / secondary actions | @Toolbar methods | ✅ | the template header’s primary / secondary actions |
| Previous / next record | PeerNavigationSupplier | ❌ | travels on the wire, but the overview header does not draw the arrows |
| Main slot sections | Cards (titled) and any other component | ✅ | each piece is one card; a lone column puts two cards per row |
| Info slot | info(row, rq), infoWidth() | ✅ | the template’s own info slot (its neutral column); infoWidth() is not applied — Spectra sizes it |
promoteInfoSlot | display() → GeneralOverviewDisplay.promoteInfoSlot | ✅ | the template’s own display option |
| Hide the info panel | display() → GeneralOverviewDisplay.info(Toggle.off) | ✅ | |
| Nothing selected | emptyOverview() | 🟡 | shown, but Redwood paints the page as a plain form meanwhile |
| Density | @Compact | ✅ | a general overview is a reflected page, so @Compact is read |
| Display mode (header colour) | — | ❌ |
Building it with Mateu
Section titled “Building it with Mateu”The GeneralOverview<Row> archetype renders a context switcher at the top (a select listing your records) and the selected record’s overview below, re-rendered in place when the user picks another record — no navigation.
@UI("/requisitions")@Title("Requisitions")public class RequisitionOverview extends GeneralOverview<Requisition> {
@Autowired RequisitionRepository repo;
@Override protected List<Option> switcherOptions(HttpRequest rq) { return repo.findAll().stream().map(r -> new Option(r.id(), r.title())).toList(); }
@Override protected Requisition load(String id, HttpRequest rq) { return repo.findById(id); }
@Override protected Component overview(Requisition r, HttpRequest rq) { return VerticalLayout.builder().content(List.of( EntityHeader.builder() // the metadata strip: title + badges + facts + metric .title(r.title()) .badges(List.of(new Chip(r.status(), "success"))) .facts(List.of(new Fact("Business Unit", r.unit()))) .metricLabel("Amount").metricValue(r.amount()) .build(), Card.builder().title(new Text("Details")).build() // … the property cards )).build(); }
@Override protected Component info(Requisition r, HttpRequest rq) { return Card.builder().title(new Text("Recent activity")).content(activityOf(r)).build(); }
@Override protected String recordLabel() { return "Requisition"; }}The first record is selected by default. emptyOverview() customizes what shows when nothing is selected, and recordLabel() labels the switcher (unlabelled by default). Pair the header with Cards, StatusLists or property rows for the record body — or an embedded routed island when the detail needs its own actions.

The info slot
Section titled “The info slot”The Redwood general overview is main + info: the overview, and a contextual side panel with
secondary, read-only context — related contacts, recent activity, notes. Override info(row, rq):
@Overrideprotected Component info(Requisition r, HttpRequest rq) { return Card.builder().content(activityOf(r)).build();}
@Overrideprotected GeneralOverviewDisplay display() { // optional return GeneralOverviewDisplay.defaults().toBuilder().promoteInfoSlot(Toggle.on).build();}On wide pages the panel sits beside the overview (infoWidth(), default 20rem); below 48rem the
two stack. promoteInfoSlot (the Redwood display option of the same name, default off) puts
the info panel ABOVE the overview when they stack. display().info() = off drops the panel.
Composed on the one responsive grid (a ResponsiveGrid template "main info"), so every renderer
draws it.

A switcher in the header of any page
Section titled “A switcher in the header of any page”This archetype’s switcher is a field in the page body. For a record or context switcher in the
page header — on any page, not just this one, with type-ahead search and the
object/context distinction — implement RecordSwitcherSupplier; see
Page templates › record switcher.
Coverage
Section titled “Coverage”| Java | .NET | Python | Vaadin | Redwood | React Native | IntelliJ | |
|---|---|---|---|---|---|---|---|
| Switcher + overview | ✅ | ✅ | ✅ | ✅ | ✅ ¹ | ✅ | ✅ |
info slot | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
promoteInfoSlot | ✅ | ✅ | ✅ | ✅ | ✅ ² | ✅ | ✅ |
¹ When the overview contains an EntityHeader; painted with Spectra’s oj-sp-general-overview-page.
² The template’s own displayOptions.promoteInfoSlot.
In YAML
Section titled “In YAML”A YAML page fills the template with template: {type: GeneralOverviewPage} on its type: Form:
the complementary panel in its info slot, the form’s content as the main slot — see
Page templates. The header is the form’s: its
recordSwitcher (with an optionsSource and a route it jumps between records with no Java),
its kpis as the contextual info, its toolbar as the actions. Sections in the main slot (a Card
with cssClasses: mateu-section and a heading title) get Spectra’s own section header.
type: Formtitle: ${state.name}recordSwitcher: value: ${state.id} optionsSource: {url: "https://swapi.mateu.io/api/planets?size=100", itemsPath: content, valuePath: id, labelPath: name} route: planets/${state._record}kpis: - {label: Climate, value: "${state.climate}"}template: type: GeneralOverviewPage info: - {type: FormField, id: population, label: Population, readOnly: true}content: - type: Card cssClasses: mateu-section title: {type: Text, container: h3, text: Physical characteristics} content: {type: FormField, id: diameter, label: Diameter, readOnly: true}Redwood parameter and slot reference
Section titled “Redwood parameter and slot reference”What the Redwood general-overview-page template exposes, and what Mateu gives you for it. The
canonical page-header elements shared by every template — title, avatar, status badge, @KPI
facts, @Timestamp, peer navigation — are documented once in
Page templates; this table covers what is specific to this one.
Legend: ✅ supported · 🟡 partial · — not supported · ⚪ deliberately out of scope
| Redwood prop / slot | Mateu | |
|---|---|---|
selectContext / selectObject {data, itemText, secondaryText, avatar, icon} | switcherOptions(HttpRequest) returning Options | ✅ |
selectContextValue / selectContextItem (controlled selection) | the public record field, set by the switcher | ✅ |
dataSwitcherType: context | object | the header switcher (RecordSwitcherSupplier, RecordSwitcher.type); this archetype’s body switcher has no type (Redwood paints it as an object switcher) | 🟡 |
displayOptions.switcherSearch (type-ahead inside the switcher) | the header switcher’s RecordSwitcher.searchable; not on this archetype | 🟡 |
displayOptions.promoteInfoSlot | GeneralOverviewDisplay.promoteInfoSlot | ✅ |
displayOptions.contextualInfoLabel / contextualInfoSticky | @KPI facts render, but neither toggle exists | 🟡 |
displayOptions.density: standard | compact | @Compact, set on the view rather than as a template option | 🟡 |
previousItem / nextItem + spPreviousItem / spNextItem | PeerNavigationSupplier → PeerNav; the Redwood overview header does not draw them | 🟡 |
primaryAction / secondaryActions | the page’s @Toolbar methods | ✅ |
badge | the first EntityHeader badge | ✅ |
Slot main | overview(Row, HttpRequest) | ✅ |
Slot info (contextual side panel) | info(Row, HttpRequest); infoWidth() is not applied on Redwood | ✅ |
Slot search | the app-level smart search bar / ⌘K palette, not a page slot | 🟡 |
Slot announcement (aria-live) | UICommand.announce(text) from any action | ✅ |
| Switcher change event | switchRecord — re-renders in place, no navigation | ✅ |
Mateu adds two things the Redwood template has no equivalent for: emptyOverview() (what shows
before anything is selected) and load(String id, HttpRequest) as an explicit data port, so the
switcher never carries the record payload.
Known gaps
Section titled “Known gaps”The element-by-element review, with code references, is in general-overview review. In short:
- Redwood needs an
EntityHeaderin the overview to paint the template at all. - Since 2026-10-24 Redwood paints the archetype with Spectra’s
oj-sp-general-overview-page(header with switcher, badge, facts and actions;mainandinfoslots). - No previous/next arrows on the overview header;
infoWidth()is not applied (Spectra sizes the info column); the switcher label is fixed (“Record”).
demo-admin-panel/.../generaloverview/RequisitionOverview.java (/general-overview-demo, Vaadin); the same class in demo-redwood-showcase (Redwood, same route) and demo-vb RequisitionsOverview (/requisitions). Tests: GeneralOverviewSyncTest.
See it live in the Explorer: General overview · General overview page