refactor(design): replace status, priority and severity color maps with StatusTag and mono tokens
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -88,7 +88,7 @@ export default async function ManagementPage() {
|
||||
|
||||
const SEVERITY_LABELS: Record<number, string> = { 1: 'Minor', 2: 'Low', 3: 'Moderate', 4: 'Serious', 5: 'Critical' }
|
||||
const SEVERITY_COLORS: Record<number, string> = {
|
||||
1: 'bg-green-400', 2: 'bg-yellow-400', 3: 'bg-orange-400', 4: 'bg-red-500', 5: 'bg-red-700',
|
||||
1: 'bg-neutral-300', 2: 'bg-neutral-500', 3: 'bg-accent-300', 4: 'bg-accent', 5: 'bg-accent-700',
|
||||
}
|
||||
|
||||
return (
|
||||
@@ -141,9 +141,9 @@ export default async function ManagementPage() {
|
||||
{([5, 4, 3, 2, 1] as const).map(sev => (
|
||||
<div key={sev} className="flex items-center gap-3">
|
||||
<span className="text-sm text-gray-600 w-24 shrink-0">{SEVERITY_LABELS[sev]}</span>
|
||||
<div className="flex-1 bg-gray-100 rounded-full h-3">
|
||||
<div className="flex-1 bg-gray-100 h-3">
|
||||
<div
|
||||
className={`h-3 rounded-full ${SEVERITY_COLORS[sev]}`}
|
||||
className={`h-3 ${SEVERITY_COLORS[sev]}`}
|
||||
style={{ width: severityMax > 0 ? `${(severityDist[sev] / severityMax) * 100}%` : '0%' }}
|
||||
/>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user