Skip to content

Feat/thumbnails#10

Merged
GigaGiorgadze merged 15 commits intomainfrom
feat/thumbnails
Jun 4, 2025
Merged

Feat/thumbnails#10
GigaGiorgadze merged 15 commits intomainfrom
feat/thumbnails

Conversation

@GigaGiorgadze
Copy link
Member

No description provided.

@GigaGiorgadze GigaGiorgadze requested a review from Copilot June 3, 2025 12:35

This comment was marked as resolved.

@GigaGiorgadze GigaGiorgadze requested a review from Copilot June 3, 2025 12:59

This comment was marked as resolved.

@GigaGiorgadze GigaGiorgadze requested a review from Copilot June 4, 2025 12:21
@GigaGiorgadze GigaGiorgadze merged commit bf0246c into main Jun 4, 2025
18 checks passed
Copy link
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

This pull request adds support for block categories, thumbnail previews in block selectors, and the ability to disable block selection. Key changes include adding tests for the new block category command, introducing a new trait (CanRenderWithThumbnails) and a RadioButtonImage component for thumbnail rendering, and updating related service providers, commands, and documentation.

Reviewed Changes

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

Show a summary per file
File Description
tests/MakeBlockCategoryCommandTest.php Adds tests to verify the creation of block categories via artisan commands.
stubs/category-block.stub Provides the stub template for generated block category classes.
src/Traits/FormatsBlockCategories.php Offers helper methods for formatting block categories.
src/Traits/Commands/CreatesClassFile.php Enhances file creation for generated classes using stubs.
src/Traits/CanRenderWithThumbnails.php Introduces a trait to manage thumbnail rendering state for components.
src/PageBuilderPluginServiceProvider.php Registers new asset styles and updates command bindings.
src/Components/Forms/RadioButtonImage.php Implements a new field component for displaying block options with thumbnails.
src/Components/Forms/PageBuilder.php Integrates thumbnail rendering into the page builder field component.
src/Components/Forms/Actions/SelectBlockAction.php Updates the select block action to support a thumbnail mode and disables options.
src/Commands/CreatePageBuilderPluginBlockCommand.php Refactors block creation command to use new methods for panel and namespace logic.
src/Commands/CreatePageBuilderPluginBlockCategoryCommand.php Adds a new command for generating block category classes.
src/Abstracts/BaseBlockCategory.php Defines abstract methods for block categories.
src/Abstracts/BaseBlock.php Adds optional methods for block thumbnails and disabling selection.
resources/views/forms/radio-button-image.blade.php Provides a Blade view to render radio button images with category tabs.
README.md Updates documentation to incorporate block categories, thumbnails, and disablement.

</div>
</template>
@endforeach
</template>
Copy link

Copilot AI Jun 4, 2025

Choose a reason for hiding this comment

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

It appears there is an extra closing tag which might cause rendering issues. Please remove this redundant tag.

Suggested change
</template>

Copilot uses AI. Check for mistakes.
- [Parameter injection](#parameter-injection)
- [Rendering page builder items on infolist](#rendering-page-builder-items-on-infolist)
- [Rendering page builder item previews on forms](#rendering-page-builder-item-previews-on-forms)
- [Rendering page builder ite previews on fomrms](#rendering-page-builder-ite-previews-on-fomrms)
Copy link

Copilot AI Jun 4, 2025

Choose a reason for hiding this comment

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

There are typos in the list item text ('ite' should be 'item' and 'fomrms' should be 'forms'). Please correct the spelling.

Suggested change
- [Rendering page builder ite previews on fomrms](#rendering-page-builder-ite-previews-on-fomrms)
- [Rendering page builder item previews on forms](#rendering-page-builder-item-previews-on-forms)

Copilot uses AI. Check for mistakes.
@GigaGiorgadze GigaGiorgadze deleted the feat/thumbnails branch June 4, 2025 12:22
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.

2 participants