feat: manufacturer description generation (P0 #3) - #7
Merged
Conversation
…g, tests) Mirrors the category description feature for product manufacturers: - ManufacturerDescriptionGenerator (name/link/existing description context) - ManufacturerDescriptionController (generate + status endpoints) - FeatureId::ManufacturerDescription + featureManufacturerDescription config flag - Unit tests mirroring CategoryDescriptionGeneratorTest
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 manufacturer descriptions — the manufacturer half of P0 roadmap item #3. Completes P0 #3 (category & manufacturer copy). Mirrors the just-merged category description feature (#6) exactly.
Changes
ManufacturerDescriptionGenerator(src/Feature/ManufacturerDescription/): feature-flag gates, language resolution, shared tone presets, manufacturer-specific prompt (name, website link, existing description),Capability::TextGeneration, HTML sanitization. ReusesProductDescriptionToneStore.ManufacturerDescriptionController:POST /api/_action/frosh-ai/manufacturer/generate-description+GET /api/_action/frosh-ai/manufacturer/description-status.FeatureId::ManufacturerDescription+featureManufacturerDescriptionconfig checkbox (en + de-DE).Tests
ManufacturerDescriptionGeneratorTest(5 tests): master-off / missing-name gates, tone+language+HTML sanitization, locale resolution, default tone. UpdatedFeatureFlagsTest(feature count 6→7).106 tests / 416 assertions, green — locally and in the
frosh-ai-devcontainer (Shopware 6.7 / PHP 8.3).Notes
Admin UI button is a follow-up (same as category). This lands generator + API + flag + tests.