:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
import { type LemonBadgeProps } from '@posthog/lemon-ui'
import { TaskRunStatus } from '../types/taskTypes'
export const TASK_STATUS_CONFIG: Record<
TaskRunStatus | 'all' | 'not_started',
{ status: LemonBadgeProps['status']; label: string }
> = {
all: { status: 'muted', label: 'All' },
[TaskRunStatus.NOT_STARTED]: { status: 'muted', label: 'Not started' },
[TaskRunStatus.QUEUED]: { status: 'muted', label: 'Queued' },
[TaskRunStatus.IN_PROGRESS]: { status: 'primary', label: 'In progress' },
[TaskRunStatus.COMPLETED]: { status: 'success', label: 'Completed' },
[TaskRunStatus.FAILED]: { status: 'danger', label: 'Failed' },
[TaskRunStatus.CANCELLED]: { status: 'danger', label: 'Cancelled' },
}