Skip to content

Finish the last item of #154 and of #166 - #183

Merged
dave-hillier merged 2 commits into
mainfrom
fix-154-166-residuals
Sep 24, 2026
Merged

dave-hillier merged 2 commits into
mainfrom
fix-154-166-residuals

Conversation

@dave-hillier

Copy link
Copy Markdown
Owner

Closes the two residual items left by #182, one from #154 and one from #166.

#154 asked for no <style> blocks in TSX. Replot.tsx's was the last one standing, because every pass over it while it was being restructured deferred the change. The stylesheet and the element that carries it now live in plotStyles.ts, the way the legend stylesheets already live in legendStyles.ts, and both render paths — <PlotSvg> and buildStaticPlotSvg — take the same element rather than each writing its own. That was also #180's third item, the duplicated stylesheet.

#166 asked for the @ts-expect-error on tree.ts's import of maybeTreeAnchor to go. The runtime export was simply missing from transforms/tree.d.ts, so it is declared there and the suppression is gone.

Neither changes what is rendered: 1818 tests pass, no snapshot moves, and tsc, lint and prettier are clean.

🤖 Generated with Claude Code

dave-hillier and others added 2 commits September 24, 2026 07:42
#154 asked for no <style> blocks in TSX. Replot.tsx's remained, because every
pass over it was deferred while that file was being restructured. The stylesheet
and the element that carries it now live in plotStyles.ts, as the legend
stylesheets already do, and both render paths take the same element rather than
each writing their own.

#166 asked for the @ts-expect-error on tree.ts's import of maybeTreeAnchor to
go: the runtime export was simply missing from transforms/tree.d.ts, so it is
declared there instead of suppressed.

Neither changes what is rendered: 1818 tests pass with no snapshot movement.

Co-Authored-By: Claude Code <noreply@anthropic.com>
Declaring it in transforms/tree.d.ts made the API-data generator look for a
docs anchor for it and fail the docs build, which is what CI caught. The
generator already has a list of internal exports it skips; this belongs on it,
next to the other maybe* helpers.

Co-Authored-By: Claude Code <noreply@anthropic.com>
@dave-hillier
dave-hillier merged commit ca2f9d4 into main Sep 24, 2026
3 checks passed
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.

1 participant