This commit is contained in:
Desktop
2025-11-14 04:47:54 +05:00
parent 741070c116
commit 946b419fa4
2 changed files with 24 additions and 32 deletions

View File

@@ -257,34 +257,30 @@ export default function AutomationDashboard() {
<EnhancedMetricCard <EnhancedMetricCard
title="Active Workflows" title="Active Workflows"
value={stats?.activeWorkflows || 0} value={stats?.activeWorkflows || 0}
icon={BoltIcon} icon={<BoltIcon className="size-6" />}
trend={{ value: 0, isPositive: true }} trend={0}
color="from-[#5d4ae3] to-[#3a2f94]" accentColor="purple"
loading={loading}
/> />
<EnhancedMetricCard <EnhancedMetricCard
title="Scheduled Tasks" title="Scheduled Tasks"
value={stats?.scheduledTasks || 0} value={stats?.scheduledTasks || 0}
icon={CalendarIcon} icon={<CalendarIcon className="size-6" />}
trend={{ value: 0, isPositive: true }} trend={0}
color="from-[#0693e3] to-[#0472b8]" accentColor="blue"
loading={loading}
/> />
<EnhancedMetricCard <EnhancedMetricCard
title="Completed Today" title="Completed Today"
value={stats?.completedToday || 0} value={stats?.completedToday || 0}
icon={CheckCircleIcon} icon={<CheckCircleIcon className="size-6" />}
trend={{ value: 0, isPositive: true }} trend={0}
color="from-[#0bbf87] to-[#08966b]" accentColor="green"
loading={loading}
/> />
<EnhancedMetricCard <EnhancedMetricCard
title="Success Rate" title="Success Rate"
value={`${stats?.successRate || 0}%`} value={`${stats?.successRate || 0}%`}
icon={PaperPlaneIcon} icon={<PaperPlaneIcon className="size-6" />}
trend={{ value: 0, isPositive: true }} trend={0}
color="from-[#ff7a00] to-[#cc5f00]" accentColor="orange"
loading={loading}
/> />
</div> </div>

View File

@@ -155,34 +155,30 @@ export default function ThinkerDashboard() {
<EnhancedMetricCard <EnhancedMetricCard
title="Prompt Library" title="Prompt Library"
value={stats?.totalPrompts || 0} value={stats?.totalPrompts || 0}
icon={FileTextIcon} icon={<FileTextIcon className="size-6" />}
trend={{ value: 0, isPositive: true }} trend={0}
color="from-[#ff7a00] to-[#cc5f00]" accentColor="orange"
loading={loading}
/> />
<EnhancedMetricCard <EnhancedMetricCard
title="Author Profiles" title="Author Profiles"
value={stats?.activeProfiles || 0} value={stats?.activeProfiles || 0}
icon={UserIcon} icon={<UserIcon className="size-6" />}
trend={{ value: 0, isPositive: true }} trend={0}
color="from-[#0693e3] to-[#0472b8]" accentColor="blue"
loading={loading}
/> />
<EnhancedMetricCard <EnhancedMetricCard
title="Strategies" title="Strategies"
value={stats?.strategies || 0} value={stats?.strategies || 0}
icon={ShootingStarIcon} icon={<ShootingStarIcon className="size-6" />}
trend={{ value: 0, isPositive: true }} trend={0}
color="from-[#5d4ae3] to-[#3a2f94]" accentColor="purple"
loading={loading}
/> />
<EnhancedMetricCard <EnhancedMetricCard
title="Usage This Month" title="Usage This Month"
value={stats?.usageThisMonth || 0} value={stats?.usageThisMonth || 0}
icon={BoltIcon} icon={<BoltIcon className="size-6" />}
trend={{ value: 0, isPositive: true }} trend={0}
color="from-[#0bbf87] to-[#08966b]" accentColor="green"
loading={loading}
/> />
</div> </div>