mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: temporarily hide prompt column from table view (#21586)
This commit is contained in:
@@ -56,7 +56,6 @@ export const RequestLogsPageView: FC<RequestLogsPageViewProps> = ({
|
||||
<TableRow className="text-xs">
|
||||
<TableHead>Timestamp</TableHead>
|
||||
<TableHead>Initiator</TableHead>
|
||||
<TableHead>Prompt</TableHead>
|
||||
<TableHead>Tokens</TableHead>
|
||||
<TableHead>Model</TableHead>
|
||||
<TableHead>Tool Calls</TableHead>
|
||||
|
||||
@@ -107,8 +107,6 @@ export function tokenUsageMetadataMerge(
|
||||
export const RequestLogsRow: FC<RequestLogsRowProps> = ({ interception }) => {
|
||||
const [isOpen, setIsOpen] = useState(false);
|
||||
|
||||
const [firstPrompt] = interception.user_prompts;
|
||||
|
||||
const inputTokens = interception.token_usages.reduce(
|
||||
(acc, tokenUsage) => acc + tokenUsage.input_tokens,
|
||||
0,
|
||||
@@ -169,22 +167,6 @@ export const RequestLogsRow: FC<RequestLogsRowProps> = ({ interception }) => {
|
||||
</div>
|
||||
</div>
|
||||
</TableCell>
|
||||
<TableCell className="min-w-0">
|
||||
{/*
|
||||
This is ensuring that the prompt is truncated and won't escape its bounding
|
||||
container with an `absolute`.
|
||||
|
||||
Alternatively we could use a `table-fixed` table, but that would break worse
|
||||
on mobile with the `min-w-0` column required.
|
||||
|
||||
This is a bit of a hack, but it works.
|
||||
*/}
|
||||
<div className="w-full h-4 min-w-48 relative">
|
||||
<div className="absolute inset-0 leading-none overflow-hidden truncate">
|
||||
{firstPrompt?.prompt}
|
||||
</div>
|
||||
</div>
|
||||
</TableCell>
|
||||
<TableCell className="w-32">
|
||||
<div className="flex items-center">
|
||||
<TooltipProvider>
|
||||
|
||||
Reference in New Issue
Block a user