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.

The real AuditSummaryCard, live
React

Audit summary

Transitions
2
Last actor
user-2
Last transition
  1. paused
  2. active
Vue

Audit summary

Transitions
2
Last actor
user-2
Last transition
  1. paused
  2. 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.

Props
PropTypeRequiredDocumented example
auditLog 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"}]
lastN number | undefined no
title string | undefined no
showTransitionCount boolean | undefined no
showLastTransitionTime boolean | undefined no
showLastActor boolean | undefined no

Slots

none

Events

none

States

empty, summary

Accessibility

Role
region
How it gets its name
aria-label on [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.panel
  • text.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.

Readiness evidence
EvidenceReactVue
stateimplemented-evidence-completeimplemented-evidence-complete
versioned contractpassedpassed
target implementationpassedpassed
package exportpassedpassed
public declarationpassedpassed
dependency closurepassedpassed
framework scenariopassedpassed
accessibilityverifiedverified
interactionnot-applicablenot-applicable
visual themesverifiedverified

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.AuditSummaryCard sha256:3b0c7bbe6021…
  • Documented example: @oods/component-contracts@0.10.1 sharedScenarios AuditSummaryCard sha256:642b656fa505…
  • Catalog entry (catalog_list): generated/0.10.1/system/catalog.json AuditSummaryCard sha256:b7b6b046c7fa…
  • React readiness: @oods/components-react@0.10.1 readiness AuditSummaryCard sha256:0d0ce678ff2d…
  • Vue readiness: @oods/components-vue@0.10.1 readiness AuditSummaryCard sha256:51475b282695…
  • Prop types: generated/0.10.1/components/prop-types.json AuditSummaryCard sha256:e423b35a0ce7…