docs & ux improvmeents
This commit is contained in:
@@ -12,7 +12,7 @@ import { useSectorStore } from '../../store/sectorStore';
|
||||
interface OptimizerStats {
|
||||
totalOptimized: number;
|
||||
averageScoreImprovement: number;
|
||||
totalCreditsUsed: number;
|
||||
totalOperations: number;
|
||||
contentWithScores: number;
|
||||
contentWithoutScores: number;
|
||||
}
|
||||
@@ -53,7 +53,7 @@ export default function OptimizerDashboard() {
|
||||
setStats({
|
||||
totalOptimized,
|
||||
averageScoreImprovement: parseFloat(averageScoreImprovement.toFixed(1)),
|
||||
totalCreditsUsed: 0, // Would need to fetch from optimization tasks
|
||||
totalOperations: 0, // Would need to fetch from optimization tasks
|
||||
contentWithScores: contentWithScores.length,
|
||||
contentWithoutScores: content.length - contentWithScores.length,
|
||||
});
|
||||
@@ -118,9 +118,9 @@ export default function OptimizerDashboard() {
|
||||
/>
|
||||
|
||||
<EnhancedMetricCard
|
||||
title="Credits Used"
|
||||
value={stats.totalCreditsUsed.toString()}
|
||||
subtitle="Total credits for optimization"
|
||||
title="Optimizations"
|
||||
value={stats.totalOperations.toString()}
|
||||
subtitle="Total optimization runs"
|
||||
icon={<BoltIcon className="w-6 h-6" />}
|
||||
accentColor="orange"
|
||||
onClick={() => navigate('/optimizer/content')}
|
||||
|
||||
Reference in New Issue
Block a user