Skip to content

fix(skills): frontend-data-ui said there is no <table>; 23 components render one - #689

Merged
athvin merged 1 commit into
mainfrom
fix/frontend-data-ui-skill-drift
Nov 6, 2026
Merged

athvin merged 1 commit into
mainfrom
fix/frontend-data-ui-skill-drift

Conversation

@athvin

@athvin athvin commented Nov 6, 2026

Copy link
Copy Markdown
Owner

/skill-audit frontend-data-ui, with the findings applied. Every claim below was verified against the source, not inferred.

The finding that mattered

The skill carried four cardinality claims written as absences, which is the shape that rots least visibly — an absence reads as a convention rather than as inventory, so nobody re-checks it.

Claim Status
"the only virtualized surface" still true
"no loading.tsx anywhere" still true
"the only useSearchParams" still true
"there is no <table>" false by 23 components

The false one was actively misleading. A session building the webhook list or the members table would have hand-rolled an absolutely-positioned grid-of-rows — which is what virtualization costs, not a default — and lost the row/column semantics the axe gate this skill tells you to register in is measuring.

The fix is a generator, not a corrected sentence

dense-surface-facts derives all four: the useVirtualizer and useSearchParams call sites, the route-level boundary files under frontend/src/app, and the <table> count. Prose now links to the block.

Both hook greps drop doc-comment lines, and that is load-bearing rather than tidy: column-table.tsx names useVirtualizer in a comment explaining why it is deliberately not virtualized, and the landing page names useSearchParams() in a comment about force-static. Counting either would make the derived list lie in the same direction as the prose it replaced.

Observed failing before being trusted, per docs/frontend-testing.md's rule — a temporary frontend/src/app/loading.tsx containing a <table> moved both derived facts and the drift check named both:

-**None.** Every one of those states is handled inline, per component.
+- `frontend/src/app/loading.tsx`
-Files under `frontend/src` rendering a `<table>` element: **23**.
+Files under `frontend/src` rendering a `<table>` element: **24**.

Also fixed

  • screens.md told a session to decline four public routes. It said an unauthenticated route "cannot be added without also making the login step conditional". That change has already been made — a11y.spec.ts carries anonymous?: boolean per entry and / is swept through it — while the generated gap list immediately below named /login, /reset, /invite/[token] and /widget/[token].
  • useOrgEntityType(org) is useOrgEntityType(org, ds) since datasets landed.
  • The chart section offered bg-foreground against bg-foreground/70 as a channel; the one existing chart spends neither — both polarities are bg-foreground/70, with side-of-axis and a signed number carrying it. "Copy the precedent" and "use two tones" were not the same instruction.
  • The form heuristic was restated three sentences after the body says dataviz's form heuristic is one of the parts that survives here. Now deferred, keeping only the two house shapes.
  • Dropped a generic skeleton-vs-spinner restatement of the table row above it, and @tanstack/react-table from a chart scenario's must-not list, where a table library was a category error.
  • Paths are frontend/-prefixed throughout, so a path the skill emits resolves from the repo root.

A seventh eval scenario covers the regression that started this: a short settings table must be a <table>, not a copy of the virtualized browser.

docs/agent-skills.md gains the generator row and the rule this generalizes — a zero and a one are counts too.

Not fixed here

The one-way routing tail from landing-page to this skill was the sixth finding; #682 closed it upstream while this was open.

Gate

bash scripts/skills-check.sh all → green (regen + drift + lint + overrides, 23 skills). No Rust or frontend source changes.

🤖 Generated with Claude Code

… render one

An audit of the skill against the tree found four cardinality claims written
as absences, which is the shape that rots least visibly — an absence reads as
a convention rather than as inventory, so nobody re-checks it:

  "the **only** virtualized surface"        still true
  "**no** loading.tsx anywhere"             still true
  "the **only** useSearchParams"            still true
  "there is **no** `<table>`"               false by 23 components

The last one was actively misleading: a session building the webhook list or
the members table would hand-roll an absolutely-positioned grid-of-rows, which
is what virtualization costs, and lose the row and column semantics the axe
gate this very skill tells you to register in is measuring.

So all four are now derived. `dense-surface-facts` reads the `useVirtualizer`
and `useSearchParams` call sites, the route-level boundary files under
`frontend/src/app`, and the `<table>` count, and the prose links to the block
instead of asserting the number. Both hook greps drop doc-comment lines, which
is load-bearing rather than tidy: `column-table.tsx` names `useVirtualizer` in
a comment explaining why it is deliberately not virtualized, and the landing
page names `useSearchParams()` in a comment about `force-static` — counting
either would make the derived list lie in the same direction as the prose it
replaced.

Also fixed, each verified against the source rather than inferred:

- `screens.md` said an unauthenticated route "cannot be added without also
  making the login step conditional". That change has already been made:
  `a11y.spec.ts` carries an `anonymous?: boolean` per entry and `/` is swept
  through it. The stale sentence told a session to decline the four public
  routes the generated gap list right below it names.
- `useOrgEntityType(org)` is `useOrgEntityType(org, ds)` since datasets landed.
- The chart section offered `bg-foreground` against `bg-foreground/70` as a
  channel; the one existing chart spends neither — both polarities are
  `bg-foreground/70` and side-of-axis plus a signed number carry it. Said so,
  because "copy the precedent" and "use two tones" were not the same
  instruction.
- The form heuristic was restated three sentences after the body says
  `dataviz`'s form heuristic is one of the parts that survives here. Deferred
  to it and kept only the two house shapes.
- Dropped a generic skeleton-vs-spinner restatement of the table row above it,
  and `@tanstack/react-table` from a chart scenario's must-not list, where a
  table library was a category error.
- Paths are `frontend/`-prefixed throughout, so a path emitted from the skill
  resolves from the repo root.

A seventh eval scenario covers the regression that started this: a short table
on a settings page must be a `<table>`, not a copy of the virtualized browser.

`docs/agent-skills.md` gains the generator row and the rule the audit
generalizes — a zero and a one are counts too.

The one finding not fixed here is the one-way routing tail from
`landing-page` to this skill, which #682 closed upstream while this was open.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@athvin
athvin merged commit 24d665b into main Nov 6, 2026
39 checks passed
@athvin
athvin deleted the fix/frontend-data-ui-skill-drift branch November 6, 2026 05:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants