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.
function AgentIdentityCard(props: AgentIdentityCardProps): ElementParameters
| Name | Type | Description |
|---|---|---|
| props | AgentIdentityCardProps |
Returns
ElementProps
| Name | Type | Description |
|---|---|---|
| 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 |
| 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. |
BindingEditorDialogComponent#
The binding editor.
function BindingEditorDialog(props: BindingEditorDialogProps): ElementParameters
| Name | Type | Description |
|---|---|---|
| props | BindingEditorDialogProps |
Returns
ElementProps
| Name | Type | Description |
|---|---|---|
| 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. |
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.
function ChannelAlertsList(props: ChannelAlertsListProps): Element | nullParameters
| Name | Type | Description |
|---|---|---|
| props | ChannelAlertsListProps |
Returns
Element | nullProps
| Name | Type | Description |
|---|---|---|
| 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. |
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.
function ChannelsFailure(props: ChannelsFailureProps): ElementParameters
| Name | Type | Description |
|---|---|---|
| props | ChannelsFailureProps | The |
Returns
ElementProps
| Name | Type | Description |
|---|---|---|
| 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. |
ChannelsProviderComponent#
Provides a ChannelsHost and optional label overrides to the channels components below it.
function ChannelsProvider(props: ChannelsProviderProps): ElementParameters
| Name | Type | Description |
|---|---|---|
| props | ChannelsProviderProps | The |
Returns
ElementProps
| Name | Type | Description |
|---|---|---|
| children | ReactNode | The components that read from |
| 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. |
ChannelsSettingsSectionComponent#
The Channels page's body.
function ChannelsSettingsSection(props: ChannelsSettingsSectionProps): ElementParameters
| Name | Type | Description |
|---|---|---|
| props | ChannelsSettingsSectionProps |
Returns
ElementProps
| Name | Type | Description |
|---|---|---|
| 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. |
ConnectionSetupDialogComponent#
The Add connection dialog. Renders a refusal without ChannelsHost.connections.create.
function ConnectionSetupDialog(props: ConnectionSetupDialogProps): ElementParameters
| Name | Type | Description |
|---|---|---|
| props | ConnectionSetupDialogProps |
Returns
ElementProps
| Name | Type | Description |
|---|---|---|
| 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. |
HeldRepliesListComponent#
The held replies of a project, oldest first. Renders nothing without ChannelsHost.held, and while none waits.
function HeldRepliesList(props: HeldRepliesListProps): Element | nullParameters
| Name | Type | Description |
|---|---|---|
| props | HeldRepliesListProps | The |
Returns
Element | nullProps
| Name | Type | Description |
|---|---|---|
| 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 ( |
ProjectChannelsSectionComponent#
The Channels section of a project's settings. Renders nothing without ChannelsHost.bindings.
function ProjectChannelsSection(props: ProjectChannelsSectionProps): Element | nullParameters
| Name | Type | Description |
|---|---|---|
| props | ProjectChannelsSectionProps |
Returns
Element | nullProps
| Name | Type | Description |
|---|---|---|
| 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. |
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.
function ProjectReadinessCard(props: ProjectReadinessCardProps): Element | nullParameters
| Name | Type | Description |
|---|---|---|
| props | ProjectReadinessCardProps |
Returns
Element | nullProps
| Name | Type | Description |
|---|---|---|
| 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. |
ReadinessGateComponent#
The blockers before a binding turns on: each with its fix and a "go on without it" box.
function ReadinessGate(props: ReadinessGateProps): ElementParameters
| Name | Type | Description |
|---|---|---|
| props | ReadinessGateProps | The |
Returns
ElementProps
| Name | Type | Description |
|---|---|---|
| acknowledged | ReadonlySet<string> | The ids acknowledged so far. |
| blockers | readonly ReadinessItem[] | The blockers not fixed yet ( |
| 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. |
ReadinessGateDialogComponent#
The step before a binding turns on: the project's blockers, live as fixes land, each fixed or acknowledged.
function ReadinessGateDialog(props: ReadinessGateDialogProps): ElementParameters
| Name | Type | Description |
|---|---|---|
| props | ReadinessGateDialogProps |
Returns
ElementProps
| Name | Type | Description |
|---|---|---|
| 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). |
ReadinessListComponent#
A project's checklist, most serious first. Renders nothing without ChannelsHost.readiness.
function ReadinessList(props: ReadinessListProps): Element | nullParameters
| Name | Type | Description |
|---|---|---|
| props | ReadinessListProps | The |
Returns
Element | nullProps
| Name | Type | Description |
|---|---|---|
| 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. |
ShareConnectionDialogComponent#
Which projects a connection serves: every one, or the ones chosen (from the host's projects).
function ShareConnectionDialog(props: ShareConnectionDialogProps): ElementParameters
| Name | Type | Description |
|---|---|---|
| props | ShareConnectionDialogProps |
Returns
ElementProps
| Name | Type | Description |
|---|---|---|
| connection | ChannelConnection | The connection. |
| onClose | () => void | Closes the dialog. |
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.
function SlackMessagePreview(props: SlackMessagePreviewProps): ElementParameters
| Name | Type | Description |
|---|---|---|
| props | SlackMessagePreviewProps |
Returns
ElementProps
| Name | Type | Description |
|---|---|---|
| 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. |
TestSessionBannerComponent#
The Test badge and the Slack-look preview of a test session.
function TestSessionBanner(props: TestSessionBannerProps): Element | nullParameters
| Name | Type | Description |
|---|---|---|
| props | TestSessionBannerProps |
Returns
Element | nullProps
| Name | Type | Description |
|---|---|---|
| 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. |
Functions#
useChannelsHostFunction#
The nearest ChannelsHost; an empty one outside a provider.
function useChannelsHost(): ChannelsHostReturns
Interfaces#
AgentIdentityInterface#
A project's identity in Slack.
interface AgentIdentityProperties
| Name | Type | Description |
|---|---|---|
| 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. |
AgentIdentityCardPropsInterface#
Props for AgentIdentityCard.
interface AgentIdentityCardPropsProperties
| Name | Type | Description |
|---|---|---|
| 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 |
| 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. |
BindingEditorDialogPropsInterface#
Props for BindingEditorDialog.
interface BindingEditorDialogPropsProperties
| Name | Type | Description |
|---|---|---|
| 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. |
ChannelAlertsListPropsInterface#
Props for ChannelAlertsList.
interface ChannelAlertsListPropsProperties
| Name | Type | Description |
|---|---|---|
| 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. |
ChannelsFailurePropsInterface#
Props for ChannelsFailure.
interface ChannelsFailurePropsProperties
| Name | Type | Description |
|---|---|---|
| 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. |
ChannelsProviderPropsInterface#
Props for ChannelsProvider.
interface ChannelsProviderPropsProperties
| Name | Type | Description |
|---|---|---|
| children | ReactNode | The components that read from |
| 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. |
ChannelsSettingsSectionPropsInterface#
Props for ChannelsSettingsSection.
interface ChannelsSettingsSectionPropsProperties
| Name | Type | Description |
|---|---|---|
| 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. |
ConnectionSetupDialogPropsInterface#
Props for ConnectionSetupDialog.
interface ConnectionSetupDialogPropsProperties
| Name | Type | Description |
|---|---|---|
| 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. |
HeldRepliesListPropsInterface#
Props for HeldRepliesList.
interface HeldRepliesListPropsProperties
| Name | Type | Description |
|---|---|---|
| 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 ( |
ProjectChannelsSectionPropsInterface#
Props for ProjectChannelsSection.
interface ProjectChannelsSectionPropsProperties
| Name | Type | Description |
|---|---|---|
| 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. |
ProjectReadinessCardPropsInterface#
Props for ProjectReadinessCard.
interface ProjectReadinessCardPropsProperties
| Name | Type | Description |
|---|---|---|
| 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. |
ReadinessGateDialogPropsInterface#
Props for ReadinessGateDialog.
interface ReadinessGateDialogPropsProperties
| Name | Type | Description |
|---|---|---|
| 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). |
ReadinessGatePropsInterface#
Props for ReadinessGate.
interface ReadinessGatePropsProperties
| Name | Type | Description |
|---|---|---|
| acknowledged | ReadonlySet<string> | The ids acknowledged so far. |
| blockers | readonly ReadinessItem[] | The blockers not fixed yet ( |
| 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. |
ReadinessListPropsInterface#
Props for ReadinessList.
interface ReadinessListPropsProperties
| Name | Type | Description |
|---|---|---|
| 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. |
ShareConnectionDialogPropsInterface#
Props for ShareConnectionDialog.
interface ShareConnectionDialogPropsProperties
| Name | Type | Description |
|---|---|---|
| connection | ChannelConnection | The connection. |
| onClose | () => void | Closes the dialog. |
SlackMessagePreviewPropsInterface#
Props for SlackMessagePreview.
interface SlackMessagePreviewPropsProperties
| Name | Type | Description |
|---|---|---|
| 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. |
TestSessionBannerPropsInterface#
Props for TestSessionBanner.
interface TestSessionBannerPropsProperties
| Name | Type | Description |
|---|---|---|
| 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. |