From f58a24be4e8aac0f23cf89c600f735a6e59a41da Mon Sep 17 00:00:00 2001 From: Sasha Date: Thu, 21 Nov 2024 22:39:33 +0100 Subject: [PATCH] [OPIK-438]: fix tailwind issues; --- .../CompareExperimentsPanel.tsx | 4 ++-- .../CompareExperimentsViewer.tsx | 17 ++++++++--------- .../FeedbackScoresTab/ExperimentHeader.tsx | 2 +- .../FeedbackScoresTab/FeedbackScoreCell.tsx | 2 +- .../OutputTab/ExperimentDataset.tsx | 3 ++- .../OutputTab/ExperimentDatasetItems.tsx | 2 -- 6 files changed, 14 insertions(+), 16 deletions(-) diff --git a/apps/opik-frontend/src/components/pages/CompareExperimentsPage/CompareExperimentsPanel/CompareExperimentsPanel.tsx b/apps/opik-frontend/src/components/pages/CompareExperimentsPage/CompareExperimentsPanel/CompareExperimentsPanel.tsx index 70d78feed4..09ff732d00 100644 --- a/apps/opik-frontend/src/components/pages/CompareExperimentsPage/CompareExperimentsPanel/CompareExperimentsPanel.tsx +++ b/apps/opik-frontend/src/components/pages/CompareExperimentsPage/CompareExperimentsPanel/CompareExperimentsPanel.tsx @@ -85,7 +85,7 @@ const CompareExperimentsPanel: React.FunctionComponent< return (
-

+

{isSeveralExperiments ? "Experiment items" : "Experiment item"}

@@ -103,7 +103,7 @@ const CompareExperimentsPanel: React.FunctionComponent< +
-

{name}

+

{name}

{isTraceExist && ( @@ -90,15 +94,10 @@ const CompareExperimentsViewer: React.FunctionComponent< )}
-
- {renderOutput()} -
+
{renderOutput()}
{isTraceExist && ( -
+
e.stopPropagation()} > {hasData && ( diff --git a/apps/opik-frontend/src/components/pages/CompareExperimentsPage/CompareExperimentsPanel/FeedbackScoresTab/FeedbackScoreCell.tsx b/apps/opik-frontend/src/components/pages/CompareExperimentsPage/CompareExperimentsPanel/FeedbackScoresTab/FeedbackScoreCell.tsx index d0363b53a4..d64bb7c23c 100644 --- a/apps/opik-frontend/src/components/pages/CompareExperimentsPage/CompareExperimentsPanel/FeedbackScoresTab/FeedbackScoreCell.tsx +++ b/apps/opik-frontend/src/components/pages/CompareExperimentsPage/CompareExperimentsPanel/FeedbackScoresTab/FeedbackScoreCell.tsx @@ -17,7 +17,7 @@ const FeedbackScoreCell = (context: CellContext) => { className="gap-1.5" >

{value}

diff --git a/apps/opik-frontend/src/components/pages/CompareExperimentsPage/CompareExperimentsPanel/OutputTab/ExperimentDataset.tsx b/apps/opik-frontend/src/components/pages/CompareExperimentsPage/CompareExperimentsPanel/OutputTab/ExperimentDataset.tsx index f0029d09a6..de43a5b406 100644 --- a/apps/opik-frontend/src/components/pages/CompareExperimentsPage/CompareExperimentsPanel/OutputTab/ExperimentDataset.tsx +++ b/apps/opik-frontend/src/components/pages/CompareExperimentsPage/CompareExperimentsPanel/OutputTab/ExperimentDataset.tsx @@ -45,8 +45,9 @@ const ExperimentDataset = ({ data }: ExperimentDatasetProps) => { }); }, [dataKeys]); + // return ( -
+

Dataset item

diff --git a/apps/opik-frontend/src/components/pages/CompareExperimentsPage/CompareExperimentsPanel/OutputTab/ExperimentDatasetItems.tsx b/apps/opik-frontend/src/components/pages/CompareExperimentsPage/CompareExperimentsPanel/OutputTab/ExperimentDatasetItems.tsx index 4a0b87a7eb..16556148d2 100644 --- a/apps/opik-frontend/src/components/pages/CompareExperimentsPage/CompareExperimentsPanel/OutputTab/ExperimentDatasetItems.tsx +++ b/apps/opik-frontend/src/components/pages/CompareExperimentsPage/CompareExperimentsPanel/OutputTab/ExperimentDatasetItems.tsx @@ -31,8 +31,6 @@ const ExperimentDatasetItems = ({ return pick(data, selectedKeys); }, [selectedKeys, data]); - // ALEX - // @ts-ignore const showImages = hasImages && selectedData?.["images"]; if (!showImages) {