Repository navigation
Redesign the editor's block palette as grouped icon tiles - #8
Merged
Merged
Conversation
The palette was a flat list of 29 text rows that pushed the Structure list out of view. Blocks are now a two-column grid of tiles with a Heroicons outline icon and a short label, under group headings, with a search box. Blocks and Structure are tabs of the left panel. - Export groups, and short_label, group and description per slot, in the schema (version 3). - Give blocks that shared an icon their own (three_column, order_receipt, dynamic_feed, labeled_divider). - Add the icon path data as resources/js/editor/icons.js. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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.
Summary
With all 29 slot types editable (#7), the sidebar was a flat list of 29 text rows that pushed the Structure list below the fold. This redesigns the left panel:
Schema changes
The schema export gains
groupsand, on each slot,short_label,groupanddescription.SlotSchemaRegistry::VERSIONis now 3. Additive, so it fits a minor release.Five blocks that shared an icon now have distinct ones, which Filament picks up too:
three_column(squares-plus),order_receipt(receipt-percent),dynamic_feed(arrow-path),labeled_divider(ellipsis-horizontal).Icons
resources/js/editor/icons.jsholds the path data of the 29 icons, copied from Heroicons v2 (MIT). No new dependency, about 10 KB in the unminified bundle. A test fails if a schema icon has no path data.Test plan
vendor/bin/pest(115 tests),npm run test:js(27),vendor/bin/phpstan analyse,vendor/bin/pint --test🤖 Generated with Claude Code