🪢 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): move home dashboard tool bar into header (#10356)
Marc Klingen35bc94bfdfca
diff --git a/web/src/features/filters/components/multi-select.tsx b/web/src/features/filters/components/multi-select.tsxindex 959b85e846..17226292fa 100644--- a/web/src/features/filters/components/multi-select.tsx+++ b/web/src/features/filters/components/multi-select.tsx@@ -130,7 +130,7 @@ export function MultiSelect({<Buttonvariant="outline"className={cn(- "flex h-8 w-full items-center justify-between gap-x-2 rounded-md border border-input bg-transparent px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",+ "flex h-8 w-full items-center justify-between gap-x-2 rounded-md border border-input px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",className,)}disabled={disabled}diff --git a/web/src/pages/project/[projectId]/index.tsx b/web/src/pages/project/[projectId]/index.tsxindex 90319c2005..768800a36e 100644--- a/web/src/pages/project/[projectId]/index.tsx+++ b/web/src/pages/project/[projectId]/index.tsx@@ -186,65 +186,69 @@ export default function Dashboard() {scrollableheaderProps={{title: "Home",- actionButtonsRight: <SetupTracingButton />,+ actionButtonsLeft: (+ <>+ <TimeRangePicker+ timeRange={timeRange}+ onTimeRangeChange={setTimeRange}+ timeRangePresets={dashboardTimeRangePresets}+ className="my-0 max-w-full overflow-x-auto"+ disabled={+ lookbackLimit+ ? {+ before: new Date(+ new Date().getTime() -+ lookbackLimit * 24 * 60 * 60 * 1000,+ ),+ }+ : undefined+ }+ />+ <MultiSelect+ title="Environment"+ label="Env"+ values={selectedEnvironments}+ onValueChange={useDebounce(setSelectedEnvironments)}+ options={environmentOptions.map((env) => ({+ value: env,+ }))}+ className="my-0 w-auto overflow-hidden"+ />+ <PopoverFilterBuilder+ columns={filterColumns}+ filterState={userFilterState}+ onChange={useDebounce(setUserFilterState)}+ />+ </>+ ),+ actionButtonsRight: (+ <>+ {uiCustomization?.feedbackHref === undefined && (+ <FeedbackButtonWrapper+ title="Request Chart"+ description="Your feedback matters! Let the Langfuse team know what additional data or metrics you'd like to see in your dashboard."+ className="hidden lg:flex"+ >+ <Button+ id="date"+ variant={"outline"}+ className={+ "group justify-start gap-x-3 text-left font-semibold text-primary hover:bg-primary-foreground hover:text-primary-accent"+ }+ >+ <BarChart2+ className="hidden h-6 w-6 shrink-0 text-primary group-hover:text-primary-accent lg:block"+ aria-hidden="true"+ />+ Request Chart+ </Button>+ </FeedbackButtonWrapper>+ )}+ <SetupTracingButton />+ </>+ ),}}>- <div className="my-3 flex flex-wrap items-center justify-between gap-2">- <div className="flex flex-col gap-2 lg:flex-row lg:gap-3">- <TimeRangePicker- timeRange={timeRange}- onTimeRangeChange={setTimeRange}- timeRangePresets={dashboardTimeRangePresets}- className="my-0 max-w-full overflow-x-auto"- disabled={- lookbackLimit- ? {- before: new Date(- new Date().getTime() -- lookbackLimit * 24 * 60 * 60 * 1000,- ),- }- : undefined- }- />- <MultiSelect- title="Environment"- label="Env"- values={selectedEnvironments}- onValueChange={useDebounce(setSelectedEnvironments)}- options={environmentOptions.map((env) => ({- value: env,- }))}- className="my-0 w-auto overflow-hidden"- />- <PopoverFilterBuilder- columns={filterColumns}- filterState={userFilterState}- onChange={useDebounce(setUserFilterState)}- />- </div>- {uiCustomization?.feedbackHref === undefined && (- <FeedbackButtonWrapper- title="Request Chart"- description="Your feedback matters! Let the Langfuse team know what additional data or metrics you'd like to see in your dashboard."- className="hidden lg:flex"- >- <Button- id="date"- variant={"outline"}- className={- "group justify-start gap-x-3 text-left font-semibold text-primary hover:bg-primary-foreground hover:text-primary-accent"- }- >- <BarChart2- className="hidden h-6 w-6 shrink-0 text-primary group-hover:text-primary-accent lg:block"- aria-hidden="true"- />- Request Chart- </Button>- </FeedbackButtonWrapper>- )}- </div><div className="grid w-full grid-cols-1 gap-3 overflow-hidden lg:grid-cols-2 xl:grid-cols-6"><TracesBarListChartclassName="col-span-1 xl:col-span-2"