style: Update task status and priority colors for improved visibility and consistency with Minecraft theme
This commit is contained in:
@@ -157,19 +157,19 @@ const TaskPanel = ({ turtles, apiUrl }) => {
|
||||
|
||||
const getStatusColor = (status) => {
|
||||
switch (status) {
|
||||
case 'pending': return '#94a3b8';
|
||||
case 'in_progress': return '#3b82f6';
|
||||
case 'completed': return '#10b981';
|
||||
case 'failed': return '#ef4444';
|
||||
default: return '#94a3b8';
|
||||
case 'pending': return '#a0a0a0';
|
||||
case 'in_progress': return '#345ec3';
|
||||
case 'completed': return '#4a8c2a';
|
||||
case 'failed': return '#aa0000';
|
||||
default: return '#a0a0a0';
|
||||
}
|
||||
};
|
||||
|
||||
const getPriorityLabel = (priority) => {
|
||||
if (priority >= 8) return { label: 'Critical', color: '#ef4444' };
|
||||
if (priority >= 6) return { label: 'High', color: '#f59e0b' };
|
||||
if (priority >= 4) return { label: 'Medium', color: '#3b82f6' };
|
||||
return { label: 'Low', color: '#94a3b8' };
|
||||
if (priority >= 8) return { label: 'Critical', color: '#ff5555' };
|
||||
if (priority >= 6) return { label: 'High', color: '#ffaa00' };
|
||||
if (priority >= 4) return { label: 'Medium', color: '#345ec3' };
|
||||
return { label: 'Low', color: '#a0a0a0' };
|
||||
};
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user