Commit graph

3 commits

Author SHA1 Message Date
DJP
167c85bde5 Add input validation and smart defaults for filename builder
Validation Improvements:
- Subject Title: Automatically converts underscores to hyphens
- Subject Title: Shows warning when underscores are detected
- Spot Version: Always enforces 3-character length
- Spot Version: Auto-pads with leading zeros (e.g., 1 → 001)
- Both frontend (JavaScript) and backend (PHP) validation

Smart Defaults:
- Spot Version: Defaults to "001"
- Duration: Defaults to "6" seconds
- Users can change defaults as needed

Applied to Both Versions:
- v1 (public/) - Original version updated
- v2 (public-v2/) - Tracking ID version updated

Technical Implementation:
- Real-time underscore detection and conversion
- Auto-hide warning after 3 seconds
- Input blur event for spot version padding
- Form submit validation as final check
- Server-side enforcement in API endpoints

Testing:
-  Underscores converted: "TEST_FILE" → "TEST-FILE"
-  Spot version validated: "1" rejected, "001" accepted
-  Defaults working: spot=001, duration=6

Improves data consistency and user experience.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-29 14:05:50 -04:00
DJP
ea7f266bf0 Add language code field and migrate to ISO standard codes
- Add language_code field (ISO 639-1/639-2) to naming schema
- Position language code after country code in filename structure
- Migrate country codes from SAP to ISO 3166-1 standard (38 countries)
- Add comprehensive language codes library (25 languages)
- Update API endpoints to handle language_code in build/decode operations
- Add new /api.php?action=languages endpoint
- Update UI with language code dropdown and decoder display
- Update help documentation with ISO standards info and FAQs
- New format: [OMG]_[BRAND]_[COUNTRY]_[LANGUAGE]_[SUBJECT]_[ASSET]_[VERSION]*_[DURATION]S_[RATIO]
- Example: 12345_RAF_IT_it_ME MOMENT_OLV_6S_1x1

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-22 14:12:08 -04:00
DJP
82eff7b76a Initial commit: Ferrero Communication Assets Naming Convention Tool
- PHP-based naming convention tool for Ferrero communication assets
- Filename builder with validation
- Filename decoder with component breakdown
- Complete help documentation
- Ferrero brand styling with Montserrat font
- OMG Job Number field (numbers only, max 10 chars)
- 105 brands, 29 countries, 39 asset types from Excel
- Responsive landscape layout
- Data management via JSON (parsed from Excel)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-14 16:05:16 -04:00