SyncStatus
SyncStatus displays pending sale and register updates, sending or retry status, refusals, and explanatory product pull notices.
Import
import { SyncStatus } from '@tallyui/components';Usage
<SyncStatus
state={outboxState}
registerState={registerOutboxState}
pluginName="Store POS plugin"
pullNotice={pullNotice}
/>Renders waiting sale and till update counts, sync status, refusal details, and sending or retry text. When the store's last answer didn't say which POS plugin version it runs, a line under the sending or retry text says so. A product pull notice appears above the outbox status with its own explanation.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
state | OutboxState | required | Sale outbox state used for pending counts, refusals, sending, retries, and backend status |
registerState | OutboxState | --- | Register outbox state used for till update counts and status when only till updates are waiting |
pluginName | string | 'the POS plugin' | Name of the store's plugin used in notices and details |
pullNotice | SyncNotice | --- | Stopped product pull notice shown above the outbox line with explanatory detail |
OrderSyncNotices
OrderSyncNotices shows one sale's sync notices, the same ones OrdersList shows under each order, for an app's own order screen.
OrderStatusBadge
OrderStatusBadge shows a colored dot and label for pending, processing, completed, on hold, failed, POS open, POS partial, refunded, cancelled, trash, or Draft orders.