Commit graph

2 commits

Author SHA1 Message Date
DJP
300a67d247 Add Reset to Factory Defaults button with double confirmation
Features:
- Renamed "Reload from Server" to "Refresh Display" for clarity
- Added "Reset to Factory Defaults" button with warning icon
- Red danger button styling (matches warning theme)
- Double confirmation dialog to prevent accidental resets
- Backend endpoint to restore original 8 platforms (21 configurations)
- Deletes custom platform_specs.json file
- Restores L'Oréal documentation specifications

Functionality:
- "Refresh Display" - Reloads current specs from backend (no changes)
- "Reset to Factory Defaults" - Deletes ALL custom platforms and restores original 21 configs
- Custom platforms are saved until factory reset is triggered
- Factory defaults stored at server startup for restoration

Safety features:
- Two confirmation dialogs
- Clear warning messages
- Success feedback showing platform count restored

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-16 18:40:59 -04:00
DJP
5f8bac9ec4 Add comprehensive Admin Panel for platform management
Features:
- Complete admin interface for managing platform specifications
- Metrics dashboard showing total platforms, configurations, codecs, and aspect ratios
- Add new platforms with custom codecs and format configurations
- Edit existing platforms and their aspect ratio settings
- Delete platforms from the system
- Export all specifications to JSON (for backups)
- Import specifications from JSON (bulk updates/restore)
- Real-time platform list with detailed specification tables
- Dark theme (black + yellow) matching main app
- Link to admin panel from main app footer

Backend Enhancements:
- 5 new admin API endpoints (POST, PUT, DELETE, export, import)
- Auto-save to platform_specs.json file
- Auto-load specs from JSON on server startup
- Persistent storage for platform configurations
- CORS enabled for admin endpoints

Admin Panel allows non-technical users to:
- Add new social media platforms as they emerge
- Update bitrate recommendations
- Add new aspect ratio support
- Manage all 21+ platform configurations
- Export/import for version control and backups

Access: frontend/admin.html

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-16 18:34:12 -04:00