This repository was archived by the owner on May 18, 2026. It is now read-only.
feat: add only_blocks URL parameter to filter displayed blocks#378
Merged
Conversation
Implements block filtering functionality for tutorial use cases where instructors want to limit visible blocks to reduce student confusion. - Add URL parameter parsing for only_blocks query parameter - Support exact match and prefix match filtering (e.g., motion_movesteps or motion_) - Support comma-separated multiple patterns (e.g., motion_,looks_) - Always show variables, myBlocks, and extension categories - Hide empty categories when all blocks are filtered out - Add comprehensive integration tests for all filtering scenarios Fixes #369 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
- Fix newline-per-chained-call in parseOnlyBlocks - Fix arrow-body-style in shouldIncludeBlock - Remove trailing spaces - Fix arrow-parens in addCategoryIfNotEmpty helper 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
- Use findByText instead of textExists for more reliable testing - Use specific block parameter values (10, 15, Hello!, 2) from actual blocks - Match testing patterns used in existing blocks.test.js - Ensure tests wait for elements rather than just checking existence 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
github-actions Bot
pushed a commit
that referenced
this pull request
Aug 25, 2025
…blocks-filter feat: add only_blocks URL parameter to filter displayed blocks
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.
Summary
only_blocksURL parameter to filter displayed blocks for tutorial scenariosmotion_movesteps) and prefix match (e.g.,motion_) filteringmotion_,looks_)Test plan
Usage Examples
closes #369
🤖 Generated with Claude Code