Skip to content

Commit 0ac9772

Browse files
committed
refactor(vortex-web): drill-down treemap with a single path header
Replace the nested treemap (and its per-container header strips, the source of the overlapping labels) with a drill-down box: the box shows the current layout's child blocks one level deep, each a single labelled tile sized by its subtree bytes. A header bar at the top is the current path — click a block to drill in, click a path segment to drill back out. Because every visible tile is one level deep, labels never collide. Hover still drives the tooltip, sidebar, and data sample; selection stays in sync with the tree panel. Drops the pan/zoom transform and sticky-header machinery. Signed-off-by: Robert <robert@spiraldb.com>
1 parent 1bdb521 commit 0ac9772

6 files changed

Lines changed: 201 additions & 427 deletions

File tree

vortex-web/README.md

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,20 @@ A web UI for exploring Vortex data files, built with React, TypeScript, Tailwind
44

55
## Treemap Explorer
66

7-
The **Treemap** view (toggle in the header, next to the theme picker) is a map
8-
of a file's physical blocks. Layouts subdivide the canvas first, flat layouts
9-
subdivide further into their array-encoding buffers, and every tile is sized by
10-
its byte footprint and coloured by dtype, matching the swimlane and detail
11-
treemap. The map is zoomable (scroll), pannable (drag), and supports
12-
double-click zoom-to-fit; selection and hover stay in sync with the tree panel.
13-
It follows the app theme — dark by default, matching explore.vortex.dev — and
14-
the light theme via the theme picker.
7+
The **Treemap** view (toggle in the header, next to the theme picker) is a
8+
drill-down map of a file's physical blocks. The box shows the current layout's
9+
blocks, sized by byte footprint and coloured by dtype to match the swimlane and
10+
detail treemap; a header bar at the top is the current path. Click a container
11+
block to drill into it, and click a segment of the path header to drill back
12+
out. It follows the app theme — dark by default, matching explore.vortex.dev —
13+
and the light theme via the theme picker.
1514

1615
![Treemap explorer overview](docs/img/treemap-explorer-overview.png)
1716

18-
Each container layout gets a title strip in its padding band, and those strips
19-
are sticky: when a container scrolls above the top of the view its strip pins
20-
just below its parent's, so the ancestor strips stack into the current path as
21-
you pan and zoom. Hovering or selecting a tile shows its physical statistics —
22-
data and metadata bytes, percentage of the file, encoded bytes-per-row density,
23-
rows, and segment/buffer counts — in a floating tooltip and the sidebar,
24-
alongside a data sample for the selected block.
17+
Hovering a block shows its physical statistics — data and metadata bytes,
18+
percentage of the file, encoded bytes-per-row density, rows, and segment/buffer
19+
counts — in a floating tooltip; the sidebar and data sample track the selected
20+
block, and selection stays in sync with the tree panel.
2521

2622
![Hovering a tile shows physical statistics](docs/img/treemap-explorer-hover.png)
2723

25.2 KB
Loading
-52.1 KB
Loading
-47.2 KB
Loading

0 commit comments

Comments
 (0)