Repository navigation
[Toolkit] Rework recipe name - #3107
Merged
Merged
Conversation
Kocal
force-pushed
the
toolkit-rework-recipe-name
branch
2 times, most recently
from
September 27, 2025 08:45
cc01380 to
9735dff
Compare
There was a problem hiding this comment.
Pull Request Overview
This PR refactors recipe naming in the Symfony UX Toolkit by introducing a kebab-case naming convention and adding a dedicated name field to recipes. The changes make component installation more command-line friendly by using kebab-case identifiers while preserving human-readable display names.
- Adds a
namefield to Recipe objects based on folder names in kebab-case format - Updates recipe folder structure from PascalCase to kebab-case
- Modifies command syntax to use kebab-case recipe names (e.g.,
alert-dialoginstead ofAlert Dialog)
Reviewed Changes
Copilot reviewed 29 out of 102 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/Toolkit/src/Recipe/Recipe.php | Adds name field to Recipe constructor |
| src/Toolkit/src/Recipe/RecipeSynchronizer.php | Updates recipe creation to use folder basename as name |
| src/Toolkit/src/Kit/Kit.php | Refactors recipe storage to use name as key instead of manifest name |
| src/Toolkit/src/Command/InstallCommand.php | Updates command examples and messaging to use kebab-case naming |
| ux.symfony.com/templates/toolkit/_kit_aside.html.twig | Updates navigation to use recipe name instead of manifest name |
| Multiple test files | Updates test fixtures and assertions for kebab-case naming |
| src/Toolkit/kits/shadcn/alert-dialog/ | Example of folder renaming from AlertDialog to alert-dialog |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Kocal
force-pushed
the
toolkit-rework-recipe-name
branch
2 times, most recently
from
September 27, 2025 08:57
55853e6 to
f06e725
Compare
Kocal
force-pushed
the
toolkit-rework-recipe-name
branch
from
September 27, 2025 09:07
f06e725 to
a82b03b
Compare
Member
Author
Kocal
force-pushed
the
toolkit-rework-recipe-name
branch
from
September 27, 2025 09:28
69da901 to
edec8f7
Compare
Kocal
force-pushed
the
toolkit-rework-recipe-name
branch
from
September 27, 2025 09:31
edec8f7 to
60a6b78
Compare
Member
Author
|
Had to merge through GUI because: |
Kocal
added a commit
that referenced
this pull request
Sep 27, 2025
# Via Hugo Alliaume (2) and GitHub (1) * 2.x: [Toolkit] Rework recipe name (#3107) [CI] Remove duplicated matrix entry for Symfony version in unit-tests.yaml Remove explicit configuration `twig.exception_controller` from Kernel for testing # Conflicts: # .github/workflows/unit-tests.yaml # src/LazyImage/tests/Kernel/TwigAppKernel.php # src/TogglePassword/tests/Kernel/TwigAppKernel.php # ux.symfony.com/importmap.php
smnandre
pushed a commit
to smnandre/ux
that referenced
this pull request
Jan 4, 2026
This was referenced May 11, 2026
Kocal
added a commit
that referenced
this pull request
May 11, 2026
…nt Shadcn UI recipes (Amoifr) This PR was squashed before being merged into the 3.x branch. Discussion ---------- [Toolkit] Populate `version-added` on Flowbite 4 and recent Shadcn UI recipes | Q | A | -------------- | --- | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | Fix #3509 | License | MIT Follow-up to #3531 (which added the `version-added` schema entry): this populates the field for the most recent recipes, so [ux.symfony.com](https://ux.symfony.com) can surface the required Toolkit version to users — the original use case behind #3509. Two commits, one per period, so the second can be dropped if reviewers prefer to wait for the 3.0 tag: - `[Toolkit] Populate version-added for Flowbite 4 and recent Shadcn UI recipes` — 24 manifests: - `2.33` — `shadcn/{accordion,tabs,tooltip}` - `2.35` — `shadcn/toggle` + the 20 Flowbite 4 recipes released with 2.35 (`alert`, `badge`, `button`, `button-group`, `card`, `checkbox`, `indicator`, `input`, `kbd`, `label`, `modal`, `pagination`, `radio`, `select`, `skeleton`, `spinner`, `table`, `tabs`, `textarea`, `toggle`) - `[Toolkit] Mark unreleased Flowbite 4 and Shadcn UI recipes as added in 3.0` — 8 manifests only present on `3.x`: - `flowbite-4/{avatar,dropdown}` - `shadcn/{collapsible,hover-card,radio-group,resizable,toggle-group,typography}` Versions were determined by checking each recipe's presence at the corresponding git tag (e.g. `git ls-tree -r v2.33.0 -- src/Toolkit/kits/`), to avoid being misled by the 2.32 → 2.33 kits reshuffle (#3107) which would have made `git log --follow` unreliable. Happy to split, narrow scope (e.g. drop the 3.0 commit until release), or change the version format (e.g. `2.35.0` instead of `2.35`) — whatever fits best! Commits ------- 05cf878 [Toolkit] Populate `version-added` on Flowbite 4 and recent Shadcn UI recipes
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.


This PR introduce a new field "name" for Recipe (based on Recipe's folder name), and change the case of Recipe folders from PascalCase to kebab-case, in order to make things more friendly.
With this new field:
bin/console ux:install "Alert Dialog" --kit shadcnbecomesbin/console ux:install alert-dialog --kit shadcnux.symfony.com/toolkit/kits/shadcn/components/Alert%20Dialogbecomesux.symfony.com/toolkit/kits/shadcn/components/alert-dialog