ConnectorStatus
ConnectorStatus shows a connector name, color-coded connection state, optional last-sync time, and an error message in the error state.
Import
import { ConnectorStatus } from '@tallyui/components';Usage
<ConnectorStatus
name="WooCommerce"
status="connected"
lastSync="2 minutes ago"
/>A compact status card showing a connector name, a color-coded status indicator dot with label, optional last-sync timestamp, and an error message when relevant.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
name | string | required | Display name of the connector |
status | ConnectionStatus | required | Current connection state |
lastSync | string | --- | Human-readable last sync time |
error | string | --- | Error message shown in the error state |
className | string | --- | Override container styles |
unsoldCount | number | --- | Products the sales channel doesn't sell; the line is hidden when undefined or 0 |
unsoldStale | boolean | --- | True when that count is from an older pass than the last failure |
formatUnsold | (count: number, stale: boolean) => string | ${n} product(s) not sold in this channel | The line's text; the default adds (last check failed) when stale |
ConnectionStatus
type ConnectionStatus = 'connected' | 'disconnected' | 'syncing' | 'error';Live demo
CustomerDisplaySettings
CustomerDisplaySettings is Settings › Customer display, the till's paired displays, pairing a new one with a code, and forgetting one.
PrintingSettings
PrintingSettings is Settings › Printing, the printers on this device with Test Print, Edit, Set Default and Delete, and the template routing that sends each template to a printer, ported from WCPOS v2.