feat(108): delivery status management

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>
This commit is contained in:
2026-04-27 22:10:24 +02:00
parent d8daf61de6
commit 0063402897
30 changed files with 2045 additions and 299 deletions

View File

@@ -5,47 +5,55 @@
See: .paul/PROJECT.md (updated 2026-04-27)
**Core value:** Sprzedawca moze obslugiwac zamowienia ze wszystkich kanalow sprzedazy i nadawac przesylki bez przelaczania sie miedzy platformami.
**Current focus:** v3.1 Operational Enhancements — COMPLETE. Oczekiwanie na kolejny milestone.
**Current focus:** Brak aktywnego milestone — v3.2 zamkniety
## Current Position
Milestone: v3.1 Operational Enhancements — COMPLETE
Phase: 107 of 107 (Automation Email Send Once) — Complete
Plan: 107-01 — Unified
Version: 3.1.0
Status: Milestone zamkniety, gotowy do planowania kolejnego milestone
Milestone: v3.2 — COMPLETE (Delivery Status Management)
Phase: 108 of 108 — COMPLETE
Plan: 108-01 — COMPLETE / 108-02 — COMPLETE
Version: 3.2.0
Status: v3.2 shipped — gotowy do nastepnego milestone
Last activity: 2026-04-27 — UNIFY phase 107, milestone v3.1 closed
Last activity: 2026-04-27 — TRANSITION Phase 108 / v3.2 milestone complete
Progress:
- Milestone: [##########] 100%
- Phase 107: [##########] 100%
- Milestone v3.2: [##########] 100% (1/1 phases, 2/2 plans)
## Loop Position
Current loop state:
```
PLAN --> APPLY --> UNIFY
[x] [x] [x] [Loop complete — milestone complete]
v3.2 milestone:
Phase 108 (Delivery Status Management):
Plan 108-01: PLAN ✓ APPLY ✓ UNIFY ✓
Plan 108-02: PLAN ✓ APPLY ✓ UNIFY ✓
→ Phase 108 closed
→ v3.2 milestone closed
```
## Session Continuity
Last session: 2026-04-27
Stopped at: Milestone v3.1 complete — wszystkie fazy zamkniete
Next action: /paul:milestone — zaplanuj kolejny milestone (v3.2)
Stopped at: v3.2 milestone closed
Next action: /paul:milestone — wybor i zaplanowanie nastepnego milestone
Resume file: .paul/ROADMAP.md
## Pending Actions
- Uruchom migracje gdy XAMPP online: `php bin/migrate.php` (delivery_statuses)
- Recznie odtworzyc istniejace reguly automatyzacji z grupowymi kluczami (BREAKING z 108-02)
## Deferred to Next Milestones
- Phase 68 - Code Deduplication Refactor (0/2 Planning, nigdy nie rozpoczety)
- STAT-NET - netto shopPRO z API lub z `order_items.tax_rate` (`.paul/TODO.md`)
- Mobile Orders List / Mobile Order Details / Mobile Settings (TBD z poprzedniego roadmapu)
- sonar-scanner - skan dla phase 105, 106, 107 nie zostal uruchomiony (skill gap odnotowany)
- sonar-scanner - skan dla phase 105, 106, 107, 108 nie zostal uruchomiony (skill gap odnotowany)
- INDEX-106-01 - indeksy DB dla query `customer_returned_count`: `order_addresses(order_id, address_type)`, `shipment_packages(order_id, delivery_status)` (gdy dataset >50k wierszy)
## Skill Audit (Phase 107)
## Skill Audit (Phase 108)
| Expected | Invoked | Notes |
|----------|---------|-------|
| sonar-scanner (required) | o | Nie uruchomiony — odlozony analogicznie do Phase 105/106 |
| sonar-scanner (required) | o | Wymagany po APPLY 108-01 i 108-02 — odlozony |