feat: category description generation (P0 #3)#6
Merged
Conversation
- Add FeatureId::CategoryDescription with config key and label
- Add featureCategoryDescription checkbox to config.xml (en + de-DE)
- Create CategoryDescriptionGenerator mirroring ProductDescriptionGenerator
- Reuses ProductDescriptionToneStore for shared tone presets
- Accepts category context: name, parentCategories, keywords, metaTitle,
metaDescription, existingDescription, tone, language, maxWords
- Create CategoryDescriptionController with POST /api/_action/frosh-ai/category/generate-description
and GET /api/_action/frosh-ai/category/description-status
- Register generator + controller in services.xml
- Add CategoryDescriptionGeneratorTest (5 tests) and update FeatureFlagsTest
for the new feature flag
This was referenced Jul 21, 2026
roboshyim
added a commit
that referenced
this pull request
Jul 21, 2026
) P0 roadmap item #6 — per-product AI summary of approved customer reviews (summary/pros/cons/themes/reviewCount/averageRating) via chatStructured. - ReviewSummaryGenerator: master + feature flag + provider gates, fetches up to 50 approved reviews (status=true, createdAt DESC, content capped at 500 chars each) from product_review.repository - POST /api/_action/frosh-ai/product/review-summary {productId} - GET /api/_action/frosh-ai/product/review-summary-status - FeatureId::ReviewSummary + featureReviewSummary config checkbox (en/de) - Admin UI / storefront output intentionally left for follow-ups
roboshyim
pushed a commit
that referenced
this pull request
Jul 21, 2026
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.
What
Adds AI-generated category descriptions — the category half of P0 roadmap item #3 (category & manufacturer copy). Mirrors the existing product-description feature end-to-end.
Changes
CategoryDescriptionGenerator(src/Feature/CategoryDescription/): feature-flag gates (master + per-feature), language resolution viaLanguageEntity, shared tone presets (ProductDescriptionToneStore), builds a category-specific system+user prompt (name, parent-category breadcrumb, keywords, meta title/description, existing description), callsAiClientwithCapability::TextGeneration, sanitizes HTML. Reuses the shared tone store so category copy follows the same merchant-defined tones.CategoryDescriptionController:POST /api/_action/frosh-ai/category/generate-description+GET /api/_action/frosh-ai/category/description-status.FeatureId::CategoryDescription+featureCategoryDescriptionconfig checkbox (en + de-DE).Tests
CategoryDescriptionGeneratorTest(5 tests): master-disabled / feature-flag-off / missing-name gates, tone+language+HTML sanitization (markdown fences, script tags), locale resolution fromlanguageId. UpdatedFeatureFlagsTestfor the new flag.101 tests / 396 assertions, green — verified locally and in the
frosh-ai-devcontainer (Shopware 6.7 / PHP 8.3).Notes