# zidane-ui/channels

Import: `import { … } from 'zidane-ui/channels'`. Source: [ui/src/channels/index.ts](https://github.com/Tahul/zidane/blob/main/ui/src/channels/index.ts).

## Components

### `AgentIdentityCard`

Component.

`zidane-ui/channels`: the channels area (docs/CHANNELS.md). Settings › Agent › Channels (`ChannelsSettingsSection`:
the org's Agent, the host's connections, live, and adding a Slack app or a GitHub App with `ConnectionSetupDialog`), a
project's identity in Slack (`AgentIdentityCard`), Project
settings › Channels (`ProjectChannelsSection`, `BindingEditorDialog`, `HeldRepliesList`), a project's readiness checklist
(`ReadinessList`, `ProjectReadinessCard`, `ReadinessGate`), the test sessions' badge (`TestSessionBanner`) and
each person's open alerts (`ChannelAlertsList`), over `ChannelsProvider`.

```ts
function AgentIdentityCard(props: AgentIdentityCardProps): Element
```

**Parameters**

- `props` (`AgentIdentityCardProps`): The [`AgentIdentityCardProps`](https://zidane.si/docs/reference/ui-channels.md#AgentIdentityCardProps).

**Returns** `Element`

**Props**

- `className?` (`string`): Extra classes on the root.
- `onSave?` (`(next: AgentIdentity) => Promise<unknown>`): Saves a changed identity (trimmed; empty fields absent). Absent: read-only.
- `previewText?` (`string`): The sample post's text. Default: a short reply.
- `readOnly?` (`boolean`): Shows the identity without editing it, even with `onSave`.
- `style?` (`CSSProperties`): Inline styles on the root.
- `title?` (`ReactNode`): The section's title. Default: Identity.
- `value` (`AgentIdentity`): The identity as saved. A new value replaces the fields.

Source: [ui/src/channels/AgentIdentityCard.tsx:62](https://github.com/Tahul/zidane/blob/main/ui/src/channels/AgentIdentityCard.tsx#L62)

### `BindingEditorDialog`

Component.

The binding editor.

```ts
function BindingEditorDialog(props: BindingEditorDialogProps): Element
```

**Parameters**

- `props` (`BindingEditorDialogProps`): The [`BindingEditorDialogProps`](https://zidane.si/docs/reference/ui-channels.md#BindingEditorDialogProps).

**Returns** `Element`

**Props**

- `binding?` (`ChannelBinding`): The binding to change. Absent: a new one.
- `onClose` (`() => void`): Closes the dialog.
- `projectId` (`string`): The project.
- `projectName` (`string`): Its name: the posts' name by default.

Source: [ui/src/channels/BindingEditorDialog.tsx:135](https://github.com/Tahul/zidane/blob/main/ui/src/channels/BindingEditorDialog.tsx#L135)

### `ChannelAlertsList`

Component.

The person's open alerts, oldest first. Renders nothing without `ChannelsHost.alerts`, before the first read,
while none is open, and when the background service is off: the section beside it says so once.

```ts
function ChannelAlertsList(props: ChannelAlertsListProps): Element | null
```

**Parameters**

- `props` (`ChannelAlertsListProps`): The [`ChannelAlertsListProps`](https://zidane.si/docs/reference/ui-channels.md#ChannelAlertsListProps).

**Returns** `Element | null`

**Props**

- `className?` (`string`): Extra classes on the root.
- `onOpenProject?` (`(projectId: string) => void`): Opens a project's settings, for the fixes that are the project's own. Absent: those fixes show no button.
- `projectId?` (`string`): Shows only this project's alerts. Absent: all of them.
- `style?` (`CSSProperties`): Inline styles on the root.

Source: [ui/src/channels/ChannelAlertsList.tsx:72](https://github.com/Tahul/zidane/blob/main/ui/src/channels/ChannelAlertsList.tsx#L72)

### `ChannelsFailure`

Component.

A failure as a notice: the message worded through labels, the host's words as its detail, and how to turn the
channels on when they don't run here.

```ts
function ChannelsFailure(props: ChannelsFailureProps): Element
```

**Parameters**

- `props` (`ChannelsFailureProps`): The [`ChannelsFailureProps`](https://zidane.si/docs/reference/ui-channels.md#ChannelsFailureProps).

**Returns** `Element`

**Props**

- `className?` (`string`): Extra classes on the root.
- `compact?` (`boolean`): One tight line.
- `error` (`ChannelsError`): What failed.
- `message?` (`string`): The message; default: the failure's kind worded.
- `onRetry?` (`() => void`): Retry, when it can be tried again.

Source: [ui/src/channels/channels-parts.tsx:105](https://github.com/Tahul/zidane/blob/main/ui/src/channels/channels-parts.tsx#L105)

### `ChannelsProvider`

Component.

Provides a [`ChannelsHost`](https://zidane.si/docs/reference/ui-channels-headless.md#ChannelsHost) and optional label overrides to the channels components below it.

```ts
function ChannelsProvider(props: ChannelsProviderProps): Element
```

**Parameters**

- `props` (`ChannelsProviderProps`): The `host`, optional `labels` and the `children`.

**Returns** `Element`

**Props**

- `children` (`ReactNode`): The components that read from `host`.
- `host` (`ChannelsHost`): The host the channels components read from and act through.
- `labels?` (`Partial<{ cancel: string; channelsAccess: string; channelsAccessChoice: (choice: AccessChoice) => string; channelsAccessExplain: (choice: AccessChoice) => string; channelsAccessFor: (who: AccessFor) => 'Project members' | 'Everyone else'; channelsAccessOwners: string; channelsAccessOwnersRow: string; channelsAccessOwnersValue: string; channelsAddBinding: string; channelsAddGithub: string; channelsAddSlack: string; channelsAdminsOnly: string; channelsAdvanced: string; channelsAgent: string; channelsAgentAnswers: string; channelsAgentAnswersNone: string; channelsAgentHint: string; channelsAgentLoadFailed: string; channelsAgentNone: string; channelsAgentOff: string; channelsAgentOpen: string; channelsAgentRowHint: string; channelsAgentSwitch: (name: string) => string; channelsAgo: (duration: string) => string; channelsAlertIcon: string; channelsAlerts: string; channelsAlertsLoadFailed: string; channelsAppId: string; channelsAppToken: string; channelsAppTokenHint: string; channelsBindingOn: (what: string) => string; channelsBindingsLoadFailed: string; channelsBotToken: string; channelsBotTokenHint: string; channelsBudget: string; channelsBudgetHint: string; channelsBudgetInvalid: string; channelsBudgetPlaceholder: string; channelsChannel: string; channelsChannelBound: (name: string) => string; channelsChannelId: string; channelsChannelIdHint: string; channelsChannelPick: string; channelsChannelPrivate: (name: string) => string; channelsClientId: string; channelsClientSecret: string; channelsConcurrent: string; channelsConcurrentHint: string; channelsConnection: string; channelsConnections: string; channelsConnectionTrouble: (provider: ChannelConnectionProvider) => string; channelsContinueSetup: string; channelsCreateApp: (provider: ChannelConnectionProvider) => string; channelsCreateHint: (provider: ChannelConnectionProvider) => string; channelsCredentialsHint: string; channelsDefaultAsk: string; channelsDefaultFor: (name: string) => string; channelsDefaults: string; channelsDefaultsHint: string; channelsDisable: string; channelsDone: string; channelsDraft: string; channelsDraftHint: string; channelsEdit: string; channelsEditorEdit: string; channelsEditorNew: string; channelsEnable: string; channelsEnabled: string; channelsEnabledHint: string; channelsEnvironmentLocal: string; channelsEnvironmentLocalHint: string; channelsEnvironmentWorktree: string; channelsEnvironmentWorktreeHint: string; channelsFailed: (error: ChannelsError) => string; channelsFewerOptions: string; channelsFixFailed: string; channelsFor: (duration: string) => string; channelsGateAcknowledge: string; channelsGateEnable: string; channelsGateLeft: (count: number) => string; channelsGateTitle: string; channelsGithubNeedsHttps: string; channelsGithubOrg: string; channelsGithubOrgHint: string; channelsHandoff: string; channelsHandoffBadge: string; channelsHandoffHint: string; channelsHealth: (health: ConnectionHealth) => string; channelsHeld: string; channelsHeldAsIsMessage: string; channelsHeldAsIsTitle: string; channelsHeldDiscard: string; channelsHeldDiscardMessage: string; channelsHeldDiscardTitle: string; channelsHeldFinding: (kind: CredentialKind) => string; channelsHeldHint: string; channelsHeldLoadFailed: string; channelsHeldSendAsIs: string; channelsHeldSendRedacted: string; channelsHeldWhy: (findings: readonly string[]) => string; channelsHideChannels: string; channelsIdentity: string; channelsIdentityCard: string; channelsIdentityCardHint: string; channelsIdentityCardIconHint: string; channelsIdentityDescription: string; channelsIdentityDescriptionCount: (count: number, max: number) => string; channelsIdentityDescriptionHint: string; channelsIdentityDiscard: string; channelsIdentityIcon: string; channelsIdentityIconHint: string; channelsIdentityIconInvalid: string; channelsIdentityName: string; channelsIdentityNeedName: string; channelsIdentityOverrideHint: string; channelsIdentitySaveFailed: string; channelsInChannels: string; channelsInNoChannels: string; channelsInstall: string; channelsInstallHint: string; channelsLimitInvalid: string; channelsLimits: string; channelsLoadFailed: string; channelsLock: string; channelsLockHint: string; channelsLockOff: string; channelsMatch: (kind: ChannelMatchKind, value?: string) => string; channelsMore: (name: string) => string; channelsMoreOptions: string; channelsName: string; channelsNameHint: string; channelsNamePlaceholder: string; channelsNeedChannel: string; channelsNeedCredentials: string; channelsNeedName: string; channelsNoBindings: string; channelsNoConnections: string; channelsNoConnectionsHint: string; channelsNoConnectionsShared: string; channelsNoConnectionsSharedHint: string; channelsNoDefaults: string; channelsPerMember: string; channelsPerMemberHint: string; channelsPickConnection: string; channelsPreview: string; channelsPreviewApp: string; channelsPreviewNow: string; channelsPreviewText: string; channelsProfile: string; channelsProfileDefault: string; channelsProvider: (provider: ChannelConnectionProvider) => string; channelsReadiness: string; channelsReadinessCount: (severity: ReadinessSeverity, count: number) => string; channelsReadinessLoadFailed: string; channelsReadinessReady: string; channelsReadOnly: string; channelsReady: (name: string) => string; channelsReadyNext: string; channelsReadyShareHint: string; channelsReadyTeam: (name: string, team: string) => string; channelsRemove: string; channelsRemoveBindingMessage: string; channelsRemoveBindingTitle: (what: string) => string; channelsRemoveForce: string; channelsRemoveForceMessage: string; channelsRemoveForceTitle: string; channelsRemoveMessage: string; channelsRemoveTitle: (name: string) => string; channelsReplaceContinue: string; channelsReplaceIntro: (name: string) => string; channelsReplaceMoves: string; channelsReplaceOtherWorkspace: string; channelsReplaceRemoves: (name: string) => string; channelsReplaceSameWorkspace: string; channelsReplaceTitle: (name: string) => string; channelsRepo: string; channelsRepoPlaceholder: string; channelsRiskApprovalsOff: string; channelsRiskFull: string; channelsRiskGuest: string; channelsRowGuests: (access: string) => string; channelsRowMembers: (access: string) => string; channelsRuns: string; channelsRunsOn: string; channelsRunsOnAutomatic: string; channelsRunsOnAutomaticNow: (place: string) => string; channelsRunsOnHint: string; channelsRunsOnHost: string; channelsRunsOnIsolation: string; channelsRunsOnMachine: (name: string, server: string) => string; channelsRunsOnMenu: string; channelsRunsOnNowhere: string; channelsRunsOnOffline: string; channelsRunsOnOfflineWaits: (name: string) => string; channelsRunsOnPick: (place: string, worktree: boolean) => string; channelsRunsOnServer: string; channelsRunsOnServerOff: (server: string) => string; channelsSave: string; channelsSaveCredentials: string; channelsSaveFailed: string; channelsSearchChannels: string; channelsSearchConnections: string; channelsSearchNone: string; channelsSection: string; channelsSectionHint: string; channelsSetupStep: (provider: ChannelConnectionProvider, step: ChannelSetupStep) => string; channelsSetupTitle: (provider: ChannelConnectionProvider) => string; channelsSeverity: (severity: ReadinessSeverity) => string; channelsShare: string; channelsShareAll: string; channelsShareChosen: string; channelsSharedAll: string; channelsSharedSome: (count: number) => string; channelsShareNone: string; channelsShareTitle: (name: string) => string; channelsShowChannels: string; channelsSigningSecret: string; channelsSince: (when: string) => string; channelsStepCreate: string; channelsStepOf: (step: number, total: number, name: string) => string; channelsSteps: string; channelsTestAs: (as: TestAsKind) => 'As a project member' | 'As a guest'; channelsTestAsGuest: string; channelsTestAsGuestOff: string; channelsTestAsMember: string; channelsTestBadge: string; channelsTestFailed: string; channelsTestHint: string; channelsThrough: (name: string) => string; channelsTransport: string; channelsTransportHttp: string; channelsTransportHttpHint: string; channelsTransportSocket: string; channelsTransportSocketHint: string; channelsTransportSocketOnly: string; channelsUnavailableHint: string; channelsWaitingGithub: string; channelsWaitingSlack: string; channelsWhat: string; channelsWhatHint: (kind: ChannelMatchKind) => string; channelsWhatKind: (kind: ChannelMatchKind) => string; channelsYourSlackId: string; channelsYourSlackIdHint: string; channelsYourSlackIdInvalid: string; copiedShort: string; retry: string }>`): Overrides for the channels components' strings. Keys you leave out keep the default English label.

Source: [ui/src/channels/ChannelsProvider.tsx:35](https://github.com/Tahul/zidane/blob/main/ui/src/channels/ChannelsProvider.tsx#L35)

### `ChannelsSettingsSection`

Component.

The Channels page's body.

```ts
function ChannelsSettingsSection(props: ChannelsSettingsSectionProps): Element
```

**Parameters**

- `props` (`ChannelsSettingsSectionProps`): The [`ChannelsSettingsSectionProps`](https://zidane.si/docs/reference/ui-channels.md#ChannelsSettingsSectionProps).

**Returns** `Element`

**Props**

- `className?` (`string`): Extra classes on the root.
- `now?` (`number`): The moment times are shown against. Default: each render's.
- `style?` (`CSSProperties`): Inline styles on the root.

Source: [ui/src/channels/ChannelsSettingsSection.tsx:68](https://github.com/Tahul/zidane/blob/main/ui/src/channels/ChannelsSettingsSection.tsx#L68)

### `ConnectionSetupDialog`

Component.

The Add connection dialog. Renders a refusal without `ChannelsHost.connections.create`.

```ts
function ConnectionSetupDialog(props: ConnectionSetupDialogProps): Element
```

**Parameters**

- `props` (`ConnectionSetupDialogProps`): The [`ConnectionSetupDialogProps`](https://zidane.si/docs/reference/ui-channels.md#ConnectionSetupDialogProps).

**Returns** `Element`

**Props**

- `connectionId?` (`string`): A connection still being set up: the dialog goes on from its step. Absent: a new one.
- `onClose` (`() => void`): Closes the dialog.
- `provider` (`ChannelConnectionProvider`): Which provider a new connection is for.

Source: [ui/src/channels/ConnectionSetupDialog.tsx:93](https://github.com/Tahul/zidane/blob/main/ui/src/channels/ConnectionSetupDialog.tsx#L93)

### `HeldRepliesList`

Component.

The held replies of a project, oldest first. Renders nothing without `ChannelsHost.held`, and while none waits.

```ts
function HeldRepliesList(props: HeldRepliesListProps): Element | null
```

**Parameters**

- `props` (`HeldRepliesListProps`): The [`HeldRepliesListProps`](https://zidane.si/docs/reference/ui-channels.md#HeldRepliesListProps).

**Returns** `Element | null`

**Props**

- `className?` (`string`): Extra classes on the root.
- `now?` (`number`): Now, Unix ms, for the replies' ages. Default: when the list was last read.
- `projectId` (`string`): The project.
- `style?` (`CSSProperties`): Inline styles on the root.
- `where?` (`(post: HeldPost) => string | undefined`): Where a reply was going, worded (`#ops`, Direct messages). Absent: not said.

Source: [ui/src/channels/HeldRepliesList.tsx:47](https://github.com/Tahul/zidane/blob/main/ui/src/channels/HeldRepliesList.tsx#L47)

### `ProjectChannelsSection`

Component.

The Channels section of a project's settings. Renders nothing without `ChannelsHost.bindings`.

```ts
function ProjectChannelsSection(props: ProjectChannelsSectionProps): Element | null
```

**Parameters**

- `props` (`ProjectChannelsSectionProps`): The [`ProjectChannelsSectionProps`](https://zidane.si/docs/reference/ui-channels.md#ProjectChannelsSectionProps).

**Returns** `Element | null`

**Props**

- `canManage` (`boolean`): The person is an owner or a maintainer: they change the bindings.
- `className?` (`string`): Extra classes on the root.
- `onOpenProject?` (`() => void`): Opens the project's settings, for the checklist's fixes (absent inside them).
- `projectId` (`string`): The project.
- `projectName` (`string`): Its name: the posts' name when a binding sets none.
- `style?` (`CSSProperties`): Inline styles on the root.

Source: [ui/src/channels/ProjectChannelsSection.tsx:101](https://github.com/Tahul/zidane/blob/main/ui/src/channels/ProjectChannelsSection.tsx#L101)

### `ProjectReadinessCard`

Component.

The project home's readiness card: one line of counts that expands to the list. Renders nothing without
`ChannelsHost.readiness`, before the first read, and while nothing is left to do.

```ts
function ProjectReadinessCard(props: ProjectReadinessCardProps): Element | null
```

**Parameters**

- `props` (`ProjectReadinessCardProps`): The [`ProjectReadinessCardProps`](https://zidane.si/docs/reference/ui-channels.md#ProjectReadinessCardProps).

**Returns** `Element | null`

**Props**

- `className?` (`string`): Extra classes on the root.
- `onOpenProject?` (`() => void`): Opens the project's settings (the fixes that are the project's own).
- `projectId` (`string`): The project.
- `style?` (`CSSProperties`): Inline styles on the root.

Source: [ui/src/channels/ReadinessChecklist.tsx:183](https://github.com/Tahul/zidane/blob/main/ui/src/channels/ReadinessChecklist.tsx#L183)

### `ReadinessGate`

Component.

The blockers before a binding turns on: each with its fix and a "go on without it" box.

```ts
function ReadinessGate(props: ReadinessGateProps): Element
```

**Parameters**

- `props` (`ReadinessGateProps`): The [`ReadinessGateProps`](https://zidane.si/docs/reference/ui-channels.md#ReadinessGateProps).

**Returns** `Element`

**Props**

- `acknowledged` (`ReadonlySet<string>`): The ids acknowledged so far.
- `blockers` (`readonly ReadinessItem[]`): The blockers not fixed yet (`bindingBlockers`), most serious first.
- `onAcknowledge` (`(id: string, on: boolean) => void`): Acknowledges (or takes back) one blocker.
- `onOpenProject?` (`() => void`): Opens the project's settings.
- `projectId` (`string`): The project.
- `titled?` (`boolean`): Shows the gate's title over it: inside a form, where no dialog title names it.

Source: [ui/src/channels/ReadinessChecklist.tsx:234](https://github.com/Tahul/zidane/blob/main/ui/src/channels/ReadinessChecklist.tsx#L234)

### `ReadinessGateDialog`

Component.

The step before a binding turns on: the project's blockers, live as fixes land, each fixed or acknowledged.

```ts
function ReadinessGateDialog(props: ReadinessGateDialogProps): Element
```

**Parameters**

- `props` (`ReadinessGateDialogProps`): The [`ReadinessGateDialogProps`](https://zidane.si/docs/reference/ui-channels.md#ReadinessGateDialogProps).

**Returns** `Element`

**Props**

- `onClose` (`() => void`): Closes the dialog.
- `onEnable` (`() => Promise<unknown>`): Turns the binding on.
- `onOpenProject?` (`() => void`): Opens the project's settings, for the fixes.
- `projectId` (`string`): The project.
- `what` (`string`): What the binding takes, worded (the dialog's description).

Source: [ui/src/channels/ProjectChannelsSection.tsx:341](https://github.com/Tahul/zidane/blob/main/ui/src/channels/ProjectChannelsSection.tsx#L341)

### `ReadinessList`

Component.

A project's checklist, most serious first. Renders nothing without `ChannelsHost.readiness`.

```ts
function ReadinessList(props: ReadinessListProps): Element | null
```

**Parameters**

- `props` (`ReadinessListProps`): The [`ReadinessListProps`](https://zidane.si/docs/reference/ui-channels.md#ReadinessListProps).

**Returns** `Element | null`

**Props**

- `className?` (`string`): Extra classes on the root.
- `onOpenProject?` (`() => void`): Opens the project's settings. Absent: fixes that open them show no button (already there).
- `projectId` (`string`): The project.
- `style?` (`CSSProperties`): Inline styles on the root.

Source: [ui/src/channels/ReadinessChecklist.tsx:147](https://github.com/Tahul/zidane/blob/main/ui/src/channels/ReadinessChecklist.tsx#L147)

### `ShareConnectionDialog`

Component.

Which projects a connection serves: every one, or the ones chosen (from the host's projects).

```ts
function ShareConnectionDialog(props: ShareConnectionDialogProps): Element
```

**Parameters**

- `props` (`ShareConnectionDialogProps`): The [`ShareConnectionDialogProps`](https://zidane.si/docs/reference/ui-channels.md#ShareConnectionDialogProps).

**Returns** `Element`

**Props**

- `connection` (`ChannelConnection`): The connection.
- `onClose` (`() => void`): Closes the dialog.

Source: [ui/src/channels/ChannelsSettingsSection.tsx:271](https://github.com/Tahul/zidane/blob/main/ui/src/channels/ChannelsSettingsSection.tsx#L271)

### `SlackMessagePreview`

Component.

A message as Slack draws a bot's post: the picture, the name in bold with the app tag, the time, the text. It sits
in a well of its own, so it reads as a sample and needs no title.

```ts
function SlackMessagePreview(props: SlackMessagePreviewProps): Element
```

**Parameters**

- `props` (`SlackMessagePreviewProps`): The [`SlackMessagePreviewProps`](https://zidane.si/docs/reference/ui-channels.md#SlackMessagePreviewProps).

**Returns** `Element`

**Props**

- `className?` (`string`): Extra classes on the root.
- `iconUrl?` (`string`): An https picture; absent: the name's first letter.
- `name` (`string`): The name the post shows.
- `style?` (`CSSProperties`): Inline styles on the root.
- `text` (`ReactNode`): The message.

Source: [ui/src/channels/channels-parts.tsx:196](https://github.com/Tahul/zidane/blob/main/ui/src/channels/channels-parts.tsx#L196)

### `TestSessionBanner`

Component.

The Test badge and the Slack-look preview of a test session.

```ts
function TestSessionBanner(props: TestSessionBannerProps): Element | null
```

**Parameters**

- `props` (`TestSessionBannerProps`): The [`TestSessionBannerProps`](https://zidane.si/docs/reference/ui-channels.md#TestSessionBannerProps).

**Returns** `Element | null`

**Props**

- `className?` (`string`): Extra classes on the root.
- `latestReply?` (`string`): The session's latest reply, for the preview. Absent: a sample line.
- `sessionId` (`string`): The session shown.
- `style?` (`CSSProperties`): Inline styles on the root.

Source: [ui/src/channels/TestSessionBanner.tsx:30](https://github.com/Tahul/zidane/blob/main/ui/src/channels/TestSessionBanner.tsx#L30)

## Functions

### `useChannelsHost`

Function.

The nearest [`ChannelsHost`](https://zidane.si/docs/reference/ui-channels-headless.md#ChannelsHost); an empty one outside a provider.

```ts
function useChannelsHost(): ChannelsHost
```

**Returns** `ChannelsHost`

Source: [ui/src/channels/context.ts:15](https://github.com/Tahul/zidane/blob/main/ui/src/channels/context.ts#L15)

## Interfaces

### `AgentIdentity`

Interface.

A project's identity in Slack.

```ts
interface AgentIdentity
```

**Properties**

- `description?` (`string`): What it is for, at most 500 characters.
- `iconUrl?` (`string`): An https picture. Absent: the app's icon.
- `name` (`string`): The name its posts show.

Source: [ui/src/channels/AgentIdentityCard.tsx:18](https://github.com/Tahul/zidane/blob/main/ui/src/channels/AgentIdentityCard.tsx#L18)

### `AgentIdentityCardProps`

Interface.

Props for [`AgentIdentityCard`](https://zidane.si/docs/reference/ui-channels.md#AgentIdentityCard).

```ts
interface AgentIdentityCardProps
```

**Properties**

- `className?` (`string`): Extra classes on the root.
- `onSave?` (`(next: AgentIdentity) => Promise<unknown>`): Saves a changed identity (trimmed; empty fields absent). Absent: read-only.
- `previewText?` (`string`): The sample post's text. Default: a short reply.
- `readOnly?` (`boolean`): Shows the identity without editing it, even with `onSave`.
- `style?` (`CSSProperties`): Inline styles on the root.
- `title?` (`ReactNode`): The section's title. Default: Identity.
- `value` (`AgentIdentity`): The identity as saved. A new value replaces the fields.

Source: [ui/src/channels/AgentIdentityCard.tsx:28](https://github.com/Tahul/zidane/blob/main/ui/src/channels/AgentIdentityCard.tsx#L28)

### `BindingEditorDialogProps`

Interface.

Props for [`BindingEditorDialog`](https://zidane.si/docs/reference/ui-channels.md#BindingEditorDialog).

```ts
interface BindingEditorDialogProps
```

**Properties**

- `binding?` (`ChannelBinding`): The binding to change. Absent: a new one.
- `onClose` (`() => void`): Closes the dialog.
- `projectId` (`string`): The project.
- `projectName` (`string`): Its name: the posts' name by default.

Source: [ui/src/channels/BindingEditorDialog.tsx:35](https://github.com/Tahul/zidane/blob/main/ui/src/channels/BindingEditorDialog.tsx#L35)

### `ChannelAlertsListProps`

Interface.

Props for [`ChannelAlertsList`](https://zidane.si/docs/reference/ui-channels.md#ChannelAlertsList).

```ts
interface ChannelAlertsListProps
```

**Properties**

- `className?` (`string`): Extra classes on the root.
- `onOpenProject?` (`(projectId: string) => void`): Opens a project's settings, for the fixes that are the project's own. Absent: those fixes show no button.
- `projectId?` (`string`): Shows only this project's alerts. Absent: all of them.
- `style?` (`CSSProperties`): Inline styles on the root.

Source: [ui/src/channels/ChannelAlertsList.tsx:22](https://github.com/Tahul/zidane/blob/main/ui/src/channels/ChannelAlertsList.tsx#L22)

### `ChannelsFailureProps`

Interface.

Props for [`ChannelsFailure`](https://zidane.si/docs/reference/ui-channels.md#ChannelsFailure).

```ts
interface ChannelsFailureProps
```

**Properties**

- `className?` (`string`): Extra classes on the root.
- `compact?` (`boolean`): One tight line.
- `error` (`ChannelsError`): What failed.
- `message?` (`string`): The message; default: the failure's kind worded.
- `onRetry?` (`() => void`): Retry, when it can be tried again.

Source: [ui/src/channels/channels-parts.tsx:86](https://github.com/Tahul/zidane/blob/main/ui/src/channels/channels-parts.tsx#L86)

### `ChannelsProviderProps`

Interface.

Props for [`ChannelsProvider`](https://zidane.si/docs/reference/ui-channels.md#ChannelsProvider).

```ts
interface ChannelsProviderProps
```

**Properties**

- `children` (`ReactNode`): The components that read from `host`.
- `host` (`ChannelsHost`): The host the channels components read from and act through.
- `labels?` (`Partial<{ cancel: string; channelsAccess: string; channelsAccessChoice: (choice: AccessChoice) => string; channelsAccessExplain: (choice: AccessChoice) => string; channelsAccessFor: (who: AccessFor) => 'Project members' | 'Everyone else'; channelsAccessOwners: string; channelsAccessOwnersRow: string; channelsAccessOwnersValue: string; channelsAddBinding: string; channelsAddGithub: string; channelsAddSlack: string; channelsAdminsOnly: string; channelsAdvanced: string; channelsAgent: string; channelsAgentAnswers: string; channelsAgentAnswersNone: string; channelsAgentHint: string; channelsAgentLoadFailed: string; channelsAgentNone: string; channelsAgentOff: string; channelsAgentOpen: string; channelsAgentRowHint: string; channelsAgentSwitch: (name: string) => string; channelsAgo: (duration: string) => string; channelsAlertIcon: string; channelsAlerts: string; channelsAlertsLoadFailed: string; channelsAppId: string; channelsAppToken: string; channelsAppTokenHint: string; channelsBindingOn: (what: string) => string; channelsBindingsLoadFailed: string; channelsBotToken: string; channelsBotTokenHint: string; channelsBudget: string; channelsBudgetHint: string; channelsBudgetInvalid: string; channelsBudgetPlaceholder: string; channelsChannel: string; channelsChannelBound: (name: string) => string; channelsChannelId: string; channelsChannelIdHint: string; channelsChannelPick: string; channelsChannelPrivate: (name: string) => string; channelsClientId: string; channelsClientSecret: string; channelsConcurrent: string; channelsConcurrentHint: string; channelsConnection: string; channelsConnections: string; channelsConnectionTrouble: (provider: ChannelConnectionProvider) => string; channelsContinueSetup: string; channelsCreateApp: (provider: ChannelConnectionProvider) => string; channelsCreateHint: (provider: ChannelConnectionProvider) => string; channelsCredentialsHint: string; channelsDefaultAsk: string; channelsDefaultFor: (name: string) => string; channelsDefaults: string; channelsDefaultsHint: string; channelsDisable: string; channelsDone: string; channelsDraft: string; channelsDraftHint: string; channelsEdit: string; channelsEditorEdit: string; channelsEditorNew: string; channelsEnable: string; channelsEnabled: string; channelsEnabledHint: string; channelsEnvironmentLocal: string; channelsEnvironmentLocalHint: string; channelsEnvironmentWorktree: string; channelsEnvironmentWorktreeHint: string; channelsFailed: (error: ChannelsError) => string; channelsFewerOptions: string; channelsFixFailed: string; channelsFor: (duration: string) => string; channelsGateAcknowledge: string; channelsGateEnable: string; channelsGateLeft: (count: number) => string; channelsGateTitle: string; channelsGithubNeedsHttps: string; channelsGithubOrg: string; channelsGithubOrgHint: string; channelsHandoff: string; channelsHandoffBadge: string; channelsHandoffHint: string; channelsHealth: (health: ConnectionHealth) => string; channelsHeld: string; channelsHeldAsIsMessage: string; channelsHeldAsIsTitle: string; channelsHeldDiscard: string; channelsHeldDiscardMessage: string; channelsHeldDiscardTitle: string; channelsHeldFinding: (kind: CredentialKind) => string; channelsHeldHint: string; channelsHeldLoadFailed: string; channelsHeldSendAsIs: string; channelsHeldSendRedacted: string; channelsHeldWhy: (findings: readonly string[]) => string; channelsHideChannels: string; channelsIdentity: string; channelsIdentityCard: string; channelsIdentityCardHint: string; channelsIdentityCardIconHint: string; channelsIdentityDescription: string; channelsIdentityDescriptionCount: (count: number, max: number) => string; channelsIdentityDescriptionHint: string; channelsIdentityDiscard: string; channelsIdentityIcon: string; channelsIdentityIconHint: string; channelsIdentityIconInvalid: string; channelsIdentityName: string; channelsIdentityNeedName: string; channelsIdentityOverrideHint: string; channelsIdentitySaveFailed: string; channelsInChannels: string; channelsInNoChannels: string; channelsInstall: string; channelsInstallHint: string; channelsLimitInvalid: string; channelsLimits: string; channelsLoadFailed: string; channelsLock: string; channelsLockHint: string; channelsLockOff: string; channelsMatch: (kind: ChannelMatchKind, value?: string) => string; channelsMore: (name: string) => string; channelsMoreOptions: string; channelsName: string; channelsNameHint: string; channelsNamePlaceholder: string; channelsNeedChannel: string; channelsNeedCredentials: string; channelsNeedName: string; channelsNoBindings: string; channelsNoConnections: string; channelsNoConnectionsHint: string; channelsNoConnectionsShared: string; channelsNoConnectionsSharedHint: string; channelsNoDefaults: string; channelsPerMember: string; channelsPerMemberHint: string; channelsPickConnection: string; channelsPreview: string; channelsPreviewApp: string; channelsPreviewNow: string; channelsPreviewText: string; channelsProfile: string; channelsProfileDefault: string; channelsProvider: (provider: ChannelConnectionProvider) => string; channelsReadiness: string; channelsReadinessCount: (severity: ReadinessSeverity, count: number) => string; channelsReadinessLoadFailed: string; channelsReadinessReady: string; channelsReadOnly: string; channelsReady: (name: string) => string; channelsReadyNext: string; channelsReadyShareHint: string; channelsReadyTeam: (name: string, team: string) => string; channelsRemove: string; channelsRemoveBindingMessage: string; channelsRemoveBindingTitle: (what: string) => string; channelsRemoveForce: string; channelsRemoveForceMessage: string; channelsRemoveForceTitle: string; channelsRemoveMessage: string; channelsRemoveTitle: (name: string) => string; channelsReplaceContinue: string; channelsReplaceIntro: (name: string) => string; channelsReplaceMoves: string; channelsReplaceOtherWorkspace: string; channelsReplaceRemoves: (name: string) => string; channelsReplaceSameWorkspace: string; channelsReplaceTitle: (name: string) => string; channelsRepo: string; channelsRepoPlaceholder: string; channelsRiskApprovalsOff: string; channelsRiskFull: string; channelsRiskGuest: string; channelsRowGuests: (access: string) => string; channelsRowMembers: (access: string) => string; channelsRuns: string; channelsRunsOn: string; channelsRunsOnAutomatic: string; channelsRunsOnAutomaticNow: (place: string) => string; channelsRunsOnHint: string; channelsRunsOnHost: string; channelsRunsOnIsolation: string; channelsRunsOnMachine: (name: string, server: string) => string; channelsRunsOnMenu: string; channelsRunsOnNowhere: string; channelsRunsOnOffline: string; channelsRunsOnOfflineWaits: (name: string) => string; channelsRunsOnPick: (place: string, worktree: boolean) => string; channelsRunsOnServer: string; channelsRunsOnServerOff: (server: string) => string; channelsSave: string; channelsSaveCredentials: string; channelsSaveFailed: string; channelsSearchChannels: string; channelsSearchConnections: string; channelsSearchNone: string; channelsSection: string; channelsSectionHint: string; channelsSetupStep: (provider: ChannelConnectionProvider, step: ChannelSetupStep) => string; channelsSetupTitle: (provider: ChannelConnectionProvider) => string; channelsSeverity: (severity: ReadinessSeverity) => string; channelsShare: string; channelsShareAll: string; channelsShareChosen: string; channelsSharedAll: string; channelsSharedSome: (count: number) => string; channelsShareNone: string; channelsShareTitle: (name: string) => string; channelsShowChannels: string; channelsSigningSecret: string; channelsSince: (when: string) => string; channelsStepCreate: string; channelsStepOf: (step: number, total: number, name: string) => string; channelsSteps: string; channelsTestAs: (as: TestAsKind) => 'As a project member' | 'As a guest'; channelsTestAsGuest: string; channelsTestAsGuestOff: string; channelsTestAsMember: string; channelsTestBadge: string; channelsTestFailed: string; channelsTestHint: string; channelsThrough: (name: string) => string; channelsTransport: string; channelsTransportHttp: string; channelsTransportHttpHint: string; channelsTransportSocket: string; channelsTransportSocketHint: string; channelsTransportSocketOnly: string; channelsUnavailableHint: string; channelsWaitingGithub: string; channelsWaitingSlack: string; channelsWhat: string; channelsWhatHint: (kind: ChannelMatchKind) => string; channelsWhatKind: (kind: ChannelMatchKind) => string; channelsYourSlackId: string; channelsYourSlackIdHint: string; channelsYourSlackIdInvalid: string; copiedShort: string; retry: string }>`): Overrides for the channels components' strings. Keys you leave out keep the default English label.

Source: [ui/src/channels/ChannelsProvider.tsx:21](https://github.com/Tahul/zidane/blob/main/ui/src/channels/ChannelsProvider.tsx#L21)

### `ChannelsSettingsSectionProps`

Interface.

Props for [`ChannelsSettingsSection`](https://zidane.si/docs/reference/ui-channels.md#ChannelsSettingsSection).

```ts
interface ChannelsSettingsSectionProps
```

**Properties**

- `className?` (`string`): Extra classes on the root.
- `now?` (`number`): The moment times are shown against. Default: each render's.
- `style?` (`CSSProperties`): Inline styles on the root.

Source: [ui/src/channels/ChannelsSettingsSection.tsx:41](https://github.com/Tahul/zidane/blob/main/ui/src/channels/ChannelsSettingsSection.tsx#L41)

### `ConnectionSetupDialogProps`

Interface.

Props for [`ConnectionSetupDialog`](https://zidane.si/docs/reference/ui-channels.md#ConnectionSetupDialog).

```ts
interface ConnectionSetupDialogProps
```

**Properties**

- `connectionId?` (`string`): A connection still being set up: the dialog goes on from its step. Absent: a new one.
- `onClose` (`() => void`): Closes the dialog.
- `provider` (`ChannelConnectionProvider`): Which provider a new connection is for.

Source: [ui/src/channels/ConnectionSetupDialog.tsx:40](https://github.com/Tahul/zidane/blob/main/ui/src/channels/ConnectionSetupDialog.tsx#L40)

### `HeldRepliesListProps`

Interface.

Props for [`HeldRepliesList`](https://zidane.si/docs/reference/ui-channels.md#HeldRepliesList).

```ts
interface HeldRepliesListProps
```

**Properties**

- `className?` (`string`): Extra classes on the root.
- `now?` (`number`): Now, Unix ms, for the replies' ages. Default: when the list was last read.
- `projectId` (`string`): The project.
- `style?` (`CSSProperties`): Inline styles on the root.
- `where?` (`(post: HeldPost) => string | undefined`): Where a reply was going, worded (`#ops`, Direct messages). Absent: not said.

Source: [ui/src/channels/HeldRepliesList.tsx:29](https://github.com/Tahul/zidane/blob/main/ui/src/channels/HeldRepliesList.tsx#L29)

### `ProjectChannelsSectionProps`

Interface.

Props for [`ProjectChannelsSection`](https://zidane.si/docs/reference/ui-channels.md#ProjectChannelsSection).

```ts
interface ProjectChannelsSectionProps
```

**Properties**

- `canManage` (`boolean`): The person is an owner or a maintainer: they change the bindings.
- `className?` (`string`): Extra classes on the root.
- `onOpenProject?` (`() => void`): Opens the project's settings, for the checklist's fixes (absent inside them).
- `projectId` (`string`): The project.
- `projectName` (`string`): Its name: the posts' name when a binding sets none.
- `style?` (`CSSProperties`): Inline styles on the root.

Source: [ui/src/channels/ProjectChannelsSection.tsx:45](https://github.com/Tahul/zidane/blob/main/ui/src/channels/ProjectChannelsSection.tsx#L45)

### `ProjectReadinessCardProps`

Interface.

Props for [`ProjectReadinessCard`](https://zidane.si/docs/reference/ui-channels.md#ProjectReadinessCard).

```ts
interface ProjectReadinessCardProps
```

**Properties**

- `className?` (`string`): Extra classes on the root.
- `onOpenProject?` (`() => void`): Opens the project's settings (the fixes that are the project's own).
- `projectId` (`string`): The project.
- `style?` (`CSSProperties`): Inline styles on the root.

Source: [ui/src/channels/ReadinessChecklist.tsx:166](https://github.com/Tahul/zidane/blob/main/ui/src/channels/ReadinessChecklist.tsx#L166)

### `ReadinessGateDialogProps`

Interface.

Props for [`ReadinessGateDialog`](https://zidane.si/docs/reference/ui-channels.md#ReadinessGateDialog).

```ts
interface ReadinessGateDialogProps
```

**Properties**

- `onClose` (`() => void`): Closes the dialog.
- `onEnable` (`() => Promise<unknown>`): Turns the binding on.
- `onOpenProject?` (`() => void`): Opens the project's settings, for the fixes.
- `projectId` (`string`): The project.
- `what` (`string`): What the binding takes, worded (the dialog's description).

Source: [ui/src/channels/ProjectChannelsSection.tsx:323](https://github.com/Tahul/zidane/blob/main/ui/src/channels/ProjectChannelsSection.tsx#L323)

### `ReadinessGateProps`

Interface.

Props for [`ReadinessGate`](https://zidane.si/docs/reference/ui-channels.md#ReadinessGate).

```ts
interface ReadinessGateProps
```

**Properties**

- `acknowledged` (`ReadonlySet<string>`): The ids acknowledged so far.
- `blockers` (`readonly ReadinessItem[]`): The blockers not fixed yet (`bindingBlockers`), most serious first.
- `onAcknowledge` (`(id: string, on: boolean) => void`): Acknowledges (or takes back) one blocker.
- `onOpenProject?` (`() => void`): Opens the project's settings.
- `projectId` (`string`): The project.
- `titled?` (`boolean`): Shows the gate's title over it: inside a form, where no dialog title names it.

Source: [ui/src/channels/ReadinessChecklist.tsx:214](https://github.com/Tahul/zidane/blob/main/ui/src/channels/ReadinessChecklist.tsx#L214)

### `ReadinessListProps`

Interface.

Props for [`ReadinessList`](https://zidane.si/docs/reference/ui-channels.md#ReadinessList).

```ts
interface ReadinessListProps
```

**Properties**

- `className?` (`string`): Extra classes on the root.
- `onOpenProject?` (`() => void`): Opens the project's settings. Absent: fixes that open them show no button (already there).
- `projectId` (`string`): The project.
- `style?` (`CSSProperties`): Inline styles on the root.

Source: [ui/src/channels/ReadinessChecklist.tsx:131](https://github.com/Tahul/zidane/blob/main/ui/src/channels/ReadinessChecklist.tsx#L131)

### `ShareConnectionDialogProps`

Interface.

Props for [`ShareConnectionDialog`](https://zidane.si/docs/reference/ui-channels.md#ShareConnectionDialog).

```ts
interface ShareConnectionDialogProps
```

**Properties**

- `connection` (`ChannelConnection`): The connection.
- `onClose` (`() => void`): Closes the dialog.

Source: [ui/src/channels/ChannelsSettingsSection.tsx:259](https://github.com/Tahul/zidane/blob/main/ui/src/channels/ChannelsSettingsSection.tsx#L259)

### `SlackMessagePreviewProps`

Interface.

Props for [`SlackMessagePreview`](https://zidane.si/docs/reference/ui-channels.md#SlackMessagePreview).

```ts
interface SlackMessagePreviewProps
```

**Properties**

- `className?` (`string`): Extra classes on the root.
- `iconUrl?` (`string`): An https picture; absent: the name's first letter.
- `name` (`string`): The name the post shows.
- `style?` (`CSSProperties`): Inline styles on the root.
- `text` (`ReactNode`): The message.

Source: [ui/src/channels/channels-parts.tsx:177](https://github.com/Tahul/zidane/blob/main/ui/src/channels/channels-parts.tsx#L177)

### `TestSessionBannerProps`

Interface.

Props for [`TestSessionBanner`](https://zidane.si/docs/reference/ui-channels.md#TestSessionBanner).

```ts
interface TestSessionBannerProps
```

**Properties**

- `className?` (`string`): Extra classes on the root.
- `latestReply?` (`string`): The session's latest reply, for the preview. Absent: a sample line.
- `sessionId` (`string`): The session shown.
- `style?` (`CSSProperties`): Inline styles on the root.

Source: [ui/src/channels/TestSessionBanner.tsx:14](https://github.com/Tahul/zidane/blob/main/ui/src/channels/TestSessionBanner.tsx#L14)
