Skip to content

Commit c92faaf

Browse files
Show tooltip for K8s support in API coverage table
1 parent 11aa287 commit c92faaf

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

src/components/feature-coverage/FeatureCoverage.tsx

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,13 @@ import type {
2121
ColumnDef,
2222
ColumnFiltersState,
2323
} from '@tanstack/react-table';
24+
import { CircleHelp } from 'lucide-react';
2425

26+
declare module '@tanstack/react-table' {
27+
interface ColumnMeta<TData extends unknown, TValue> {
28+
tooltip?: string;
29+
}
30+
}
2531

2632
const columns: ColumnDef<any>[] = [
2733
{
@@ -55,10 +61,13 @@ const columns: ColumnDef<any>[] = [
5561
{
5662
id: 'k8s_support',
5763
accessorFn: (row) => row[Object.keys(row)[0]].k8s_test_suite,
58-
header: () => 'Tested on Kubernetes',
64+
header: () => 'Verified on Kubernetes',
5965
cell: ({ getValue }) => (getValue() ? '✔️' : ''),
6066
enableSorting: false,
6167
enableResizing: false,
68+
meta: {
69+
tooltip: 'Indicates whether this operation has passed our internal integration test suite running against a LocalStack pod deployed on a Kubernetes cluster.'
70+
}
6271
},
6372
];
6473

@@ -181,6 +190,20 @@ export default function PersistenceCoverage({ service }: { service: string }) {
181190
header.column.columnDef.header,
182191
header.getContext()
183192
)}
193+
{header.column.columnDef.meta?.tooltip && (
194+
<span
195+
title={header.column.columnDef.meta.tooltip}
196+
style={{
197+
cursor: 'help',
198+
display: 'inline-flex',
199+
}}
200+
>
201+
<CircleHelp
202+
size={20}
203+
className="text-gray-500 dark:text-gray-200 hover:text-gray-300"
204+
/>
205+
</span>
206+
)}
184207
{canSort && (
185208
<span>
186209
{header.column.getIsSorted() === 'asc'

0 commit comments

Comments
 (0)