diff --git a/app/(app)/results/page.tsx b/app/(app)/results/page.tsx index 5d8c942..063c1a1 100644 --- a/app/(app)/results/page.tsx +++ b/app/(app)/results/page.tsx @@ -94,7 +94,7 @@ const ResultsPage = (): JSX.Element => {
- + Test Statistics Overall Test execution statistics @@ -201,7 +201,7 @@ const ResultsPage = (): JSX.Element => { )} - + Test Details List of all the executed test cases diff --git a/components/charts/area-chart.tsx b/components/charts/area-chart.tsx index 0bd5cfb..e5335b5 100644 --- a/components/charts/area-chart.tsx +++ b/components/charts/area-chart.tsx @@ -37,7 +37,7 @@ export function AreaChartComponent({ }: AreaChartProps): JSX.Element { return ( - + {title} {description && {description}} diff --git a/components/charts/dough-nut-chart.tsx b/components/charts/dough-nut-chart.tsx index 5ccaceb..32f02a6 100644 --- a/components/charts/dough-nut-chart.tsx +++ b/components/charts/dough-nut-chart.tsx @@ -38,7 +38,7 @@ const DoughNutComponent = ({ }: DoughNutProps): JSX.Element => { return ( - + {title} {description && {description}} diff --git a/components/charts/pie-chart.tsx b/components/charts/pie-chart.tsx index c4ef022..f149bb3 100644 --- a/components/charts/pie-chart.tsx +++ b/components/charts/pie-chart.tsx @@ -37,7 +37,7 @@ export function PieComponent({ }: PieProps): JSX.Element { return ( - + {title} {description && {description}} diff --git a/components/data-table/data-table-toolbar.tsx b/components/data-table/data-table-toolbar.tsx index 5cc579f..eebea7a 100644 --- a/components/data-table/data-table-toolbar.tsx +++ b/components/data-table/data-table-toolbar.tsx @@ -5,6 +5,8 @@ import { statuses } from './data'; import { Button } from '@/components/ui/button'; import { Cross2Icon } from '@radix-ui/react-icons'; import { DataTableViewOptions } from './data-table-view-options'; +import { Switch } from '../ui/switch'; +import { useState } from 'react'; interface DataTableToolbarProps { table: Table; @@ -16,6 +18,22 @@ export function DataTableToolbar({ filterColumn, }: DataTableToolbarProps): JSX.Element { const isFiltered = table.getState().columnFilters.length > 0; + const [showConfigMethods, setShowConfigMethods] = useState(true); + + const handleShowConfig = (): void => { + setShowConfigMethods(!showConfigMethods); + if (showConfigMethods) { + table.getColumn('is_config')?.setFilterValue(false); + } else { + table.getColumn('is_config')?.setFilterValue(null); + } + }; + + const handleResetFilters = (): void => { + table.resetColumnFilters(); + setShowConfigMethods(true); + }; + return (
({ options={statuses} /> )} +
+ + +
{isFiltered && (