Add <thead>/<th> headers to all email and PDF template tables, fix infra test snapshot data

- Add proper <thead> with <th> headers to tables in email templates:
  order_cancelled_orga, order_notification_orga, order_refunded,
  organizer_invitation, payment_failed, scan_force_notification
- Add proper <thead> with <th> headers to tables in PDF templates:
  attestation_ventes, billet, export_recap, invoice
- Fix testInfraPageWithSnapshotData: provide complete server data
  (os, uptime, cpu, ram, disk, services, ssl) required by the template

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Serreau Jovann
2026-04-02 13:40:48 +02:00
parent 7b618a700f
commit 8eb7d74445
11 changed files with 223 additions and 10 deletions

View File

@@ -865,13 +865,22 @@ class AdminControllerTest extends WebTestCase
$originalContent = $existed ? file_get_contents($path) : null;
file_put_contents($path, json_encode([
'server' => ['hostname' => 'test'],
'server' => [
'hostname' => 'test', 'os' => 'Linux', 'uptime' => '1d',
'cpu_model' => 'Test CPU', 'cpu_cores' => '4',
'load_1m' => '0.5', 'load_5m' => '0.3', 'load_15m' => '0.1', 'load_percent' => '12',
'ram_total' => '8G', 'ram_used' => '4G', 'ram_free' => '4G', 'ram_percent' => '50',
'disk_total' => '100G', 'disk_used' => '50G', 'disk_free' => '50G', 'disk_percent' => '50',
'caddy' => ['status' => 'ok', 'info' => 'running'],
'docker' => ['status' => 'ok', 'info' => 'running'],
'ssl' => ['domain' => 'test.fr', 'issuer' => 'LE', 'valid_until' => '2027-01-01', 'days_left' => '270', 'status' => 'ok'],
],
'containers' => [],
'redis_global' => ['connected' => true],
'redis_global' => ['connected' => false, 'error' => 'Test'],
'redis_dbs' => [],
'postgres' => ['connected' => true],
'pgbouncer' => ['connected' => true],
'generated_at' => '2026-04-01',
'postgres' => ['connected' => false, 'error' => 'Test'],
'pgbouncer' => ['connected' => false, 'error' => 'Test'],
'generated_at' => '2026-04-01 10:00:00',
]));
$client->loginUser($admin);