@molecule/app-status-summary-solid
Feature · status-summary · App (browser) · v1.1.2 · Apache-2.0
Status-page summary: component grid with operational/degraded/outage badges + incident list
npm install @molecule/app-status-summary-solidHow it works
@molecule/app-status-summary-solid is a ready-made status-summary feature for the app (browser) side. It composes the core interfaces it needs, so it works with whichever providers your app has bonded.
import { StatusSummary } from '@molecule/app-status-summary-solid'
export function Page() {
return (
<StatusSummary
groups={[
{
id: 'api',
name: 'API',
components: [
{ id: 'rest', name: 'REST API', status: 'operational' },
{ id: 'ws', name: 'WebSockets', status: 'degraded' },
],
},
]}
header={<span>Last updated: 2 min ago</span>}
/>
)
}Works with: @molecule/app-solid, @molecule/app-ui, @molecule/app-ui-solid
Reference
Solid status-page summary.
Exports StatusSummary — a grouped component list with colored
operational / degraded / outage badges and an overall banner derived from
the worst child status — plus the ComponentStatus, StatusComponent,
StatusGroup and StatusSummaryProps types.
It is the Solid counterpart of @molecule/app-status-summary-react: the
same props (React names) and the same DOM for the same input.
Auto-generated, AI-first package reference for the molecule.dev ecosystem. It is written to be read by coding agents as much as by people, and is generated from this package's source — edit
src/index.tsJSDoc, not this file.
Quick Start
import { StatusSummary } from '@molecule/app-status-summary-solid'
export function Page() {
return (
<StatusSummary
groups={[
{
id: 'api',
name: 'API',
components: [
{ id: 'rest', name: 'REST API', status: 'operational' },
{ id: 'ws', name: 'WebSockets', status: 'degraded' },
],
},
]}
header={<span>Last updated: 2 min ago</span>}
/>
)
}
Type
feature
Installation
npm install @molecule/app-status-summary-solid @molecule/app-solid @molecule/app-ui @molecule/app-ui-solid solid-js
API
Interfaces
StatusComponent
A single monitored component with its current health status.
interface StatusComponent {
/** Stable identifier, used as the rendered list key. */
id: string
/** Component name. */
name: JSX.Element
/** Current health status. */
status: ComponentStatus
/** Optional sub-label (SLA %, region, etc.). */
subtitle?: JSX.Element
}
StatusGroup
A named group of related StatusComponent entries.
interface StatusGroup {
/** Stable identifier, used as the rendered section key. */
id: string
/** Group name. */
name: JSX.Element
/** The components in this group. */
components: StatusComponent[]
}
StatusSummaryProps
Props for the StatusSummary component.
interface StatusSummaryProps {
/** Grouped components. */
groups: StatusGroup[]
/** Overall summary label (auto-derived if omitted). */
overallStatus?: ComponentStatus
/** Optional header content (last updated time, subscribe button). */
header?: JSX.Element
/** Optional below-the-grid slot — typically a recent-incidents list. */
footer?: JSX.Element
/** Extra classes. */
className?: string
}
Types
ComponentStatus
Union of possible component health states.
type ComponentStatus =
'operational' | 'degraded' | 'partial-outage' | 'major-outage' | 'maintenance'
Functions
StatusSummary(props)
Status-page summary — grouped component list with colored badges and an overall banner derived from the worst child status.
When overallStatus is omitted the banner shows the worst status found
across all components (major-outage > partial-outage > degraded >
maintenance > operational). The banner renders header, the grid renders
one section per group and footer renders below it.
function StatusSummary(props: StatusSummaryProps): JSX.Element
props— Component props (seeStatusSummaryProps).
Returns: The rendered status summary.
Injection Notes
Requirements
Peer dependencies:
@molecule/app-solid^3.5.0 || ^4.0.0@molecule/app-ui^1.4.0@molecule/app-ui-solid^1.1.0solid-js^1.8.0
Runtime Dependencies
-
@molecule/app-solid -
@molecule/app-ui -
@molecule/app-ui-solid -
solid-js -
Must render inside the app's i18n provider and with a ClassMap bond wired (
useTranslation()/getClassMap()throw otherwise). -
When
overallStatusis omitted the banner shows the WORST status found across all components (major-outage > partial-outage > degraded > maintenance > operational). -
Status colors are a fixed hex palette applied via inline styles (green/yellow/orange/red/blue with white text) — they ignore the app theme and cannot be restyled via ClassMap; acceptable for status pages, but know they will not follow a rebrand.
-
Status labels use the
status.operational…status.maintenancei18n keys, which thecommonlocale bond ships in every language; the English fallbacks in code match its en.ts. -
headerrenders inside the overall banner (last-updated stamp, subscribe button);footerrenders below the grid (incident list). Group and component names may be JSX elements.