🪢 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
fix(filter-sidebar): always show Clear when a filter is active (LFE-14402) (#15314)
Nikita Kabardin86a0f0a71021
diff --git a/web/src/components/table/data-table-controls.tsx b/web/src/components/table/data-table-controls.tsxindex 41ee2a50b5..50c01e3b55 100644--- a/web/src/components/table/data-table-controls.tsx+++ b/web/src/components/table/data-table-controls.tsx@@ -973,7 +973,7 @@ const FilterAccordionTrigger = ({// top-0: the panel header row sits outside the scroll container// (ScrollArea wraps only the facet list), so triggers stick to its top.// The expand chevron leads the row (> closed, v open); the clear button- // overlays on hover without reserving layout space.+ // sits at the row's right edge and stays visible whenever a value is set.<AccordionPrimitive.Header className="bg-background sticky top-0 z-[1] flex px-2 py-0.5"><AccordionPrimitive.TriggerclassName={cn(@@ -1133,9 +1133,12 @@ export function FilterAccordionItem({<Tooltip delayDuration={80}><TooltipTrigger asChild>{/* div[role=button], not <Button>: the accordion trigger is- already a <button> and buttons cannot nest. Rendered as a- hover/focus-revealed OVERLAY (absolute, own background) so- it never shifts the header layout. */}+ already a <button> and buttons cannot nest. Always visible+ while the facet has a selection (no hover gating) — the clear+ affordance used to reveal only on header hover, which hid the+ one obvious way to drop a filter. shrink-0 keeps it in flow at+ the row's right edge so the label/chip truncate before reaching+ it; self-start pins it to the top line on two-line headers. */}<divrole="button"tabIndex={0}@@ -1150,15 +1153,11 @@ export function FilterAccordionItem({onReset();}}}- // top-1 anchors the button to the label line — a 20px- // button in the 28px single-line header reads centered, and- // on two-line headers it stays top-right. bg-accent matches- // the hovered header band (the button is only visible while- // the band shows its hover color).- className="bg-accent text-muted-foreground hover:text-foreground absolute top-0.5 right-1 flex h-5 w-5 cursor-pointer items-center justify-center rounded-sm opacity-0 transition-opacity group-hover/facet:opacity-100 focus-visible:opacity-100"+ className="text-muted-foreground hover:text-foreground flex shrink-0 cursor-pointer items-center gap-0.5 self-start rounded-sm px-1 py-0.5 text-[11px] leading-4 font-normal transition-colors hover:underline focus-visible:underline focus-visible:outline-none"aria-label={`Clear ${label} filter`}>- <IconX className="h-3 w-3" />+ <IconX className="h-3 w-3 shrink-0" />+ Clear</div></TooltipTrigger><TooltipContent side="right" className="text-xs">