One DMARC dashboard,
three depths of customization
The same library, the same server and the same (illustrative) data, mounted three ways. Each page below is one
Web Component registered with defineWebComponent — what differs is how much of the layout the
wrapper takes into its own hands.
Restyle
The stock dashboard with a theme.css: other colours, a serif typeface, squarer corners, its own name.
- no React beyond
<DataClubDmarc /> - ~20 lines + a stylesheet
- the AI analyst, where one is configured, with no code
Extend
The same dashboard plus the wrapper's own pieces, passed through slot props.
- an extra tab and Overview cards, fed by the wrapper's own endpoints
- two panels of its own in the trend chart
- header link, footer, its own side panel
Compose
A different page built from the Dmarc.* primitives: a one-screen summary with a banner and no tabs.
- the layout file stays under 80 lines
- every card still follows the shared filter
- places the AI analyst itself
The AI analyst
Where an analyst is configured for an environment, the dashboards get an AI analyst button in the header that opens a chat in the side panel. The chat is a separate AI Hub deployment that answers questions by querying this same demo database — live, and read-only: it signs in as a database role that can read a published set of views and write nothing. Tier 1 shows it without a line of code; Tier 2 keeps its own Notes panel, because a wrapper's own panel wins; Tier 3 places it itself. Where no analyst is configured (PR previews, and locally unless you start one) there is no button and no panel. Its answers come from a language model: check a surprising number against the dashboard.