Skip to content

Commit d5218b8

Browse files
authored
fix: correctly trim operation name on insights and add popover title (#6909)
1 parent 49187c9 commit d5218b8

File tree

3 files changed

+19
-9
lines changed

3 files changed

+19
-9
lines changed

.changeset/old-timers-mate.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'hive': patch
3+
---
4+
5+
Correctly trim operation name on insights and add popover title

packages/web/app/src/components/target/insights/List.tsx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { useDebouncedCallback } from 'use-debounce';
66
import { Scale, Section } from '@/components/common';
77
import { Button } from '@/components/ui/button';
88
import { Input } from '@/components/ui/input';
9+
import { Link } from '@/components/ui/link';
910
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '@/components/ui/tooltip';
1011
import { Sortable, Table, TBody, Td, Th, THead, Tr } from '@/components/v2';
1112
import { env } from '@/env/frontend';
@@ -14,7 +15,6 @@ import { DateRangeInput } from '@/gql/graphql';
1415
import { useDecimal, useFormattedDuration, useFormattedNumber } from '@/lib/hooks';
1516
import { pick } from '@/lib/object';
1617
import { ChevronUpIcon, ExclamationTriangleIcon } from '@radix-ui/react-icons';
17-
import { Link } from '@tanstack/react-router';
1818
import {
1919
createColumnHelper,
2020
flexRender,
@@ -68,7 +68,7 @@ function OperationRow({
6868
<Tr>
6969
<Td className="font-medium">
7070
<div className="flex items-center gap-2">
71-
<Button variant="orangeLink" className="h-auto p-0" asChild>
71+
<Button variant="orangeLink" className="h-auto p-0" asChild title={operation.name}>
7272
<Link
7373
className="block max-w-[300px] truncate"
7474
to="/$organizationSlug/$projectSlug/$targetSlug/insights/$operationName/$operationHash"
@@ -234,7 +234,12 @@ function OperationsTable({
234234
const sortedColumnsById = tableInstance.getState().sorting.map(s => s.id);
235235

236236
return (
237-
<div className={clsx('rounded-md border border-gray-800 bg-gray-900/50 p-5', className)}>
237+
<div
238+
className={clsx(
239+
'overflow-x-scroll rounded-md border border-gray-800 bg-gray-900/50 p-5',
240+
className,
241+
)}
242+
>
238243
<Section.Title>Operations</Section.Title>
239244
<Section.Subtitle>List of all operations with their statistics</Section.Subtitle>
240245

pnpm-lock.yaml

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)