Skip to main content

Type Alias: ScanStatus

@arolariu/website


@arolariu/website / types / ScanStatus

Type Alias: ScanStatus

ScanStatus = typeof ScanStatus[keyof typeof ScanStatus]

Defined in: types/scans/Scan.ts:85

Represents the lifecycle status of a standalone scan.

Remarks

Tracks the scan through its lifecycle from upload to invoice creation.

State Transitions:

UPLOADING → READY → PROCESSING → ARCHIVED

FAILED

UI Implications:

  • UPLOADING: Show progress indicator
  • READY: Available for selection and invoice creation
  • PROCESSING: Being used to create an invoice (show spinner)
  • ARCHIVED: Invoice created, scan no longer shown in active view
  • FAILED: Show error state with retry option

Example

if (scan.status === ScanStatus.READY) {
// Show scan in selection view
}
// was this page useful?