Skip to content

Commit e9cca5e

Browse files
authored
fix(ui): slice first 20 rows in csv preview (#4481)
1 parent 5ba4d86 commit e9cca5e

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

keep-ui/app/(keep)/mapping/[rule_id]/executions/page.tsx

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@ import {
2020
ArrowRightIcon,
2121
ChevronDownIcon,
2222
ChevronUpIcon,
23+
QuestionMarkCircleIcon,
2324
} from "@heroicons/react/16/solid";
2425
import { useMappingRule, useMappings } from "@/utils/hooks/useMappingRules";
26+
import { Tooltip } from "@/shared/ui/Tooltip";
2527

2628
interface Pagination {
2729
limit: number;
@@ -80,7 +82,17 @@ export default function MappingExecutionsPage(props: {
8082
className="flex justify-between items-center cursor-pointer"
8183
onClick={() => setIsDataPreviewExpanded(!isDataPreviewExpanded)}
8284
>
83-
<Title>Data Preview</Title>
85+
<Title>
86+
Data Preview
87+
<Tooltip
88+
content={
89+
<>The data preview shows the first 20 rows of the data.</>
90+
}
91+
className="z-50"
92+
>
93+
<QuestionMarkCircleIcon className="w-4 h-4 ml-1 text-gray-400" />
94+
</Tooltip>
95+
</Title>
8496
<Icon
8597
icon={isDataPreviewExpanded ? ChevronUpIcon : ChevronDownIcon}
8698
color="gray"
@@ -98,7 +110,7 @@ export default function MappingExecutionsPage(props: {
98110
</TableRow>
99111
</TableHead>
100112
<TableBody>
101-
{rule.rows.slice(0, 5).map((row, idx) => (
113+
{rule.rows.slice(0, 20).map((row, idx) => (
102114
<TableRow key={idx}>
103115
{Object.values(row).map((value: any, valueIdx) => (
104116
<TableCell key={valueIdx}>

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "keep"
3-
version = "0.41.14"
3+
version = "0.41.15"
44
description = "Alerting. for developers, by developers."
55
authors = ["Keep Alerting LTD"]
66
packages = [{include = "keep"}]

0 commit comments

Comments
 (0)