Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 0 additions & 25 deletions ui/src/pages/Invocations.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,15 +104,6 @@ const STATUS_OPTIONS = STATUSES.map((status) => ({
value: status,
}));

const truncateMiddle = (
value: string,
startChars = 8,
endChars = 6,
): string => {
if (value.length <= startChars + endChars + 1) return value;
return `${value.slice(0, startChars)}…${value.slice(-endChars)}`;
};

const wildcardToRegExp = (pattern: string): RegExp => {
const escapedPattern = pattern.replace(/[.+^${}()|[\]\\]/g, "\\$&");
return new RegExp(`^${escapedPattern.replace(/\*/g, ".*")}$`);
Expand Down Expand Up @@ -672,7 +663,6 @@ const Invocations: React.FC = () => {
zIndex={1}>
<Tr>
<Th>Agent</Th>
<Th>ID</Th>
<Th>Server</Th>
<Th>Tool</Th>
<Th>Agent Record</Th>
Expand Down Expand Up @@ -756,21 +746,6 @@ const Invocations: React.FC = () => {
);
})()}
</Td>
<Td>
<Tooltip
hasArrow
label={inv.invocation_id}
placement="top-start"
openDelay={300}>
<Text
fontSize="xs"
fontFamily="mono"
color="text.subtle"
whiteSpace="nowrap">
{truncateMiddle(inv.invocation_id)}
</Text>
</Tooltip>
</Td>
<Td>
<Text fontSize="xs" color="text.subtle">
{inv.server_name || "none"}
Expand Down