🪢 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
style(tracing): separate pulse chart with a top border (LFE-14829) (#15870)
Nikita Kabardinca5b6d95dbde
diff --git a/web/src/features/events/components/outlier-strip/EventsOutlierStrip.tsx b/web/src/features/events/components/outlier-strip/EventsOutlierStrip.tsxindex 094666c57f..a355a871cd 100644--- a/web/src/features/events/components/outlier-strip/EventsOutlierStrip.tsx+++ b/web/src/features/events/components/outlier-strip/EventsOutlierStrip.tsx@@ -99,7 +99,7 @@ const AggDropdown = ({<DropdownMenu><DropdownMenuTriggeraria-label={`${metricLabel} aggregation: ${value}`}- className="text-muted-foreground hover:text-foreground flex items-center gap-0.5 text-[13px] leading-none underline-offset-2 hover:underline"+ className="text-muted-foreground hover:text-foreground flex items-center gap-0.5 text-xs leading-none underline-offset-2 hover:underline">{value}<ChevronDown className="h-2.5 w-2.5" />@@ -140,7 +140,8 @@ const ModeDropdown = ({<DropdownMenu><DropdownMenuTriggeraria-label={`Chart mode: ${modeLabel(value)}`}- className="text-foreground hover:text-muted-foreground flex items-center gap-0.5 text-[13px] leading-none font-bold"+ // Same typography as the Table/Chart tabs (toggleVariants + text-xs).+ className="text-foreground hover:text-muted-foreground flex items-center gap-0.5 text-xs leading-none font-bold">{modeLabel(value)}<ChevronDown className="h-2.5 w-2.5" />@@ -382,9 +383,13 @@ export function EventsOutlierStrip({// needs the width, so painting before the first measurement would flash a// skeleton sized for nothing.return (- <div ref={wrapperRef} className="shrink-0 border-b">+ // Ruled top and bottom (LFE-14829): the strip reads as its own band+ // instead of floating between the toolbar and the table header.+ <div ref={wrapperRef} className="shrink-0 border-y">{size === undefined ? null : (- <div className="relative px-2 pt-1 pb-1">+ // pt-2.5 keeps the metric switcher off the top rule; the label then+ // sits closer to its chart (mt-1.5) than to the band's edge.+ <div className="relative px-2 pt-2.5 pb-1">{!canApplyFilters ? (<div><div className="flex items-baseline gap-1.5">@@ -395,7 +400,7 @@ export function EventsOutlierStrip({/></div><OutlierBarStrip- className="mt-2"+ className="mt-1.5"dense={[]}maxValue={0}ticks={[]}@@ -441,7 +446,7 @@ export function EventsOutlierStrip({)}</div><OutlierBarStrip- className="mt-2"+ className="mt-1.5"dense={series.dense}maxValue={series.maxValue}ticks={series.ticks}diff --git a/web/src/features/events/components/outlier-strip/OutlierBarStrip.stories.tsx b/web/src/features/events/components/outlier-strip/OutlierBarStrip.stories.tsxindex e80227f939..63b92a1aa5 100644--- a/web/src/features/events/components/outlier-strip/OutlierBarStrip.stories.tsx+++ b/web/src/features/events/components/outlier-strip/OutlierBarStrip.stories.tsx@@ -126,6 +126,18 @@ export const NoMetricData = meta.story({},});+/** Nothing in the window at all. The notice centers on the bar canvas, so it+ * sits in the plot's middle rather than drifting into the time-label band+ * (LFE-14829). */+export const EmptyRange = meta.story({+ args: {+ ...spikyCount,+ dense: spikyCount.dense.map((bin) => ({ ...bin, value: null, count: 0 })),+ maxValue: 0,+ metric: "count",+ },+});+export const MinimalNoLabels = meta.story({args: {...spikyCost,diff --git a/web/src/features/events/components/outlier-strip/OutlierBarStrip.tsx b/web/src/features/events/components/outlier-strip/OutlierBarStrip.tsxindex 9cc91d79c7..93852205f5 100644--- a/web/src/features/events/components/outlier-strip/OutlierBarStrip.tsx+++ b/web/src/features/events/components/outlier-strip/OutlierBarStrip.tsx@@ -539,7 +539,12 @@ export function OutlierBarStrip({</svg>{!hasData && (- <span className="text-muted-foreground/70 pointer-events-none absolute inset-0 flex items-center justify-center text-[10px]">+ // Centered on the bar canvas, not the svg: inset-0 would include the+ // time-label band and push the notice below the plot's middle.+ <span+ className="text-muted-foreground/70 pointer-events-none absolute inset-x-0 top-0 flex items-center justify-center text-[10px]"+ style={{ height: heightPx }}+ >{hasActivity? `No ${metricSpec.shortLabel.toLowerCase()} data in range`: "No observations in range"}