Phase 108 complete (v3.2 milestone):
Plan 108-01 — Delivery Status DB & CRUD:
- Tabela delivery_statuses z seedem 11 statusow systemowych
- DeliveryStatusRepository (CRUD + per-request static cache)
- DeliveryStatus::setRepository() — DB fallback dla static final class
- Panel /settings/delivery-statuses (zakladki Statusy + Mapowanie)
- Sidebar przebudowany: Statusy zamowien + Statusy przesylek
Plan 108-02 — Automation Dropdowns z DB + UI Refactor:
- Dropdowny automatyzacji ladowane z DB (warunek shipment_status + akcja update_shipment_status)
- Walidacja przez DeliveryStatus::getAllStatuses()
- Osobna podstrona formularza CRUD (delivery-status-form.php)
- Lista uproszczona: rename Terminal -> Koncowy, usunieta kolumna Typ
- BREAKING: drop backward compat dla starych grupowych kluczy automatyzacji
- Bug fix: path params w DeliveryStatusesController via \$request->input('id')
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
50 lines
1.3 KiB
SCSS
50 lines
1.3 KiB
SCSS
.delivery-badge {
|
|
display: inline-block;
|
|
padding: 2px 8px;
|
|
border-radius: 3px;
|
|
font-size: 0.8em;
|
|
font-weight: 500;
|
|
white-space: nowrap;
|
|
|
|
&--unknown { background: #f5f5f5; color: #999; }
|
|
&--created { background: #e3f2fd; color: #1565c0; }
|
|
&--confirmed { background: #bbdefb; color: #0d47a1; }
|
|
&--picked_up { background: #e1f5fe; color: #01579b; }
|
|
&--in_transit { background: #fff3e0; color: #e65100; }
|
|
&--out_for_delivery { background: #ffe0b2; color: #bf360c; }
|
|
&--ready_for_pickup { background: #f3e5f5; color: #6a1b9a; }
|
|
&--delivered { background: #e8f5e9; color: #2e7d32; }
|
|
&--returned { background: #ffebee; color: #c62828; }
|
|
&--cancelled { background: #e0e0e0; color: #616161; }
|
|
&--problem { background: #fff8e1; color: #f57f17; }
|
|
}
|
|
|
|
.tracking-link {
|
|
margin-left: 4px;
|
|
text-decoration: none;
|
|
font-size: 0.85em;
|
|
}
|
|
|
|
.delivery-status-swatch {
|
|
display: inline-block;
|
|
width: 14px;
|
|
height: 14px;
|
|
border-radius: 2px;
|
|
background: var(--status-color, #6c757d);
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.delivery-status-system-badge {
|
|
display: inline-block;
|
|
padding: 1px 6px;
|
|
border-radius: 3px;
|
|
font-size: 0.75em;
|
|
background: #e9ecef;
|
|
color: #6c757d;
|
|
}
|
|
|
|
.delivery-badge--custom {
|
|
background: var(--status-color, #6c757d);
|
|
color: #fff;
|
|
}
|