diff --git a/src/app/(authenticated)/usage/TaskDrawer.tsx b/src/app/(authenticated)/usage/TaskDrawer.tsx index fff97875b7..926e2f77c9 100644 --- a/src/app/(authenticated)/usage/TaskDrawer.tsx +++ b/src/app/(authenticated)/usage/TaskDrawer.tsx @@ -6,14 +6,7 @@ import { getMessages } from '@/actions/analytics'; import { useOrganizationSettings } from '@/hooks/useOrganizationSettings'; import { formatCurrency, formatNumber } from '@/lib/formatters'; import { generateFallbackTitle } from '@/lib/task-utils'; -import { - Drawer, - DrawerContent, - DrawerDescription, - DrawerHeader, - DrawerTitle, - Button, -} from '@/components/ui'; +import { Drawer, DrawerContent, Button } from '@/components/ui'; import { ShareButton } from '@/components/task-sharing/ShareButton'; import { Status } from './Status'; @@ -38,67 +31,70 @@ export const TaskDrawer = ({ task, onClose }: TaskDrawerProps) => { return ( - -
- {isTaskSharingEnabled && } - -
- {task.title || generateFallbackTitle(task)} - {task.taskId} -
-
-
-
- Developer - {task.user.name} +
+
+
+ {isTaskSharingEnabled && } +
-
- Provider - - {task.provider} - -
-
- Model - {task.model} -
- {task.mode && ( +

+ {task.title || generateFallbackTitle(task)} +

+
- Mode - {task.mode} + Developer + {task.user.name}
+
+ Provider + + {task.provider} + +
+
+ Model + + {task.model} + +
+ {task.mode && ( +
+ Mode + {task.mode} +
+ )} +
+ Tokens + + {formatNumber(task.tokens)} + +
+
+ Cost + + {formatCurrency(task.cost)} + +
+
+ Date + + {new Date(task.timestamp * 1000).toLocaleString()} + +
+
+ Status + +
+
+ {typeof messages !== 'undefined' && messages.length > 0 && ( + <> +

Conversation

+ + )} -
- Tokens - - {formatNumber(task.tokens)} - -
-
- Cost - - {formatCurrency(task.cost)} - -
-
- Date - - {new Date(task.timestamp * 1000).toLocaleString()} - -
-
- Status - -
- {typeof messages !== 'undefined' && messages.length > 0 && ( - <> -

Conversation

- - - )}