This repository was archived by the owner on Nov 30, 2026. It is now read-only.
Repository navigation
Drop react entirely: company logos become prerendered SVG strings - #187
Merged
Merged
Conversation
React survived the cleanup for exactly one purpose — the two CompanyLogo.astro components calling renderToStaticMarkup on the SVG logo components. The logos are pure static markup, so they are now a plain TypeScript module of SVG strings (generated once via renderToStaticMarkup from the previous React components, so the markup is byte-identical — verified by matching every viewBox+path signature on the built case-studies page against production) with a renderLogo helper that injects class/title/height/width onto the root tag. react and react-dom are removed from both the docs and documentation-astro packages; the design system keeps its own React for Storybook, isolated to that package. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Team Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
dotansimha
approved these changes
Sep 2, 2026
This branch was successfully deployed
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
What
Follow-up to #186, answering "what still needs React?" — the answer was: exactly one thing. The two
CompanyLogo.astrocomponents calledrenderToStaticMarkupon the ~15 SVG logo React components; every other design-system touchpoint in the Astro site goes through the.astro/.tsshims, and the@hive/design-systemdependency remains only for its stylesheet.How
The logos are pure static markup, so they're now a plain TypeScript module of SVG strings with a
renderLogo(name, { className, height, width, title })helper that injects the attributes onto the root<svg>tag. The strings were generated once viarenderToStaticMarkupfrom the previous React components, so the markup is byte-identical — verified by matching everyviewBox+ path-data signature on the built case-studies page against production (16/16 identical), and spot-checking the injected attributes (class/title/height) on the homepage logos row.reactandreact-domare removed from both thedocsanddocumentation-astropackages (−478 lines net). The design system keeps its own React for Storybook, isolated to that package.Verification
Prefixed and plain builds pass the base-path verifier; check-seo passes all 559 pages; unit tests, lint, and typecheck green; lockfile updated.
🤖 Generated with Claude Code