Title Changes: - App title: "L'Oréal OMG Assistant Global" - Tab 1: "Master Global Asset Submission" - Upload button: "Approve & Upload to OMG" Preview Enhancements: - Dropdown selector to preview all 16 CSV files individually - Shows filename with ISO code (e.g., "en-GB - OMG1601654_...") - Switch between files to view complete data for each - Show ALL rows (not just first 20) Download Features: - "Download Current File" - Download the currently previewed CSV - "Download All Files (ZIP)" - Download all 16 CSVs as a ZIP archive - get-csv-preview.php: Endpoint to fetch any file for preview - download-all-csv.php: Creates ZIP with all CSVs UX Improvements: - File selector styled with brand colors - Clear labeling of which file is being previewed - Easy navigation between all regional CSVs - Test before upload with full data visibility 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
30 lines
703 B
PHP
30 lines
703 B
PHP
<?php
|
|
session_start();
|
|
|
|
error_reporting(E_ALL);
|
|
ini_set('display_errors', 1);
|
|
|
|
header('Content-Type: application/json');
|
|
|
|
try {
|
|
require_once __DIR__ . '/vendor/autoload.php';
|
|
|
|
echo json_encode([
|
|
'success' => true,
|
|
'message' => 'Basic test passed',
|
|
'classes' => [
|
|
'Reader' => class_exists('League\Csv\Reader'),
|
|
'Writer' => class_exists('League\Csv\Writer'),
|
|
'Carbon' => class_exists('Carbon\Carbon')
|
|
]
|
|
]);
|
|
|
|
} catch (Exception $e) {
|
|
http_response_code(500);
|
|
echo json_encode([
|
|
'success' => false,
|
|
'error' => $e->getMessage(),
|
|
'file' => $e->getFile(),
|
|
'line' => $e->getLine()
|
|
]);
|
|
}
|