⭐️⭐️⭐️ Open-source, self-hosted alternative to Linear and Plane. Project management and issue tracking where teams and AI agents work side by side to plan and ship products.
TypeScript agenticagileai-agentsbug-reportingbug-trackerganttissue-trackerjirajira-alternativekanbanlinearlinear-alternativeopen-sourceproduct-managementproject-managementroadmapself-hostedsprint-planningteam-collaborationtrello-alternative
import { type ReactNode } from 'react';
import { Minus, SignalHigh, SignalLow, SignalMedium, TriangleAlert } from 'lucide-react';
import { PRIORITY_ORDER } from '@/utils/fieldOptions';
// Accent icon per priority value (plus the "unset" choice keyed by '').
const PRIORITY_ICON: Record<string, ReactNode> = {
'': <Minus className="text-muted-foreground" />,
urgent: <TriangleAlert style={{ color: 'var(--priority-urgent)' }} />,
high: <SignalHigh style={{ color: 'var(--priority-high)' }} />,
medium: <SignalMedium style={{ color: 'var(--priority-medium)' }} />,
low: <SignalLow style={{ color: 'var(--priority-low)' }} />,
};
// Priority selector rows: the "No priority" choice first, then the canonical
// priorities, each with its accent icon. Value is the priority string, '' for
// none; its label comes from usePriorityLabel.
export const PRIORITY_FIELDS: { value: string; icon: ReactNode }[] = [
{ value: '', icon: PRIORITY_ICON[''] },
...PRIORITY_ORDER.map((value) => ({ value: value as string, icon: PRIORITY_ICON[value] })),
];