Add fuzzy theme name suggestions when theme not found #74
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.
Theme Name Suggestion Feature - COMPLETE ✅
🎯 Issue Resolved
Feature-Request: Theme-Name suggestion - When users enter incorrect theme names, the system now suggests similar themes using intelligent fuzzy matching.
🐛 Bug Fix (Latest Commit)
Fixed issue where theme suggestions were not displaying in non-verbose mode. The Laravel Prompts Spinner was suppressing error output during the spin callback. Now error messages and suggestions are stored and displayed after the spinner completes.
📦 Implementation Details
New Service:
ThemeSuggestionFile:
src/Service/ThemeSuggestion.php(97 lines)Updated Commands
mageforge:theme:build) - Shows suggestions when theme not foundmageforge:theme:watch) - Shows suggestions when theme not foundmageforge:hyva:tokens) - Shows suggestions when theme not found📊 Statistics
💡 Example Usage
Output when theme not found:
$ bin/magento mageforge:theme:build vendor/Nema Building vendor/Nema (1 of 1) ... failed [ERROR] Theme vendor/Nema is not installed. Did you mean: - Vendor/name - Vendor/theme - Vendor/custom🎯 Key Features
📝 Code Quality
🚀 Status
READY FOR MERGE - Bug fixed, tested, and validated.
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.