🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
chore(ui): control for more specific onClick actions in table with peek view (#6086)
marliessophie917516fa914d
diff --git a/web/src/components/star-toggle.tsx b/web/src/components/star-toggle.tsxindex e18f78f939..0e3a500a12 100644--- a/web/src/components/star-toggle.tsx+++ b/web/src/components/star-toggle.tsx@@ -31,6 +31,7 @@ export function StarToggle({}}disabled={disabled}loading={isLoading}+ aria-label="bookmark"><StarIconclassName="h-4 w-4"diff --git a/web/src/components/table/peek.tsx b/web/src/components/table/peek.tsxindex 84edef01cc..0859c69d70 100644--- a/web/src/components/table/peek.tsx+++ b/web/src/components/table/peek.tsx@@ -39,11 +39,11 @@ export function TablePeekView<TData>({<Sheetopen={!!selectedRowId}onOpenChange={(open) => {- // Ignore close events from checkbox or button clicks to ensure integrity of table row actions+ // Ignore close events from checkbox or bookmark star toggle clicks to ensure integrity of table row actionsif (!open &&(document.activeElement?.closest('[role="checkbox"]') ||- document.activeElement?.closest("button"))+ document.activeElement?.closest('[aria-label="bookmark"]'))) {return;}