[lexical-website] Feature: Add more examples to the demos gallery with local screenshot captures#8316
Merged
etrepum merged 12 commits intofacebook:mainfrom Apr 9, 2026
Conversation
Add a Playwright-based script that builds and screenshots each example for the gallery page, replacing the external Slorber screenshot API with local images. Update pluginList.tsx to use the captured preview images. Run with: pnpm run capture-gallery-screenshots https://claude.ai/code/session_01Aqm291YyHngNBYQAx1oWYR
Extract the hardcoded example lists from both pluginList.tsx and the screenshot script into a shared gallery-examples.ts with proper types and helper functions. Examples with waitForSelector get local screenshots; others fall back to the Slorber screenshot API. https://claude.ai/code/session_01Aqm291YyHngNBYQAx1oWYR
The gallery example definitions are website content, so they belong in the website package. The screenshot script now imports from there. Removes the @gallery-examples webpack alias since pluginList.tsx can use a simple relative import. https://claude.ai/code/session_01Aqm291YyHngNBYQAx1oWYR
Replace Linux-specific fuser/sleep shell commands with proper Node.js process management: track child processes directly and use platform- appropriate tree-kill (process groups on Unix, taskkill on Windows). Use npx.cmd on Windows. Replace shell sleep with JS setTimeout. https://claude.ai/code/session_01Aqm291YyHngNBYQAx1oWYR
Add 9 new examples to the gallery: extension-react-table, extension- sveltekit-ssr-hydration, extension-vanilla-react-plugin-host, extension- vanilla-tailwind, agent-example, website-chat, website-notion, website- rich-input, and website-toolbar. Use pnpm instead of npm for dependency installation, support per-example vite config selection, and run prepare scripts (e.g. svelte-kit sync) after install. https://claude.ai/code/session_01Aqm291YyHngNBYQAx1oWYR
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Add colors and descriptions for all 17 tags used in galleryExamples: agent, ai, block, chat, collab, emoji, extension, favorite, opensource, react, simple, ssr, svelte, tables, tailwind, toolbar, vanilla. Fix Docusaurus reference to Lexical in the favorite tag description. https://claude.ai/code/session_01Aqm291YyHngNBYQAx1oWYR
Audit each example's package.json and source to ensure tags are accurate: - Add missing react tag to collab, rich-input, toolbar examples - Add missing tailwind tag to 8 examples that use @tailwindcss/vite - Add missing toolbar tag to collab, react-table, extension-react-table, agent-example - Add missing tables tag to extension-react-table - Add missing simple tag to sveltekit-ssr, vanilla-tailwind, toolbar - Add missing emoji tag to website-chat https://claude.ai/code/session_01Aqm291YyHngNBYQAx1oWYR
Filter chips now show the number of examples matching each tag. Gallery cards display colored tag chips below the description so users can quickly see what technologies each example uses. https://claude.ai/code/session_01Aqm291YyHngNBYQAx1oWYR
zurfyx
approved these changes
Apr 9, 2026
ivailop7
approved these changes
Apr 9, 2026
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.
Description
The demos gallery at /gallery only had three hard-coded examples (in OSS), and it depended on a third party screenshot service that mostly just took a picture of the stackblitz code editor. This adds a script to use playwright to generate the screenshots statically.
This also adds more examples to the gallery (
extension-*,website-*, andagent-example)(authored with claude)
Test plan
New content on the website at /gallery