Files
orderPRO/.paul/STATE.md
Jacek Pyziak 933dfcc67b feat(120): alert component unification
Phase 120 - Plan 01:
- Reusable PHP alert component (resources/views/components/alert.php)
  with inline SVG icon per type, optional dismiss button.
- Missing .alert--info SCSS variant added (#eff6ff/#bfdbfe/#1e3a8a) -
  fixes black-on-white alert after Fakturownia test connection.
- Flash::push(type, message) + Flash::all() with BC for set/get;
  legacy key heuristic (error/.save/warning -> typed entries).
- Central flash renderer in 3 layouts (app/auth/public) iterating
  Flash::all() through component (.alerts-stack wrap).
- Vanilla JS alert-dismiss.js with idempotent guard and delegated
  click handler on [data-alert-dismiss].
- 36 views migrated off inline <div class="alert alert--TYPE">;
  .flash--error/success removed from views (orders/show, shipments/prepare).
- SCSS rebuilt: public/assets/css/{app,login}.css.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-12 18:47:41 +02:00

3.0 KiB

Project State

Project Reference

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 + operational integrations - Phase 118 Fakturownia single-instance APPLY complete; DB/manual verification remains environment-dependent.

Current Position

Milestone: v3.7 Invoices (Fakturownia integration) - In progress Phase: 120 of TBD (Alert Component Unification) - Complete Plan: 120-01 complete (UNIFY closed) Status: Loop closed; CSS rebuilt inline; manual smoke tests pending operator (fakturownia test, login error, dismiss). Last activity: 2026-05-12 - UNIFY complete for .paul/phases/120-alert-component-unification/120-01-PLAN.md

Progress:

  • Milestone v3.7: [##########] ~90% (Phase 113-117 closed; Phase 118 applied; Phase 119 complete; Phase 120 complete)
  • Phase 120: [##########] 100% - Complete

Loop Position

Current loop state:

PLAN -> APPLY -> UNIFY
  done     done     done  [Loop closed - ready for transition]

Session Continuity

Last session: 2026-05-12 Stopped at: Phase 120 UNIFY closed Next action: Phase transition (git commit feat(120): alert component unification) then choose next phase candidate from v3.7 backlog or pause. Resume file: .paul/phases/120-alert-component-unification/120-01-SUMMARY.md

Pending parallel work

  • Phase 118 still awaiting UNIFY (.paul/phases/118-fakturownia-single-instance/118-01-SUMMARY.md exists; DB verification gated on local MySQL).

Git State

Last phase commit: feat(117): smsplanet integration settings Branch: main

Pending Actions

  • 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.
  • Phase 117 follow-up: run migration when XAMPP MySQL is online and manually test real SMSPLANET sends for Bearer token and key + password.
  • Phase 119 follow-up: composer install + vendor/bin/phpunit tests/Unit/OrderImportRepositoryTest.php to run the 3 new tests; manual smoke test re-syncing order #976 from shoppro to confirm total_paid=91.00 persists across re-import.

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.
  • 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 Requirements

  • sonar-scanner required after APPLY; Phase 116 and Phase 117 gaps documented because CLI was not available in PATH.