Skip to content

zidane-ui/channels

import { … } from 'zidane-ui/channels'ui/src/channels/index.ts

Components#

AgentIdentityCardComponent#

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.

TypeScript
function AgentIdentityCard(props: AgentIdentityCardProps): Element
Parameters
NameTypeDescription
propsAgentIdentityCardProps

The AgentIdentityCardProps.

Element
AgentIdentityCard props
NameTypeDescription
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.

valueAgentIdentity

The identity as saved. A new value replaces the fields.

ui/src/channels/AgentIdentityCard.tsx:62

BindingEditorDialogComponent#

The binding editor.

TypeScript
function BindingEditorDialog(props: BindingEditorDialogProps): Element
Parameters
NameTypeDescription
propsBindingEditorDialogProps

The BindingEditorDialogProps.

Element
BindingEditorDialog props
NameTypeDescription
binding?ChannelBinding

The binding to change. Absent: a new one.

onClose() => void

Closes the dialog.

projectIdstring

The project.

projectNamestring

Its name: the posts' name by default.

ui/src/channels/BindingEditorDialog.tsx:135

ChannelAlertsListComponent#

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.

TypeScript
function ChannelAlertsList(props: ChannelAlertsListProps): Element | null
Parameters
NameTypeDescription
propsChannelAlertsListProps

The ChannelAlertsListProps.

Element | null
ChannelAlertsList props
NameTypeDescription
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.

ui/src/channels/ChannelAlertsList.tsx:72

ChannelsFailureComponent#

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.

TypeScript
function ChannelsFailure(props: ChannelsFailureProps): Element
Parameters
NameTypeDescription
propsChannelsFailureProps

The ChannelsFailureProps.

Element
ChannelsFailure props
NameTypeDescription
className?string

Extra classes on the root.

compact?boolean

One tight line.

errorChannelsError

What failed.

message?string

The message; default: the failure's kind worded.

onRetry?() => void

Retry, when it can be tried again.

ui/src/channels/channels-parts.tsx:105

ChannelsProviderComponent#

Provides a ChannelsHost and optional label overrides to the channels components below it.

TypeScript
function ChannelsProvider(props: ChannelsProviderProps): Element
Parameters
NameTypeDescription
propsChannelsProviderProps

The host, optional labels and the children.

Element
ChannelsProvider props
NameTypeDescription
childrenReactNode

The components that read from host.

hostChannelsHost

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.

ui/src/channels/ChannelsProvider.tsx:35

ChannelsSettingsSectionComponent#

The Channels page's body.

TypeScript
function ChannelsSettingsSection(props: ChannelsSettingsSectionProps): Element
Parameters
NameTypeDescription
propsChannelsSettingsSectionProps

The ChannelsSettingsSectionProps.

Element
ChannelsSettingsSection props
NameTypeDescription
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.

ui/src/channels/ChannelsSettingsSection.tsx:68

ConnectionSetupDialogComponent#

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

TypeScript
function ConnectionSetupDialog(props: ConnectionSetupDialogProps): Element
Parameters
NameTypeDescription
propsConnectionSetupDialogProps

The ConnectionSetupDialogProps.

Element
ConnectionSetupDialog props
NameTypeDescription
connectionId?string

A connection still being set up: the dialog goes on from its step. Absent: a new one.

onClose() => void

Closes the dialog.

providerChannelConnectionProvider

Which provider a new connection is for.

ui/src/channels/ConnectionSetupDialog.tsx:93

HeldRepliesListComponent#

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

TypeScript
function HeldRepliesList(props: HeldRepliesListProps): Element | null
Parameters
NameTypeDescription
propsHeldRepliesListProps

The HeldRepliesListProps.

Element | null
HeldRepliesList props
NameTypeDescription
className?string

Extra classes on the root.

now?number

Now, Unix ms, for the replies' ages. Default: when the list was last read.

projectIdstring

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.

ui/src/channels/HeldRepliesList.tsx:47

ProjectChannelsSectionComponent#

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

TypeScript
function ProjectChannelsSection(props: ProjectChannelsSectionProps): Element | null
Parameters
NameTypeDescription
propsProjectChannelsSectionProps

The ProjectChannelsSectionProps.

Element | null
ProjectChannelsSection props
NameTypeDescription
canManageboolean

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).

projectIdstring

The project.

projectNamestring

Its name: the posts' name when a binding sets none.

style?CSSProperties

Inline styles on the root.

ui/src/channels/ProjectChannelsSection.tsx:101

ProjectReadinessCardComponent#

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.

TypeScript
function ProjectReadinessCard(props: ProjectReadinessCardProps): Element | null
Parameters
NameTypeDescription
propsProjectReadinessCardProps

The ProjectReadinessCardProps.

Element | null
ProjectReadinessCard props
NameTypeDescription
className?string

Extra classes on the root.

onOpenProject?() => void

Opens the project's settings (the fixes that are the project's own).

projectIdstring

The project.

style?CSSProperties

Inline styles on the root.

ui/src/channels/ReadinessChecklist.tsx:183

ReadinessGateComponent#

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

TypeScript
function ReadinessGate(props: ReadinessGateProps): Element
Parameters
NameTypeDescription
propsReadinessGateProps

The ReadinessGateProps.

Element
ReadinessGate props
NameTypeDescription
acknowledgedReadonlySet<string>

The ids acknowledged so far.

blockersreadonly 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.

projectIdstring

The project.

titled?boolean

Shows the gate's title over it: inside a form, where no dialog title names it.

ui/src/channels/ReadinessChecklist.tsx:234

ReadinessGateDialogComponent#

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

TypeScript
function ReadinessGateDialog(props: ReadinessGateDialogProps): Element
Parameters
NameTypeDescription
propsReadinessGateDialogProps

The ReadinessGateDialogProps.

Element
ReadinessGateDialog props
NameTypeDescription
onClose() => void

Closes the dialog.

onEnable() => Promise<unknown>

Turns the binding on.

onOpenProject?() => void

Opens the project's settings, for the fixes.

projectIdstring

The project.

whatstring

What the binding takes, worded (the dialog's description).

ui/src/channels/ProjectChannelsSection.tsx:341

ReadinessListComponent#

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

TypeScript
function ReadinessList(props: ReadinessListProps): Element | null
Parameters
NameTypeDescription
propsReadinessListProps

The ReadinessListProps.

Element | null
ReadinessList props
NameTypeDescription
className?string

Extra classes on the root.

onOpenProject?() => void

Opens the project's settings. Absent: fixes that open them show no button (already there).

projectIdstring

The project.

style?CSSProperties

Inline styles on the root.

ui/src/channels/ReadinessChecklist.tsx:147

ShareConnectionDialogComponent#

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

TypeScript
function ShareConnectionDialog(props: ShareConnectionDialogProps): Element
Parameters
NameTypeDescription
propsShareConnectionDialogProps

The ShareConnectionDialogProps.

Element
ShareConnectionDialog props
NameTypeDescription
connectionChannelConnection

The connection.

onClose() => void

Closes the dialog.

ui/src/channels/ChannelsSettingsSection.tsx:271

SlackMessagePreviewComponent#

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.

TypeScript
function SlackMessagePreview(props: SlackMessagePreviewProps): Element
Parameters
NameTypeDescription
propsSlackMessagePreviewProps

The SlackMessagePreviewProps.

Element
SlackMessagePreview props
NameTypeDescription
className?string

Extra classes on the root.

iconUrl?string

An https picture; absent: the name's first letter.

namestring

The name the post shows.

style?CSSProperties

Inline styles on the root.

textReactNode

The message.

ui/src/channels/channels-parts.tsx:196

TestSessionBannerComponent#

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

TypeScript
function TestSessionBanner(props: TestSessionBannerProps): Element | null
Parameters
NameTypeDescription
propsTestSessionBannerProps

The TestSessionBannerProps.

Element | null
TestSessionBanner props
NameTypeDescription
className?string

Extra classes on the root.

latestReply?string

The session's latest reply, for the preview. Absent: a sample line.

sessionIdstring

The session shown.

style?CSSProperties

Inline styles on the root.

ui/src/channels/TestSessionBanner.tsx:30

Functions#

useChannelsHostFunction#

The nearest ChannelsHost; an empty one outside a provider.

TypeScript
function useChannelsHost(): ChannelsHost

ui/src/channels/context.ts:15

Interfaces#

AgentIdentityInterface#

A project's identity in Slack.

TypeScript
interface AgentIdentity
AgentIdentity properties
NameTypeDescription
description?string

What it is for, at most 500 characters.

iconUrl?string

An https picture. Absent: the app's icon.

namestring

The name its posts show.

ui/src/channels/AgentIdentityCard.tsx:18

AgentIdentityCardPropsInterface#

Props for AgentIdentityCard.

TypeScript
interface AgentIdentityCardProps
AgentIdentityCardProps properties
NameTypeDescription
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.

valueAgentIdentity

The identity as saved. A new value replaces the fields.

ui/src/channels/AgentIdentityCard.tsx:28

BindingEditorDialogPropsInterface#

Props for BindingEditorDialog.

TypeScript
interface BindingEditorDialogProps
BindingEditorDialogProps properties
NameTypeDescription
binding?ChannelBinding

The binding to change. Absent: a new one.

onClose() => void

Closes the dialog.

projectIdstring

The project.

projectNamestring

Its name: the posts' name by default.

ui/src/channels/BindingEditorDialog.tsx:35

ChannelAlertsListPropsInterface#

Props for ChannelAlertsList.

TypeScript
interface ChannelAlertsListProps
ChannelAlertsListProps properties
NameTypeDescription
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.

ui/src/channels/ChannelAlertsList.tsx:22

ChannelsFailurePropsInterface#

Props for ChannelsFailure.

TypeScript
interface ChannelsFailureProps
ChannelsFailureProps properties
NameTypeDescription
className?string

Extra classes on the root.

compact?boolean

One tight line.

errorChannelsError

What failed.

message?string

The message; default: the failure's kind worded.

onRetry?() => void

Retry, when it can be tried again.

ui/src/channels/channels-parts.tsx:86

ChannelsProviderPropsInterface#

Props for ChannelsProvider.

TypeScript
interface ChannelsProviderProps
ChannelsProviderProps properties
NameTypeDescription
childrenReactNode

The components that read from host.

hostChannelsHost

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.

ui/src/channels/ChannelsProvider.tsx:21

ChannelsSettingsSectionPropsInterface#

Props for ChannelsSettingsSection.

TypeScript
interface ChannelsSettingsSectionProps
ChannelsSettingsSectionProps properties
NameTypeDescription
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.

ui/src/channels/ChannelsSettingsSection.tsx:41

ConnectionSetupDialogPropsInterface#

Props for ConnectionSetupDialog.

TypeScript
interface ConnectionSetupDialogProps
ConnectionSetupDialogProps properties
NameTypeDescription
connectionId?string

A connection still being set up: the dialog goes on from its step. Absent: a new one.

onClose() => void

Closes the dialog.

providerChannelConnectionProvider

Which provider a new connection is for.

ui/src/channels/ConnectionSetupDialog.tsx:40

HeldRepliesListPropsInterface#

Props for HeldRepliesList.

TypeScript
interface HeldRepliesListProps
HeldRepliesListProps properties
NameTypeDescription
className?string

Extra classes on the root.

now?number

Now, Unix ms, for the replies' ages. Default: when the list was last read.

projectIdstring

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.

ui/src/channels/HeldRepliesList.tsx:29

ProjectChannelsSectionPropsInterface#

Props for ProjectChannelsSection.

TypeScript
interface ProjectChannelsSectionProps
ProjectChannelsSectionProps properties
NameTypeDescription
canManageboolean

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).

projectIdstring

The project.

projectNamestring

Its name: the posts' name when a binding sets none.

style?CSSProperties

Inline styles on the root.

ui/src/channels/ProjectChannelsSection.tsx:45

ProjectReadinessCardPropsInterface#

Props for ProjectReadinessCard.

TypeScript
interface ProjectReadinessCardProps
ProjectReadinessCardProps properties
NameTypeDescription
className?string

Extra classes on the root.

onOpenProject?() => void

Opens the project's settings (the fixes that are the project's own).

projectIdstring

The project.

style?CSSProperties

Inline styles on the root.

ui/src/channels/ReadinessChecklist.tsx:166

ReadinessGateDialogPropsInterface#

Props for ReadinessGateDialog.

TypeScript
interface ReadinessGateDialogProps
ReadinessGateDialogProps properties
NameTypeDescription
onClose() => void

Closes the dialog.

onEnable() => Promise<unknown>

Turns the binding on.

onOpenProject?() => void

Opens the project's settings, for the fixes.

projectIdstring

The project.

whatstring

What the binding takes, worded (the dialog's description).

ui/src/channels/ProjectChannelsSection.tsx:323

ReadinessGatePropsInterface#

Props for ReadinessGate.

TypeScript
interface ReadinessGateProps
ReadinessGateProps properties
NameTypeDescription
acknowledgedReadonlySet<string>

The ids acknowledged so far.

blockersreadonly 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.

projectIdstring

The project.

titled?boolean

Shows the gate's title over it: inside a form, where no dialog title names it.

ui/src/channels/ReadinessChecklist.tsx:214

ReadinessListPropsInterface#

Props for ReadinessList.

TypeScript
interface ReadinessListProps
ReadinessListProps properties
NameTypeDescription
className?string

Extra classes on the root.

onOpenProject?() => void

Opens the project's settings. Absent: fixes that open them show no button (already there).

projectIdstring

The project.

style?CSSProperties

Inline styles on the root.

ui/src/channels/ReadinessChecklist.tsx:131

ShareConnectionDialogPropsInterface#

Props for ShareConnectionDialog.

TypeScript
interface ShareConnectionDialogProps
ShareConnectionDialogProps properties
NameTypeDescription
connectionChannelConnection

The connection.

onClose() => void

Closes the dialog.

ui/src/channels/ChannelsSettingsSection.tsx:259

SlackMessagePreviewPropsInterface#

Props for SlackMessagePreview.

TypeScript
interface SlackMessagePreviewProps
SlackMessagePreviewProps properties
NameTypeDescription
className?string

Extra classes on the root.

iconUrl?string

An https picture; absent: the name's first letter.

namestring

The name the post shows.

style?CSSProperties

Inline styles on the root.

textReactNode

The message.

ui/src/channels/channels-parts.tsx:177

TestSessionBannerPropsInterface#

Props for TestSessionBanner.

TypeScript
interface TestSessionBannerProps
TestSessionBannerProps properties
NameTypeDescription
className?string

Extra classes on the root.

latestReply?string

The session's latest reply, for the preview. Absent: a sample line.

sessionIdstring

The session shown.

style?CSSProperties

Inline styles on the root.

ui/src/channels/TestSessionBanner.tsx:14