3.8 KiB
3.8 KiB
PAUL Handoff
Date: 2026-03-25 Status: paused — checkpoint human-verify pending (awaiting deploy + test)
READ THIS FIRST
You have no prior context. This document tells you everything.
Project: Carei — Formularz rezerwacji samochodu jako plugin Elementor, zintegrowany z Softra Rent API Core value: Klient klika "Złóż zapytanie o rezerwację" → modal z formularzem → dane z API Softra → rezerwacja
Current State
Milestone: v0.1 Formularz Rezerwacji MVP Phase: 2 of 4 — Form UI Krok 1 (Formularz) Plan: 02-01 — APPLY in progress (Tasks 1+2 done, Task 3 checkpoint pending)
Loop Position:
PLAN ──▶ APPLY ──▶ UNIFY
✓ ◐ ○ [Apply in progress — checkpoint:human-verify waiting]
What Was Done
Phase 1 (complete):
- Plugin
carei-reservationz natywnym cURL proxy do Softra Rent API - 10 WP REST endpoints w namespace
carei/v1 - Widget Elementor z przyciskiem CTA + modal overlay
- Fix: widget require_once przeniesiony do hooka elementor/widgets/register
- Fix: zamiana wp_remote_post na natywny cURL (matching softra-test.php)
Phase 2 (in progress — Tasks 1+2 done):
- HTML formularza z wszystkimi sekcjami z Figmy (widget render)
- CSS 541 linii (responsive, custom checkboxy, karty opcji, walidacja)
- JS 580+ linii (API integration, walidacja, interakcje)
- Nowy endpoint GET /car-classes-all (listAll) — segmenty ładują się od razu bez wymagania oddziału
- Opcje dodatkowe ładowane dynamicznie z cennika API
What's In Progress
- Task 3 checkpoint:human-verify — użytkownik musi wgrać pliki na serwer i przetestować wizualnie
- Pliki do wgrania:
includes/class-softra-api.php(natywny cURL + get_all_car_classes)includes/class-rest-proxy.php(nowy endpoint car-classes-all)includes/class-elementor-widget.php(pełny HTML formularza)assets/css/carei-reservation.css(kompletne style)assets/js/carei-reservation.js(logika + API)
What's Next
Immediate: Wgrać pliki na serwer → przetestować formularz → "approved" lub opisać problemy
After that:
- Jeśli approved → /paul:unify → Phase 3 (Overlay/podsumowanie + submit rezerwacji do API)
- Jeśli issues → fix → re-verify
Remaining phases:
- Phase 3: Form UI Krok 2 (Overlay z podsumowaniem, tworzenie klienta, booking)
- Phase 4: Polish & integration testing
Key Decisions Made
| Decision | Rationale |
|---|---|
| Natywny cURL zamiast wp_remote_post | softra-test.php działa z cURL, WP HTTP API timeout |
| GET /car/class/listAll dla segmentów | Segment jest pierwszym polem w Figmie, nie powinien wymagać oddziału |
| Osobny plugin carei-reservation | Czystsza separacja od elementor-addon |
| sslverify nie ustawiane (domyślne cURL) | Tak jak w softra-test.php który działa na produkcji |
Key Files
| File | Purpose |
|---|---|
.paul/STATE.md |
Live project state |
.paul/ROADMAP.md |
Phase overview (Phase 1 ✅, Phase 2-4 ⬜) |
.paul/phases/02-form-ui-step1/02-01-PLAN.md |
Current plan |
.paul/phases/01-reservation-form-plugin/01-01-SUMMARY.md |
Phase 1 summary |
wp-content/plugins/carei-reservation/ |
Plugin directory (all code) |
docs/figma-formularz/README.md |
Figma design spec |
docs/figma-formularz/screenshot-desktop.png |
Desktop reference |
docs/figma-formularz/screenshot-mobile.png |
Mobile reference |
softra-test.php |
Working Softra API test (reference for cURL config) |
.env |
API credentials (url, username, password) |
Resume Instructions
- Read
.paul/STATE.mdfor latest position - User needs to deploy files to server and test
- After test: "approved" → run
/paul:unifythen/paul:planfor Phase 3 - Or run
/paul:resumeor/paul:progress
Handoff created: 2026-03-25