# Components

> React components of the SDK - the Command Center panel, chat, the workflow canvas and its live console, task views, task notifications and knowledge resource editors.

Source: https://docs.sommatic.ai/en/sdks/react/components/ (updated 2026-11-26)

These are the same components the Sommatic AI portal uses. Mount them inside the providers your app already has
(`AuthProvider` from Veripass and, for the Command Center pieces, `CommandCenterProvider`), and they read and write
through the SDK's [services](https://docs.sommatic.ai/en/sdks/react/services.md).

## Command Center and chat

| Component                                                                                                    | What it shows                                                                                                                                               |
| ------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `CommandCenterSidebar`                                                                                       | The right-side panel. Props: `topOffset` (pixels below your top bar) and `renderAppEmbed`. It opens and closes on the `sommatic:open-command-center` event. |
| `CommandCenterTrigger`                                                                                       | A button that opens and closes the panel. Props: `isOpen`, `toggleSidebar`, `footerSelector`.                                                               |
| `CommandCenterChat`                                                                                          | The conversation inside the panel: header, messages and input.                                                                                              |
| `AppEmbedCard`, `AppEscalatedCard`                                                                           | An App Engine app shown inside the conversation, compact or enlarged.                                                                                       |
| `CognitiveEntryManager`, `CognitiveEntry`, `ChatBubble`, `SystemResponse`, `ThoughtProcess`, `AppOutputCard` | The building blocks of the conversation: the input, messages, answers, the model's reasoning and app output.                                                |

See [Add the Command Center to your app](https://docs.sommatic.ai/en/command-center/integration.md) for the full wiring.

## Workflows

| Component                              | What it shows                                                                                                                                                                      |
| -------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `FlowsManager`                         | The workflow canvas for one flow definition. Prop: `flowId`.                                                                                                                       |
| `FlowsToolbar`, `FlowsNodeConfigModal` | The canvas toolbar and the node configuration dialog.                                                                                                                              |
| `FlowsSseConsole`                      | The live console of a test run: every event of the run stream, filterable, with a prompt to inspect them. Props: `open`, `maximized`, `onToggleMaximize`, `onClose`, `controller`. |

`FlowsSseConsole` takes its `controller` from the `useSseConsole` hook:

```javascript
import { FlowsSseConsole, useSseConsole } from '@sommatic/react-sdk';

function RunConsole({ open, onClose }) {
  const controller = useSseConsole();
  return <FlowsSseConsole open={open} onClose={onClose} controller={controller} />;
}
```

## Tasks

| Component                                                                                    | What it shows                                                                                                                                                                   |
| -------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `TasksSidebar`                                                                               | The person's inbox grouped by urgency (overdue, due soon, critical). Props: `basePath`, `isCondensed`, `pollIntervalMs`, `pageSize`.                                            |
| `TaskDetailWorkspace`                                                                        | A task in full: header and the overview, evidence, output and activity tabs. Receives the `task` and callbacks such as `onTransition`, `onComplete`, `onOpenApp` and `onClose`. |
| `TaskDetailHeader`, `TaskOverviewTab`, `TaskEvidenceTab`, `TaskOutputTab`, `TaskActivityTab` | The parts of that view, to compose your own.                                                                                                                                    |
| `TaskOutputForm`                                                                             | The form generated from the task's required output schema.                                                                                                                      |
| `TaskManagerQuickCreate`, `TaskManagerEdit`, `SchemaFieldBuilder`, `EvidenceBlockBuilder`    | Create and edit tasks, their output fields and evidence blocks.                                                                                                                 |
| `HitlApprovalGate`, `HitlDynamicFields`                                                      | The approval view of a task that carries an approval gate, and its dynamic fields.                                                                                              |

## Notifications

| Component               | What it shows                                                                                                                                             |
| ----------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `TaskNotificationToast` | A toast for each `sommatic::task-notification` event, rate-limited and filtered by the person's notification preferences. Prop: `onNavigate({ taskId })`. |
| `TaskQuickViewOverlay`  | A quick view of a task, opened with the `sommatic::open-task` event.                                                                                      |

The task notifications come from [`useEventStream`](https://docs.sommatic.ai/en/sdks/react/hooks.md) (real-time assignments) and
`useTaskSLAMonitor` (deadlines about to pass or passed). Mount the toast once in your layout:

```javascript
<TaskNotificationToast onNavigate={({ taskId }) => navigate(`/tasks?selected=${taskId}`)} />
<TaskQuickViewOverlay />
```

## Knowledge resources and shared pieces

| Component                                                                                                                                              | What it shows                                                                                                                                                                          |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `CognitiveResourceEditor`                                                                                                                              | The editor of a knowledge resource, with its header, context, preview and validation panels and its overview, content, governance, usage and bindings tabs (each exported on its own). |
| `RichTextResourceEditor`, `ListResourceEditor`, `TaxonomyResourceEditor`, `DocumentResourceEditor`, `ReferenceResourceEditor`, `DatasetResourceEditor` | The content editor for each kind of knowledge resource.                                                                                                                                |
| `CognitiveResourceDetail`, `CognitiveResourceQuickCreate`                                                                                              | The read view and the quick creation form, with their cards.                                                                                                                           |
| `KnowledgeResourceTypeBadge`, `KnowledgeResourceStatusBadge`                                                                                           | Badges for the type and status of a resource.                                                                                                                                          |
| `ProjectPicker`                                                                                                                                        | A project selector. Props: `organizationId`, `identity`, `value`, `valueSnapshot`, `onChange`, `disabled`.                                                                             |

> **Note: Styles come with the package**
>
> Importing anything from `@sommatic/react-sdk` loads its stylesheet and fonts. The components use Material UI, so
> they follow the MUI theme of your app.

## Next steps

- [Hooks](https://docs.sommatic.ai/en/sdks/react/hooks.md): The hooks behind these components.
- [Human in the loop](https://docs.sommatic.ai/en/human-in-the-loop.md): How tasks work and when workflows create them.
