feat: add status colors for document pipeline stages, add status filter to documents page

This commit is contained in:
Celes Renata
2026-04-16 08:06:12 +00:00
parent 87579d68da
commit 0b1640abb9
2 changed files with 29 additions and 2 deletions
+7
View File
@@ -17,10 +17,14 @@ const statusColors: Record<string, string> = {
active: 'bg-green-900/40 text-green-400 border-green-700/50',
approved: 'bg-green-900/40 text-green-400 border-green-700/50',
filled: 'bg-green-900/40 text-green-400 border-green-700/50',
extracted: 'bg-green-900/40 text-green-400 border-green-700/50',
running: 'bg-blue-900/40 text-blue-400 border-blue-700/50',
pending: 'bg-yellow-900/40 text-yellow-400 border-yellow-700/50',
parsed: 'bg-yellow-900/40 text-yellow-400 border-yellow-700/50',
failed: 'bg-red-900/40 text-red-400 border-red-700/50',
rejected: 'bg-red-900/40 text-red-400 border-red-700/50',
extraction_failed: 'bg-red-900/40 text-red-400 border-red-700/50',
low_quality: 'bg-orange-900/40 text-orange-400 border-orange-700/50',
cancelled: 'bg-gray-800/40 text-gray-400 border-gray-700/50',
disabled: 'bg-gray-800/40 text-gray-400 border-gray-700/50',
paper: 'bg-purple-900/40 text-purple-400 border-purple-700/50',
@@ -29,6 +33,9 @@ const statusColors: Record<string, string> = {
sell: 'bg-red-900/40 text-red-400 border-red-700/50',
hold: 'bg-yellow-900/40 text-yellow-400 border-yellow-700/50',
watch: 'bg-blue-900/40 text-blue-400 border-blue-700/50',
high: 'bg-green-900/40 text-green-400 border-green-700/50',
medium: 'bg-yellow-900/40 text-yellow-400 border-yellow-700/50',
low: 'bg-red-900/40 text-red-400 border-red-700/50',
};
export function StatusBadge({ status }: { status: string | null | undefined }) {