Components / lifecycle
AuditSummaryCard
Summarizes audit coverage and recorded results.
Generated from @oods/foundry 0.10.1
- Categories
- lifecycle
- Contexts
- detail
- Readiness
react-and-vue
Playground
This component's contract doesn't list typed props, so the playground shows its documented example.
Documented example AuditSummaryCard : mount, Auditable summary counts object records, sorts valid transitioned_at instants descending with stable ties, and shows the latest actor_id. lastN limits recent transition labels, never the total. Invalid timestamps remain counted but cannot become latest; absent values say Not recorded..
The render follows the page's theme switch: light, dark or high contrast. Both frameworks render the same example.
Audit summary
- Transitions
- 2
- Last actor
- user-2
- Last transition
- paused
- active
Audit summary
- Transitions
- 2
- Last actor
- user-2
- Last transition
- paused
- active
Code
The documented example. HTML is the markup the React component renders for it, which @oods/component-styles styles.
import { AuditSummaryCard } from '@oods/components-react';
import '@oods/component-styles/css';
const auditLog = [
{
"to_state": "active",
"transitioned_at": "2026-09-05T12:00:00Z",
"actor_id": "user-1"
},
{
"to_state": "paused",
"transitioned_at": "2026-09-06T12:00:00Z",
"actor_id": "user-2"
}
];
export function Example() {
return (
<AuditSummaryCard
auditLog={auditLog}
/>
);
}Props, slots and events
Contract version 1.1.0. Types are from the React declarations in @oods/components-react.
| Prop | Type | Required | Documented example |
|---|---|---|---|
audit | readonly unknown[] | undefined | no | [{"to_state":"active","transitioned_at":"2026-09-05T12:00:00Z","actor_id":"user-1"},{"to_state":"paused","transitioned_at":"2026-09-06T12:00:00Z","actor_id":"user-2"}] |
last | number | undefined | no | |
title | string | undefined | no | |
show | boolean | undefined | no | |
show | boolean | undefined | no | |
show | boolean | undefined | no |
Slots
none
Events
none
States
empty, summary
Accessibility
- Role
region- How it gets its name
aria-labelon[data-oods-component="AuditSummaryCard"]
Keyboard
The contract lists no keyboard behaviour.
Obligations in the contract
- Named region with a heading and associated summary terms
- Latest valid UTC timestamp has a machine-readable time
Auditable summary counts object records, sorts valid transitioned_at instants descending with stable ties, and shows the latest actor_id. lastN limits recent transition labels, never the total. Invalid timestamps remain counted but cannot become latest; absent values say Not recorded.
Tokens
The token roles this component reads.
surface.paneltext.body
Readiness
The evidence recorded for this component, with its label.
react-and-vue: catalog_list gives this label when the React and Vue components have complete readiness evidence, but the sweep's generated apps don't use the component in both.
| Evidence | React | Vue |
|---|---|---|
| state | implemented-evidence-complete | implemented-evidence-complete |
| versioned contract | passed | passed |
| target implementation | passed | passed |
| package export | passed | passed |
| public declaration | passed | passed |
| dependency closure | passed | passed |
| framework scenario | passed | passed |
| accessibility | verified | verified |
| interaction | not-applicable | not-applicable |
| visual themes | verified | verified |
AuditSummaryCard presents derived content and owns no focusable control or consumer action.
Use your own
You can replace this component with your own React or Vue component. Map it, and generated code imports yours at the exact version you name. A contract report, run in a real browser, lists what your component met, what it didn't, and what wasn't checked.
The component_map call, with the parts in angle brackets yours to fill:
{
"action": "create",
"apply": true,
"externalSystem": "<your design system>",
"externalComponent": "<YourAuditSummaryCard>",
"oodsTraits": [
"Auditable"
],
"substitution": {
"component": "AuditSummaryCard",
"react": {
"package": "<your-package>/react",
"version": "<exact version>",
"export": "<YourAuditSummaryCard>"
},
"vue": {
"package": "<your-package>/vue",
"version": "<exact version>",
"export": "<YourAuditSummaryCard>"
}
}
} How this page was made
Generated at build from the published data, each source with the hash of what was read. The page's manifest.
- Contract:
@oods/component-contracts@0.10.1 componentContracts.AuditSummaryCardsha256:3b0c7bbe6021… - Documented example:
@oods/component-contracts@0.10.1 sharedScenarios AuditSummaryCardsha256:642b656fa505… - Catalog entry (catalog_list):
generated/0.10.1/system/catalog.json AuditSummaryCardsha256:b7b6b046c7fa… - React readiness:
@oods/components-react@0.10.1 readiness AuditSummaryCardsha256:0d0ce678ff2d… - Vue readiness:
@oods/components-vue@0.10.1 readiness AuditSummaryCardsha256:51475b282695… - Prop types:
generated/0.10.1/components/prop-types.json AuditSummaryCardsha256:e423b35a0ce7…