Phase 2: Multi-Store/Locale + Enrichment Status Flags#53
Closed
DavidLambauer wants to merge 27 commits intomage-os-lab:mainfrom
Closed
Phase 2: Multi-Store/Locale + Enrichment Status Flags#53DavidLambauer wants to merge 27 commits intomage-os-lab:mainfrom
DavidLambauer wants to merge 27 commits intomage-os-lab:mainfrom
Conversation
Phased roadmap covering all 12 open issues: configurable attributes, multi-store/locale, prompt rules engine, review workflow, and structured attribute extraction.
Detailed task-by-task plan for housekeeping (mage-os-lab#22, mage-os-lab#23, mage-os-lab#25) and configurable attributes (mage-os-lab#27) with TDD steps, exact file paths, and code snippets.
Multi-store/locale (mage-os-lab#12) and enrichment status flags (mage-os-lab#48): 14 tasks covering store-scoped enrichment, locale-aware prompts, enrichment log table, and admin UI status indicators.
This was referenced Apr 14, 2026
Contributor
Author
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
Depends on: #52 (Phase 1: Housekeeping + Configurable Attributes)
Multi-Store/Locale (#12) Details
The enrichment pipeline now carries store context end-to-end:
RequestDTO gained astoreIdfield (defaults to0for backward compatibility with in-flight queue messages)Publisheraccepts and passesstoreIdto queue messagesConsumersets the correct store scope before loading the product and enrichingSaveAfterobserver passes the product's store ID to the publisherMassEnrichcontroller passes the current admin store scope to the publisherConfig::getSystemPrompt()detects the store's locale (general/locale/code) and prepends "Respond in {Language}." to the system prompt for non-English locales (42 languages supported)Enrichment Status Flags (#48) Details
A new
mageos_catalogai_enrichment_logDB table tracks enrichment status per product/attribute/store with a unique constraint on(entity_id, attribute_code, store_id).EnrichmentLogmodel with status constants:generated,pending_review,modifiedEnrichmentLoggerservice provideslog(),markModified(),getStatus(), andgetStatusesForProduct()Enricherwrites a log entry after each successful AI generationSaveBeforeobserver detects manual edits to previously enriched attributes and marks them asmodifiedmageos-catalogai-enriched-field) to enriched fields on the product edit form for future visual indicatorsTest plan
setup:upgrade— should create themageos_catalogai_enrichment_logtablesetup:di:compile— should complete without errorsmageos_catalogai_enrichment_logtable forgeneratedstatus entriesmodifiedmageos-catalogai-enriched-fieldCSS class