Commit Graph
3 Commits
Author SHA1 Message Date
Thomas DurieuxandClaude Opus 5.5 37a01257b3 fix(viewers): rounded table frame, per-column summary cells restored
- The table's scroll box is now its rounded frame (border, 8px radius,
  clipping): the sticky header and the summary row are clipped to the
  same corners top and bottom, and the box ends at the summary row, so
  no row shows below it. In gists the frame keeps its border.
- The summary row is back to its earlier content: Σ in the row-number
  column, a small "Avg ▾" select before each numeric value, "N distinct"
  under text columns, in muted labels with semibold right-aligned
  values. The single row-wide select is gone.
- Identifier columns (seed, run...) stay empty, with "Treat as number"
  in the column menu.
- Markdown and notebook tables use the same cells: Σ in a first text
  column, "Avg ▾" per numeric column, distinct counts muted.
- "Show more" sits under the frame instead of inside the scroll box.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 10:36:59 +00:00
Thomas DurieuxandClaude Opus 5.5 4fc3a8b2df fix(viewers): summary row as the table's last row, identifiers left out
The CSV summary row read as a floating card: rounded, a repeated "Avg"
label in every cell, distinct counts under text columns and an average
of the seed column.

- The footer follows the column grid: square edges, a 2px top rule and
  the header's solid fill. It stays at the bottom of the scroll area,
  which no longer has vertical padding, so no rows show past it; a
  short table ends on it.
- One "Average" select in the first column (or the row-number column)
  sets the aggregate for every numeric column. Cells show only the
  value, right-aligned, semibold. A column can override it from its
  menu, marked by a small label in its cell.
- Text, date and identifier columns are empty in the footer; their
  distinct counts stay in the column menu.
- Identifiers (seed, id, run, fold, index, year by name, or small
  consecutive whole numbers that repeat) are left out of the summary,
  group averages and default charts. "Treat as number" in the column
  menu brings one back (#table:num=seed).
- Markdown and notebook tables get the same footer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 10:22:05 +00:00
Thomas DurieuxandClaude Opus 5.5 43e92bef53 feat(viewers): sort, filter, summarize, group and chart tables
The CSV/TSV viewer (explorer, gists, the author's preview) becomes an
analysis view that runs on the anonymized text already in the page:
click-to-sort headers (numbers, dates, natural text; stable, empty cells
last), a search box and per-column range or value filters, a summary row
(Average by default; Sum, Median, Min, Max, Count, Std dev) over the
filtered rows, group by with an aggregate, column stats with a histogram,
copy as CSV or Markdown and download of the current view, and a Chart
view (bar, line, scatter) drawn in inline SVG. The view lives in the URL
fragment (#table:group=model, #table-2:... for a gist file) so a link
can carry it; links without it open as before.

Markdown and notebook tables (pandas DataFrames) get sortable headers,
an optional summary row and "Open as table" for the full view.
Redaction slots keep rendering; sorting uses the XXXX-n text.

The 1 MB limit holds: rows render 200 at a time as one escaped HTML
string while aggregates, filters and charts use every row.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 10:04:19 +00:00