Architecture
📷
Add: screenshots/architecture.png
Ewbecommerce/AiEmailDesigner/ ├── Api/ # Service interfaces │ ├── Data/TemplateInterface.php │ ├── TemplateRepositoryInterface.php │ ├── AiGeneratorInterface.php │ ├── BrandDetectorInterface.php │ ├── EmailTesterInterface.php │ └── ScreenshotAnalyzerInterface.php ├── Block/Adminhtml/ # Admin blocks ├── Controller/Adminhtml/ # Admin controllers │ ├── Designer/ # AI Designer (Generate, Refine) │ ├── Template/ # CRUD + Assign + Mass Actions │ ├── Screenshot/ # Upload & process │ ├── Brand/ # Brand detection │ └── Test/ # Email testing ├── Helper/Config.php # Configuration helper ├── Model/ │ ├── Service/ │ │ ├── AiGenerator.php # Core AI generation engine │ │ ├── PromptBuilder.php # Email-specific prompt engineering │ │ ├── BrandDetector.php # Store brand auto-detection │ │ ├── EmailTester.php # HTML validation & testing │ │ ├── ScreenshotAnalyzer.php # Vision AI analysis │ │ └── CssInliner.php # CSS inlining for compatibility │ ├── Template.php # Template model │ ├── TemplateRepository.php # Repository pattern │ └── ResourceModel/ # Database layer ├── Observer/ # A/B testing observer ├── Plugin/ # Email template override plugin ├── Setup/Patch/Data/ # Default prompt presets ├── Ui/Component/ # Admin grid components ├── view/adminhtml/ # Admin UI │ ├── layout/ # Page layouts │ ├── templates/ # PHTML templates │ ├── ui_component/ # UI component configs │ └── web/ # JS + CSS ├── etc/ # Module configuration │ ├── db_schema.xml # Database tables │ ├── di.xml # Dependency injection │ ├── adminhtml/system.xml # Admin config fields │ └── ... └── i18n/ # Translations (EN, DE)
63
PHP
17
XML
6
PHTML
5
JS
1
CSS/LESS