fix(ui): Update TasksDashboard badges for consistency

- Platform badge now shows green (emerald) for dutchie even when null/undefined
- State badge shows "ALL" (uppercase) with indigo color when no state specified
- Remove "(HTTP transport)" from store discovery description

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Kelly
2025-12-13 17:10:57 -07:00
parent ba15802a77
commit 1490c60d2a
2 changed files with 4 additions and 6 deletions

View File

@@ -103,7 +103,7 @@ class TaskScheduler {
role: 'store_discovery' as TaskRole,
interval_hours: 168, // Weekly
priority: 5,
description: 'Discover new Dutchie stores weekly (HTTP transport)',
description: 'Discover new Dutchie stores weekly',
method: 'http',
is_immutable: true,
platform: 'dutchie',

View File

@@ -1421,9 +1421,9 @@ export default function TasksDashboard() {
{schedule.state_code}
</span>
) : (
<span className="inline-flex items-center gap-1 px-2 py-0.5 bg-gray-100 text-gray-600 rounded font-medium">
<span className="inline-flex items-center gap-1 px-2 py-0.5 bg-indigo-50 text-indigo-700 rounded font-medium">
<Globe className="w-3 h-3" />
All
ALL
</span>
)}
</td>
@@ -1431,11 +1431,9 @@ export default function TasksDashboard() {
<span className={`inline-flex items-center px-2 py-0.5 rounded text-xs font-medium ${
schedule.platform === 'jane'
? 'bg-pink-100 text-pink-700'
: schedule.platform === 'dutchie'
? 'bg-emerald-100 text-emerald-700'
: schedule.platform === 'treez'
? 'bg-amber-100 text-amber-700'
: 'bg-gray-100 text-gray-600'
: 'bg-emerald-100 text-emerald-700'
}`}>
{schedule.platform || 'dutchie'}
</span>