Files
OmniRoute/packages
Diego Rodrigues de Sa e Souza 19197b16c4 fix(dashboard): the Card is the only frame around a table (#20181)
* fix(dashboard): the Card is the only frame around a table

Owner decision of 2026-11-14 (item 3): tables inside a Card no longer draw a
frame of their own, and a bordered sub-panel around a table inside a Card
becomes a plain section.

- Cache → Semantic Cache: the Entries sub-panel loses its border and
  background (title and spacing kept); CacheEntriesTab drops DataTableShell
  for the kit TableLoadingRegion + a borderless Table (search and pagination
  kept, search keeps the kit toolbar width).
- Cache → Prompt Cache: same for the "Breakdown by provider" sub-panel.
- Evals → suites: suites are sections of the card split by hairlines (kit
  plain accordion pattern) instead of bordered boxes; the cases DataTable
  uses framed={false}.
- Provider stats, cost overview (explorer + breakdown tables), resilience
  cooldowns and the other kit Tables found inside a Card get
  containerClassName="rounded-none border-0", the same borderless container
  already used by #20141 and the analytics tables.

The AST guard now also covers Table inside Card, any depth (through
expressions, fragments and .map callbacks), and bordered elements between a
table and its Card. A jsdom test covers the two tables rendered by child
components (semantic cache entries, cooldowns).

Refs #19620

* test(dashboard): single-frame guard reads only static classes; stable translator mock

- The AST guard no longer searches the source text of a dynamic class
  expression: only string literals and the literal parts of a template
  count, so an inactive conditional branch can neither satisfy the
  borderless check nor report a sub-panel (review on #20181). Fixtures added.
- The jsdom test returns one translator for every useTranslations call, so
  the CacheEntriesTab fetch effect settles.

Refs #19620

* chore(ui-kit): sync vendored kit to 0.0.116

Upstream keak-ai/cheaper-inference-ui-kit#204 (closes #203): Table and
DataTable take `maxHeight`; the capped container scrolls on both axes,
pins the header row and takes focus while it overflows. No new dependency.

Refs #19620

* fix(dashboard): scroll tall tables through the kit Table maxHeight

Kit 0.0.116 (keak-ai/cheaper-inference-ui-kit#204) caps a Table with
`maxHeight`: the kit container scrolls both axes, pins the header row and
becomes a focusable, named region while it overflows (WCAG 2.1.1). Our own
scroll boxes never took focus, so keyboard users could not scroll them.

- DataTable adapter: the `<div style={{ maxHeight, overflow: "auto" }}>`
  wrapper is gone; `maxHeight` goes to the kit Table, `!overflow-visible`
  and the sticky/background patch on the header cells are dropped (the kit
  pins and paints the header; `whitespace-nowrap` stays). New required
  `label` prop names the scroll region; the five call sites pass a
  translated string (evals recent runs and suite cases, conductor runners
  and tasks, resilience connections).
- Kit Tables that capped themselves with `max-h-* overflow-y-auto` classes
  or a capped wrapper now take `maxHeight` + a translated `scrollLabel`,
  and lose their `sticky top-0` header patches: reasoning cache entries,
  cache trend, import providers from file, OAuth export preview (the kit
  container border replaces the wrapper's), proxy bulk import preview,
  proxy bulk health check, proxy logger.

Tests: jsdom test for the adapter (capped container is a named tab stop,
no own scroll wrapper, no header patch, borderless when framed={false});
AST guard over the dashboard for class caps, capped wrappers and unnamed
capped tables. design-kit-bridge assertions aligned: the header colour and
the opaque viewport now come from the kit table.

Refs #19620

* test(dashboard): template classes count only when whitespace bounds them

A class written against an interpolation (`border-0${suffix}`) can render
as another class, so the single-frame guard no longer treats it as whole
(review on #20181). Fixtures for interpolations adjacent to `border-0` and
`border` added.

Refs #19620
2026-11-14 13:49:45 -03:00
..