Conversation
|
To view this pull requests documentation preview, visit the following URL: docs.page/invertase/docs.page~448 Documentation is deployed and generated using docs.page. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
|
There was a problem hiding this comment.
Code Review
This pull request overhauls the design system and marketing pages, implementing a structured design token system and integrating shadcn/ui components. The homepage and 'Get Started' layouts are redesigned, supported by new UI components and a centralized link constant file. The PR also updates the Biome configuration, introduces new cursor rules, and removes several obsolete components. API changes include refactoring for type safety and import reordering. Review feedback identified a logic error in the rehypeInlineBadges plugin, a file extension mismatch for an SVG asset, an unused function in CodeGroup.tsx, and a UX improvement to remove controls from the auto-playing hero video.
| function visitor(node: NodeWithChildren) { | ||
| function visitor(node: HastNode) { | ||
| if (!isElementWithVisited(node)) return; | ||
| node.visited === "true"; |
There was a problem hiding this comment.
This comparison node.visited === "true" has no effect. It seems you intended to perform an assignment to mark the node as visited, like node.visited = "true";. Without this, the check in containsBadge might not work as expected in all scenarios.
| node.visited === "true"; | |
| node.visited = "true"; |
| @@ -0,0 +1,24 @@ | |||
| <svg width="677" height="677" viewBox="0 0 677 677" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> | |||
| function _getCodeGroupKey(context: Context, value: string) { | ||
| return context.preview | ||
| ? `preview:code-group:${value}` | ||
| : `docs.page:code-group:${context.owner}/${context.repository}:${value}`; |
| loop | ||
| muted | ||
| playsInline | ||
| controls |
V3 with Invertase brand styling