diff --git a/apps/webapp/app/components/Shortcuts.tsx b/apps/webapp/app/components/Shortcuts.tsx index df76bdc522..2decc82c91 100644 --- a/apps/webapp/app/components/Shortcuts.tsx +++ b/apps/webapp/app/components/Shortcuts.tsx @@ -193,6 +193,12 @@ function ShortcutContent() { +
+ Metrics page + + + +
Schedules page diff --git a/apps/webapp/app/components/code/ChartConfigPanel.tsx b/apps/webapp/app/components/code/ChartConfigPanel.tsx index d4b64682e3..3032795c1b 100644 --- a/apps/webapp/app/components/code/ChartConfigPanel.tsx +++ b/apps/webapp/app/components/code/ChartConfigPanel.tsx @@ -1,4 +1,5 @@ import type { OutputColumnMetadata } from "@internal/clickhouse"; +import { IconSortAscending, IconSortDescending } from "@tabler/icons-react"; import { BarChart, CheckIcon, LineChart, Plus, XIcon } from "lucide-react"; import { useCallback, useEffect, useMemo, useRef, useState } from "react"; import { cn } from "~/utils/cn"; @@ -6,6 +7,7 @@ import { Paragraph } from "../primitives/Paragraph"; import { Popover, PopoverContent, PopoverTrigger } from "../primitives/Popover"; import { Select, SelectItem } from "../primitives/Select"; import { Switch } from "../primitives/Switch"; +import SegmentedControl from "../primitives/SegmentedControl"; import { Button } from "../primitives/Buttons"; import { type AggregationType, @@ -234,54 +236,38 @@ export function ChartConfigPanel({ columns, config, onChange, className }: Chart } return ( -
+
{/* Chart Type */}
-
- - -
+ + Bar + + ), + value: "bar", + }, + { + label: ( + + Line + + ), + value: "line", + }, + ]} + onChange={(value) => updateConfig({ chartType: value as "bar" | "line" })} + />
-
+
{/* X-Axis */}
- + Sort order
- + Prefix
- + Suffix