feat(28-shipment-tracking-ui): badge'e statusow dostawy, linki sledzenia, ustawienia interwalu trackingu

- Kolorowe badge'e statusow dostawy w tabelach paczek (show.php + prepare.php)
- Link sledzenia z carrier detection (InPost, Apaczka, Orlen, Allegro, Google fallback)
- Sekcja Status dostawy w boksie Platnosc i wysylka
- Ustawienie interwalu trackingu crona (5-120 min) w zakladce Ustawienia
- Tekstowe mapowania statusow Apaczka API (NEW, CONFIRMED, etc.)
- Fix: use-statements ApaczkaShipmentService (pre-existing bug)
- Fix: pickup date normalization (next day po 16:00)
- Fix: przycisk Pobierz etykiete (POST zamiast link do prepare)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-23 23:04:05 +01:00
parent 228c0e96cf
commit 98a0077204
17 changed files with 1108 additions and 174 deletions

View File

@@ -647,6 +647,61 @@
background: #fef2f2;
}
.delivery-badge {
display: inline-block;
padding: 2px 8px;
border-radius: 3px;
font-size: 0.8em;
font-weight: 500;
white-space: nowrap;
}
.delivery-badge--unknown {
background: #f5f5f5;
color: #999;
}
.delivery-badge--created {
background: #e3f2fd;
color: #1565c0;
}
.delivery-badge--confirmed {
background: #bbdefb;
color: #0d47a1;
}
.delivery-badge--in_transit {
background: #fff3e0;
color: #e65100;
}
.delivery-badge--out_for_delivery {
background: #ffe0b2;
color: #bf360c;
}
.delivery-badge--ready_for_pickup {
background: #f3e5f5;
color: #6a1b9a;
}
.delivery-badge--delivered {
background: #e8f5e9;
color: #2e7d32;
}
.delivery-badge--returned {
background: #ffebee;
color: #c62828;
}
.delivery-badge--cancelled {
background: #e0e0e0;
color: #616161;
}
.delivery-badge--problem {
background: #fff8e1;
color: #f57f17;
}
.tracking-link {
margin-left: 4px;
text-decoration: none;
font-size: 0.85em;
}
* {
box-sizing: border-box;
}