Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
1a5e357
fix(app): clarify chart explorer AI assistant and chart name controls
elizabetdev Nov 28, 2026
dd0d9f7
feat(app): open the chart explorer AI assistant as a right-side panel
elizabetdev Nov 28, 2026
9653771
feat(app): label the chart explorer's save to dashboard action
elizabetdev Nov 28, 2026
9098cf1
feat(app): drop the explorer chart name and name charts on save
elizabetdev Nov 28, 2026
f30f448
Use a select for chart type and fold header controls into one row
elizabetdev Nov 28, 2026
60a9436
Put the data source on the header row with the chart controls
elizabetdev Nov 28, 2026
c65907b
Drop the data source label above the picker
elizabetdev Nov 28, 2026
e6b0856
Open series display settings in a popover
elizabetdev Nov 28, 2026
e188504
Drop the Where label from the series row
elizabetdev Nov 28, 2026
98c6ce0
feat(app): show each chart series in a card with its line color
elizabetdev Nov 28, 2026
0d5863d
feat(app): open chart display settings in the editor side panel
elizabetdev Nov 30, 2026
a3fea8f
feat(app): put the query mode first in the chart editor header
elizabetdev Nov 30, 2026
7e7a0af
chore: add changeset for the chart explorer UI refresh
elizabetdev Nov 30, 2026
7ecaa38
feat(app): move chart explorer toolbar into the page header and open …
elizabetdev Nov 30, 2026
0b7c72d
fix(app): keep the AI assistant button at the end of the explorer hea…
elizabetdev Nov 30, 2026
1b57d66
feat(app): replace the chart type select with an icon switcher in the…
elizabetdev Nov 30, 2026
b4dea95
chore: fix changeset wording
elizabetdev Nov 30, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .changeset/chart-explorer-ui-refresh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
'@hyperdx/app': minor
---

feat: refresh the chart explorer and chart editor UI

- The AI assistant is a sparkles button in the page header that opens a popover,
and its last change can be undone.
- "Save to dashboard" is a labeled button, and explorer charts are named
automatically when saved.
- The explorer has a sticky page header: mode switch and source on the left of
the first row with Save to dashboard and the AI assistant on the right; chart
type on the left of the second row with the time range, granularity and Run on
the right.
- Chart type is an icon switcher that names the selected type, and the header is
the same in every mode.
- Each series and formula sits in a card with the color the chart draws it in.
- Display Settings opens in the editor's side panel next to the alert panel, not
in a drawer.
- Series display settings open in a popover.
52 changes: 36 additions & 16 deletions .claude/skills/page-layout/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,50 @@
---
name: page-layout
description: Add or update app page headers and layout using PageHeader and PageLayout. Use when creating a new page, fixing inconsistent headers, or migrating Service Map / Kubernetes / dashboard pages to the shared layout.
description:
Add or update app page headers and layout using PageHeader and PageLayout. Use
when creating a new page, fixing inconsistent headers, or migrating Service
Map / Kubernetes / dashboard pages to the shared layout.
---

# Page layout and headers

Read **`agent_docs/page_layout.md`** before changing any page shell. It is the source of truth for API, examples, and migration steps.
Read **`agent_docs/page_layout.md`** before changing any page shell. It is the
source of truth for API, examples, and migration steps.

## Quick rules

1. **Default for new pages**: `PageLayout` with `title`, optional `leading` / `actions`, and `content` — only when the sticky bar is **text-only** (no inputs in that bar).
2. **Sticky bar contains inputs** (source pickers, SQL/search, sliders, time range, Run, etc.): **do not** use `PageHeader` / `PageLayout` **`title`**. The sticky row is for controls only. Put **where you are** in the **`breadcrumbs` prop** (renders **inside the sticky `PageHeader`**, above the toolbar) when the page lives under a hierarchy (e.g. `Dashboards` → `Kubernetes`); otherwise you may omit `breadcrumbs` and rely on `<Head><title>`, the sidebar active item, and the empty state copy.
3. **Never** duplicate location: do not set `title="Kubernetes Dashboard"` **and** breadcrumbs that repeat the same page name.
1. **Default for new pages**: `PageLayout` with `title`, optional `leading` /
`actions`, and `content` — only when the sticky bar is **text-only** (no
inputs in that bar).
2. **Sticky bar contains inputs** (source pickers, SQL/search, sliders, time
range, Run, etc.): **do not** use `PageHeader` / `PageLayout` **`title`**.
The sticky row is for controls only. Put **where you are** in the
**`breadcrumbs` prop** (renders **inside the sticky `PageHeader`**, above the
toolbar) when the page lives under a hierarchy (e.g. `Dashboards` →
`Kubernetes`); otherwise you may omit `breadcrumbs` and rely on
`<Head><title>`, the sidebar active item, and the empty state copy.
3. **Never** duplicate location: do not set `title="Kubernetes Dashboard"`
**and** breadcrumbs that repeat the same page name.
4. **Never** use `<Text size="xl">` as the page title in the body.
5. **Global controls** (time range, Run, Save, sampling) go in `actions`, right-aligned. **Context** pickers go in `leading` (no `title` when those slots are used for inputs). **Breadcrumbs** use the `breadcrumbs` prop so they stay in the sticky header, not in `content`.
5. **Global controls** (time range, Run, Save, sampling) go in `actions`,
right-aligned. **Context** pickers go in `leading` (no `title` when those
slots are used for inputs). **Breadcrumbs** use the `breadcrumbs` prop so
they stay in the sticky header, not in `content`.
6. **Full-height tools** (maps, large charts): `fillViewport` on `PageLayout`.
7. **Search / Chart Explorer**: keep bespoke toolbars unless the task is explicitly to redesign them.
7. **Search**: keep the bespoke toolbar unless the task is explicitly to
redesign it. **Chart Explorer** uses a custom `PageHeader` fed by
`EditTimeChartForm`'s `toolbarTargets`; see `agent_docs/page_layout.md`.

## Workflow

1. Read `agent_docs/page_layout.md`.
2. Open a similar page already on `PageHeader` / `PageLayout` (e.g. `AlertsPage.tsx`, `DBServiceMapPage.tsx`, `KubernetesDashboardPage.tsx`).
2. Open a similar page already on `PageHeader` / `PageLayout` (e.g.
`AlertsPage.tsx`, `DBServiceMapPage.tsx`, `KubernetesDashboardPage.tsx`).
3. Implement using `@/components/PageLayout` or `@/components/PageHeader`.
4. Preserve or add `data-testid` on the page root for E2E tests.
5. Run `yarn lint:fix` in the repo root when done.
6. If the page has E2E coverage, run the relevant spec under `packages/app/tests/e2e/`.
6. If the page has E2E coverage, run the relevant spec under
`packages/app/tests/e2e/`.

## Imports

Expand All @@ -35,10 +55,10 @@ import { PageLayout } from '@/components/PageLayout';

## Reference implementations

| Page | File | Pattern |
|------|------|---------|
| List page | `AlertsPage.tsx` | `PageHeader` + `title` + `Container` (no inputs in header) |
| Tool page with inputs + hierarchy | `KubernetesDashboardPage.tsx`, `ClickhousePage.tsx` | `PageLayout` **without** `title`; **`breadcrumbs`** + `leading` + `actions` in one sticky header |
| Tool page (top-level) | `DBServiceMapPage.tsx` | `PageLayout` **without** `title`; `leading` / `actions` only; no duplicate breadcrumb unless you add a real hierarchy |
| Custom toolbar | `SessionsPage.tsx` | `PageLayout` + `header` = custom `PageHeader` `children` with `growing` (single-row inputs, no `title`) |
| Custom title | `TeamPage.tsx` | `PageHeader` with `children` only |
| Page | File | Pattern |
| --------------------------------- | --------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- |
| List page | `AlertsPage.tsx` | `PageHeader` + `title` + `Container` (no inputs in header) |
| Tool page with inputs + hierarchy | `KubernetesDashboardPage.tsx`, `ClickhousePage.tsx` | `PageLayout` **without** `title`; **`breadcrumbs`** + `leading` + `actions` in one sticky header |
| Tool page (top-level) | `DBServiceMapPage.tsx` | `PageLayout` **without** `title`; `leading` / `actions` only; no duplicate breadcrumb unless you add a real hierarchy |
| Custom toolbar | `SessionsPage.tsx` | `PageLayout` + `header` = custom `PageHeader` `children` with `growing` (single-row inputs, no `title`) |
| Custom title | `TeamPage.tsx` | `PageHeader` with `children` only |
Loading
Loading