Skip to content

feat: Toolbox-Search add support for preset blocks - #2594

Merged
gonfunko merged 2 commits into
RaspberryPiFoundation:masterfrom
TannerGabriel:feat/toolbox-search-preset-blocks
Sep 8, 2025
Merged

feat: Toolbox-Search add support for preset blocks#2594
gonfunko merged 2 commits into
RaspberryPiFoundation:masterfrom
TannerGabriel:feat/toolbox-search-preset-blocks

Conversation

@TannerGabriel

@TannerGabriel TannerGabriel commented Sep 6, 2025

Copy link
Copy Markdown
Contributor

The basics

The details

Resolves

Fixes #2593

Proposed Changes

Extend the toolbox-search plugin so that searches also include preset blocks defined in the toolbox.

image

Reason for Changes

Ensures consistent behavior: block configurations available in the toolbox should also appear in search results.

Test Coverage

The unit tests have been refactored to work with the changed indexBlocks parameters. I also added a test case that validates the preset block behaviour.

Documentation

Additional Information

I had to use the fix provided in #2578 for testing with the newest Blockly version.

@TannerGabriel
TannerGabriel requested a review from a team as a code owner September 6, 2025 07:51
@TannerGabriel
TannerGabriel requested review from gonfunko and removed request for a team September 6, 2025 07:51
@google-cla

google-cla Bot commented Sep 6, 2025

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@gonfunko

gonfunko commented Sep 8, 2025

Copy link
Copy Markdown
Contributor

Thank you for the fix, this looks good! Once you sign the CLA I'll be happy to merge it.

@TannerGabriel

Copy link
Copy Markdown
Contributor Author

The CLA check seems to work now. I already signed the CLA before, but I missed the rescan option.

@gonfunko
gonfunko merged commit bf7bfc9 into RaspberryPiFoundation:master Sep 8, 2025
10 checks passed
@gonfunko

gonfunko commented Sep 8, 2025

Copy link
Copy Markdown
Contributor

Ah perfect, thank you!

@TannerGabriel
TannerGabriel deleted the feat/toolbox-search-preset-blocks branch September 12, 2025 10:09
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.

Toolbox search doesn't work with preset blocks

2 participants