feat(116): hostedsms integration settings

Phase 116 complete:
- add HostedSMS settings with encrypted password storage
- add SimpleAPI real test SMS flow and integrations hub row
- document schema, architecture, changelog, and PAUL state

Co-Authored-By: Codex <noreply@openai.com>
This commit is contained in:
2026-05-12 12:25:07 +02:00
parent adacb65110
commit bc2ed2c8e2
20 changed files with 1282 additions and 56 deletions

View File

@@ -5,79 +5,55 @@
See: .paul/PROJECT.md (updated 2026-05-07)
**Core value:** Sprzedawca moze obslugiwac zamowienia ze wszystkich kanalow sprzedazy i nadawac przesylki bez przelaczania sie miedzy platformami.
**Current focus:** v3.7 Invoices — Phase 113 + 114 shipped; nastepna faza 115 (wystawianie faktury z zamowienia) do zaplanowania
**Current focus:** v3.7 Invoices + operational integrations - Phase 116 HostedSMS settings/test SMS complete.
## Current Position
Milestone: v3.7 Invoices (Fakturownia integration) In progress
Phase: 116 of TBD (TBD — kandydaci v3.7 lub przejscie na kolejny milestone) Not started
Milestone: v3.7 Invoices (Fakturownia integration) - In progress
Phase: 117 of TBD (next candidate) - Not started
Plan: pending
Status: Phase 115 closed; transition done; ready to plan kolejna faze
Last activity: 2026-05-10 — UNIFY 115-01 complete + transition: PROJECT.md/ROADMAP.md/changelog zaktualizowane
Status: Phase 116 complete; ready to plan next phase
Last activity: 2026-05-12 - UNIFY 116-01 complete and transition done
Progress:
- Milestone v3.7: [██████░░░░] ~55% (Phase 113 + 114 + 115 zamkniete; kandydaci: XLSX invoices export, INVOICE-IDEMP-115, invoice.created event, curl_close shopPRO backfill)
- Phase 115: [██████████] 100% Complete
- Milestone v3.7: [########--] ~75% (Phase 113 + 114 + 115 + 116 closed)
- Phase 116: [##########] 100% - Complete
## Loop Position
Current loop state:
```
v3.7 milestone:
Phase 113 (Fakturownia Integration Foundation): Complete
Phase 114 (Accounting Configs Refactor): Complete
Phase 115 (Wystawianie faktury z zamowienia): Complete
Phase 116 (TBD): not started
```
```
PLAN ──▶ APPLY ──▶ UNIFY
✓ ✓ ✓ [Phase 115 closed; ready for Phase 116 plan]
PLAN -> APPLY -> UNIFY
done done done [Loop complete - ready for next PLAN]
```
## Session Continuity
Last session: 2026-05-10
Stopped at: Phase 115 transition complete (PROJECT.md + ROADMAP.md updated, SUMMARY zapisany, changelog zaktualizowany)
Next action: /paul:plan dla kolejnej fazy (v3.7 kandydaci: XLSX export listy faktur, INVOICE-IDEMP-115, invoice.created automation event, lub backfill `curl_close()` w shopPRO)
Resume file: .paul/phases/115-invoice-from-order/115-01-SUMMARY.md
Last session: 2026-05-12
Stopped at: Phase 116 complete, ready to plan next phase
Next action: $paul-plan for next v3.7 candidate or next milestone
Resume file: .paul/phases/116-hostedsms-integration/116-01-SUMMARY.md
## Git State
Last commit: 33ee1a1 feat(115): wystawianie faktury z zamowienia (lokalne + delegowane Fakturownia)
Last known commit: ecef7c7 feat(116): hostedsms integration settings
Branch: main
Feature branches merged: none
## Pending Actions
- **Phase 113-01 (smoke test wykonany przez usera 2026-05-10):** OK
- Manualne testy AC-1..AC-7 dla Phase 112 na zywej bazie (XAMPP online)
- Backfill zamowienia #882 — operator robi recznie po wdrozeniu (poza zakresem planu)
- Uruchom migracje gdy XAMPP online: `php bin/migrate.php` (delivery_statuses)
- Recznie odtworzyc istniejace reguly automatyzacji z grupowymi kluczami (BREAKING z 108-02)
- Manualne testy AC-1..AC-7 dla Phase 112 na zywej bazie (XAMPP online).
- Backfill zamowienia #882 - operator robi recznie po wdrozeniu (poza zakresem planu).
- Uruchom migracje gdy XAMPP online: `php bin/migrate.php` (delivery_statuses).
- Recznie odtworzyc istniejace reguly automatyzacji z grupowymi kluczami (BREAKING z 108-02).
- HostedSMS inbound replies: requires DCS/HostedSMS activation before implementation.
## 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, 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)
- 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.
- 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 108)
## Skill Requirements
| Expected | Invoked | Notes |
|----------|---------|-------|
| sonar-scanner (required) | o | Wymagany po APPLY 108-01 i 108-02 - odlozony |
## Skill Audit (Phase 110)
| Expected | Invoked | Notes |
|----------|---------|-------|
| sonar-scanner (required) | yes | Skan uruchomiony po APPLY; raport wyslany do SonarQube. |
## Phase 110 Notes
- Local HTTP verification blocked by MySQL/XAMPP connection refused.
- PHPUnit not run: `composer` unavailable in PATH and `vendor/` absent.
- Sonar issue import to `DOCS/todo.md` not performed because SonarQube MCP/resources are unavailable in this session.
- `sonar-scanner` required after APPLY; Phase 116 gap documented because CLI was not available in PATH.