Skip to content

Conversation

@yashrajbharti
Copy link
Contributor

@yashrajbharti yashrajbharti commented Jul 13, 2025

Summary

This PR introduces a search bar to the WebGPU samples page, enabling users to filter the list of available samples in real time based on their query.

New added to the page.
• Input value synced with the ?q= query parameter in the URL.
• Filtering logic applies on both initial load and live input changes.
• Filters against:
• Sample title
• tocName
• Category title

Fixes #379

Open to suggestions on implementation, UX, or improvements!

Screen.Recording.2025-07-14.at.4.27.30.AM.mov

@greggman
Copy link
Collaborator

Thanks for the PR. Can you please revert all the superflous reformatting?

@yashrajbharti
Copy link
Contributor Author

Ran npx prettier --write <PATH_TO_FILE> --config .prettierrc.cjs. Seems my own vscode prettier settings affected it before! Ty.

@greggman greggman enabled auto-merge (squash) July 14, 2025 05:40
@greggman greggman self-requested a review July 14, 2025 17:56
@greggman greggman merged commit 5c6d7bb into webgpu:main Jul 14, 2025
1 check passed
@yashrajbharti yashrajbharti deleted the feat/Searchbar branch July 14, 2025 20:29
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.

Add a simple search filter

2 participants