Repository navigation
fix(skills): frontend-data-ui said there is no <table>; 23 components render one - #689
Merged
Merged
Conversation
… 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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
/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.
loading.tsxanywhere"useSearchParams"<table>"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-factsderives all four: theuseVirtualizeranduseSearchParamscall sites, the route-level boundary files underfrontend/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.tsxnamesuseVirtualizerin a comment explaining why it is deliberately not virtualized, and the landing page namesuseSearchParams()in a comment aboutforce-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 temporaryfrontend/src/app/loading.tsxcontaining a<table>moved both derived facts and the drift check named both:Also fixed
screens.mdtold 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.tscarriesanonymous?: booleanper entry and/is swept through it — while the generated gap list immediately below named/login,/reset,/invite/[token]and/widget/[token].useOrgEntityType(org)isuseOrgEntityType(org, ds)since datasets landed.bg-foregroundagainstbg-foreground/70as a channel; the one existing chart spends neither — both polarities arebg-foreground/70, with side-of-axis and a signed number carrying it. "Copy the precedent" and "use two tones" were not the same instruction.dataviz's form heuristic is one of the parts that survives here. Now deferred, keeping only the two house shapes.@tanstack/react-tablefrom a chart scenario's must-not list, where a table library was a category error.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.mdgains 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-pageto 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