From 6c1373c33212e26521701acf73c0398721b3a881 Mon Sep 17 00:00:00 2001 From: Jacob Richman Date: Fri, 15 Aug 2025 20:18:31 -0700 Subject: Revert "Update semantic color tokens" (#6365) --- .../cli/src/ui/components/ToolStatsDisplay.tsx | 61 ++++++++-------------- 1 file changed, 23 insertions(+), 38 deletions(-) (limited to 'packages/cli/src/ui/components/ToolStatsDisplay.tsx') diff --git a/packages/cli/src/ui/components/ToolStatsDisplay.tsx b/packages/cli/src/ui/components/ToolStatsDisplay.tsx index 4bcee9fc..f2335d9e 100644 --- a/packages/cli/src/ui/components/ToolStatsDisplay.tsx +++ b/packages/cli/src/ui/components/ToolStatsDisplay.tsx @@ -6,7 +6,7 @@ import React from 'react'; import { Box, Text } from 'ink'; -import { theme } from '../semantic-colors.js'; +import { Colors } from '../colors.js'; import { formatDuration } from '../utils/formatters.js'; import { getStatusColor, @@ -37,16 +37,16 @@ const StatRow: React.FC<{ return ( - {name} + {name} - {stats.count} + {stats.count} {successRate.toFixed(1)}% - {formatDuration(avgDuration)} + {formatDuration(avgDuration)} ); @@ -63,13 +63,11 @@ export const ToolStatsDisplay: React.FC = () => { return ( - - No tool calls have been made in this session. - + No tool calls have been made in this session. ); } @@ -96,13 +94,13 @@ export const ToolStatsDisplay: React.FC = () => { return ( - + Tool Stats For Nerds @@ -110,24 +108,16 @@ export const ToolStatsDisplay: React.FC = () => { {/* Header */} - - Tool Name - + Tool Name - - Calls - + Calls - - Success Rate - + Success Rate - - Avg Duration - + Avg Duration @@ -149,47 +139,45 @@ export const ToolStatsDisplay: React.FC = () => { {/* User Decision Summary */} - - User Decision Summary - + User Decision Summary - Total Reviewed Suggestions: + Total Reviewed Suggestions: - {totalReviewed} + {totalReviewed} - » Accepted: + » Accepted: - {totalDecisions.accept} + {totalDecisions.accept} - » Rejected: + » Rejected: - {totalDecisions.reject} + {totalDecisions.reject} - » Modified: + » Modified: - {totalDecisions.modify} + {totalDecisions.modify} @@ -207,13 +195,10 @@ export const ToolStatsDisplay: React.FC = () => { - Overall Agreement Rate: + Overall Agreement Rate: - 0 ? agreementColor : theme.text.primary} - > + 0 ? agreementColor : undefined}> {totalReviewed > 0 ? `${agreementRate.toFixed(1)}%` : '--'} -- cgit v1.2.3