ferrero-opentext/src
DJP 3a95076726 Add Upload from Box workflow - Phase 1 Complete
Core Components Implemented:
- FilenameParser: V2 naming convention parser with strict validation
- MetadataMerger: Merge master + filename metadata (filename priority)
- BoxFileRetriever: List/download files from Box folders
- DAM Lookup Domains: Complete documentation (182 domains)

Features:
- Parse V2 filenames: OMG_JOB_BRAND_COUNTRY_LANG_TITLE_TYPE_VER_SEC_RATIO_TRACKING
- Strip upload components (Job Number & Tracking ID)
- Extract tracking IDs and load master metadata from PostgreSQL
- Merge metadata with filename always winning
- Identify editable vs locked fields
- Build proper asset representation for DAM upload

Files Added:
- src/FilenameParser.php (tested - 8/8 passing)
- src/MetadataMerger.php
- src/BoxFileRetriever.php
- ECOMMERCE_ALLOWED_FIELDS.md (182 lookup domains)
- DAM_LOOKUPDOMAINS_RAW.json (15MB raw data)
- test_filename_parser.php
- fetch_lookupdomains.php
- UPLOAD_FROM_BOX_STATUS.md (complete documentation)

Next Phase: UI integration - Add "Upload from Box" tab to workflow_v3.php

🤖 Generated with Claude Code
2025-10-29 15:47:30 -04:00
..
ApiClient.php Initial commit: Ferrero OpenText Content Scaling Application 2025-10-17 14:29:20 -04:00
AssetDownloader.php Initial commit: Ferrero OpenText Content Scaling Application 2025-10-17 14:29:20 -04:00
AssetUploader.php Create simplified uploader matching exact standalone script 2025-10-28 09:12:51 -04:00
AssetUploaderSimple.php Create simplified uploader matching exact standalone script 2025-10-28 09:12:51 -04:00
BoxClient.php Remove Box metadata template attempts - use description field 2025-10-28 17:46:06 -04:00
BoxFileRetriever.php Add Upload from Box workflow - Phase 1 Complete 2025-10-29 15:47:30 -04:00
CampaignFormatter.php Fix status updates and enhance workflow with proper error handling 2025-10-23 16:43:09 -04:00
DatabaseClient.php Add detailed logging inside getFieldValue to debug NULL returns 2025-10-29 14:42:11 -04:00
FilenameParser.php Add Upload from Box workflow - Phase 1 Complete 2025-10-29 15:47:30 -04:00
IDGenerator.php Add PostgreSQL database integration and Box metadata template 2025-10-28 15:39:32 -04:00
Logger.php Initial commit: Ferrero OpenText Content Scaling Application 2025-10-17 14:29:20 -04:00
MetadataExtractor.php Initial commit: Ferrero OpenText Content Scaling Application 2025-10-17 14:29:20 -04:00
MetadataMerger.php Add Upload from Box workflow - Phase 1 Complete 2025-10-29 15:47:30 -04:00
OAuth2Handler.php Initial commit: Ferrero OpenText Content Scaling Application 2025-10-17 14:29:20 -04:00
PostmanCollectionParser.php Initial commit: Ferrero OpenText Content Scaling Application 2025-10-17 14:29:20 -04:00
ResponseFormatter.php Initial commit: Ferrero OpenText Content Scaling Application 2025-10-17 14:29:20 -04:00
StatusManager.php Fix status updates and enhance workflow with proper error handling 2025-10-23 16:43:09 -04:00
TestRunner.php Initial commit: Ferrero OpenText Content Scaling Application 2025-10-17 14:29:20 -04:00
WorkflowManager.php Initial commit: Ferrero OpenText Content Scaling Application 2025-10-17 14:29:20 -04:00