This commit is contained in:
2026-03-25 00:41:16 +01:00
parent 1739f354d1
commit a82ec90a51
48 changed files with 4019 additions and 0 deletions

40
.claude/sessionstate.md Normal file
View File

@@ -0,0 +1,40 @@
# Session State
Ostatnia aktualizacja: 2026-03-25
## Aktualny cel
Budowa formularza rezerwacji samochodu jako plugin Elementor zintegrowany z API Softra Rent.
## Co zostało zrobione
- Phase 1 COMPLETE: Plugin carei-reservation z natywnym cURL proxy do Softra API, 10 REST endpoints, widget Elementor
- Phase 2 IN PROGRESS (2/3 tasks):
- Task 1: HTML formularza z Figmy + CSS 541 linii (responsive, BEM)
- Task 2: JS 580+ linii (API integration, walidacja, dynamiczne dropdowny)
- Fix: wp_remote_post → natywny cURL (matching softra-test.php)
- Fix: GET /car/class/listAll → segmenty bez wymagania oddziału
- Task 3: checkpoint:human-verify PENDING (deploy + test na serwerze)
- Dokumentacja Figma w docs/figma-formularz/ (screenshoty, specyfikacja, JSX referencyjne)
- Struktura PAUL w .paul/ (PROJECT, ROADMAP, STATE, Phase 1 SUMMARY)
## Co zostało do zrobienia
- Deploy 5 plików na serwer i test wizualny formularza (checkpoint)
- Phase 3: Overlay/podsumowanie + submit rezerwacji do API (tworzenie klienta, booking, confirm)
- Phase 4: Polish & integration testing
## Kluczowe pliki
| Plik | Rola |
|------|------|
| wp-content/plugins/carei-reservation/ | Cały plugin |
| .paul/HANDOFF-2026-03-25.md | Pełny handoff z kontekstem |
| .paul/STATE.md | Stan projektu PAUL |
| docs/figma-formularz/README.md | Specyfikacja formularza |
| softra-test.php | Referencyjny test API (cURL) |
## Ważne decyzje / ustalenia
- Natywny cURL zamiast wp_remote_post (softra-test.php pattern)
- GET /car/class/listAll dla segmentów (nie wymaga oddziału)
- Formularz wielokrokowy: Krok 1 (formularz) → Krok 2 (Overlay z podsumowaniem)
- Kolory: #2F2482 (blue), #FF0000 (red), #EDEDF3 (bg)
- Font: Albert Sans
## Następny krok
Wgrać pliki na serwer carei.pagedev.pl → przetestować formularz → "approved" lub fix → /paul:unify → Phase 3.

View File

@@ -0,0 +1,10 @@
{
"permissions": {
"allow": [
"mcp__figma__get_design_context",
"mcp__figma__get_metadata",
"mcp__plugin_context-mode_context-mode__ctx_execute",
"mcp__figma__get_screenshot"
]
}
}