Skip to content

Render getting started snippets with syntax highlighter#4

Merged
gblikas merged 4 commits intomainfrom
codex/add-view-code-button-in-querykit-demo
Sep 29, 2025
Merged

Render getting started snippets with syntax highlighter#4
gblikas merged 4 commits intomainfrom
codex/add-view-code-button-in-querykit-demo

Conversation

@gblikas
Copy link
Copy Markdown
Owner

@gblikas gblikas commented Sep 28, 2025

Summary

  • register the HLJS bash language alongside SQL and TypeScript so the getting-started drawer can highlight every snippet with react-syntax-highlighter
  • wrap each quick-start code block in a scrollable container with pre-wrap styling so the code renders visibly beneath the transparent copy button

Testing

  • pnpm lint
  • pnpm test

https://chatgpt.com/codex/tasks/task_e_68d87d9d01ec8320817d25ef162ae1c6


Note

Adds a right-side "Getting started" drawer with copyable, syntax-highlighted snippets and small UX tweaks (query param open, conditional results button).

  • UI/Docs:
    • Getting-started Drawer: Introduces a right-side drawer with quick-start sections (install, schema, usage) rendered via SyntaxHighlighter and a copy-to-clipboard button per block.
    • Registers bash and typescript languages (in addition to sql) for syntax highlighting.
    • Adds new icons and Drawer components; sections defined via quickStartSections.
  • UX:
    • Supports ?drawer=open to auto-open the drawer.
    • Hides the floating Results toggle while the drawer is open.
    • Copy feedback state for snippets and improved code block styling (scrollable, pre-wrap, preserved long lines).

Written by Cursor Bugbot for commit 5b90553. This will update automatically on new commits. Configure here.

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented Sep 28, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
querykit Ready Ready Preview Comment Sep 29, 2025 3:48am

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Adds a "Getting started" drawer to the QueryKit demo page with syntax-highlighted code snippets for installation, schema definition, and usage examples.

  • Introduces a right-side drawer component with copyable, syntax-highlighted code blocks
  • Registers additional language support (bash, typescript) for syntax highlighting
  • Adds UX improvements like auto-opening via query parameter and conditional UI visibility

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread examples/qk-next/app/page.tsx Outdated
Comment thread examples/qk-next/app/page.tsx Outdated
Comment thread examples/qk-next/app/page.tsx Outdated
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread examples/qk-next/app/page.tsx
Comment thread examples/qk-next/app/page.tsx
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread examples/qk-next/app/page.tsx
Comment thread examples/qk-next/app/page.tsx
@gblikas gblikas merged commit f184a2c into main Sep 29, 2025
5 checks passed
@gblikas gblikas deleted the codex/add-view-code-button-in-querykit-demo branch September 29, 2025 04:05
@gblikas gblikas restored the codex/add-view-code-button-in-querykit-demo branch September 29, 2025 04:12
@gblikas gblikas deleted the codex/add-view-code-button-in-querykit-demo branch September 29, 2025 04:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants