modcomms/backend/app/services
michael 2cd3b2b9ae Add brand selection support for Barclays vs Barclaycard guidelines
- Add brand field to AnalyzeProofOptions interface and WebSocket message
- Pass campaign's brandGuidelines to analyzeProof in App.tsx (upload & retry)
- Extract brand from WebSocket message in handlers.py and pass to analysis
- Update AnalysisService.analyze_proof to accept brand parameter
- Refactor BrandAgent to dynamically select brand spec based on brand param
- Add get_barclays_brand_spec() method to ReferenceDocsService (placeholder)

The brand agent now uses the appropriate specification (Barclaycard spec or
Barclays spec when available) based on the campaign's brandGuidelines setting.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-24 11:31:59 -06:00
..
__init__.py permissions changes 2025-12-18 16:51:27 +00:00
analysis_service.py Add brand selection support for Barclays vs Barclaycard guidelines 2026-01-24 11:31:59 -06:00
auth_service.py Support both v1.0 and v2.0 Azure AD token issuer formats 2025-12-18 17:03:47 -06:00
email_service.py Add support email functionality via Mailgun 2026-01-24 07:03:11 -06:00
gemini_service.py Make Gemini analysis responses concise and actionable 2026-01-24 09:48:08 -06:00
pdf_service.py Add PDF rasterization support for reliable preview and analysis 2026-01-24 09:36:56 -06:00
reference_docs.py Add brand selection support for Barclays vs Barclaycard guidelines 2026-01-24 11:31:59 -06:00
storage_service.py permissions changes 2025-12-18 16:51:27 +00:00