update
This commit is contained in:
@@ -10,6 +10,13 @@
|
||||
- Privacy hardening: REST nie wystawia `customer_name` w title eventów (defense-in-depth: JS `eventContent` zwraca pusty html)
|
||||
- UX iteracje po checkpoincie: ciemny styl kalendarza (emulacja `/rezerwacja-maja/`), select w spójnym stylu z innymi inputami, instrukcja, server-side legenda, kolor wspólnych eventów `#7fb3d5` (jasnoniebieski)
|
||||
- Bump wersji pluginu 1.0.0 → 1.1.0
|
||||
- [Faza 9, Plan 05] UX rezerwacja — tytuły rezerwacji z GCal w paskach kalendarza zbiorczego + per-day allDay events
|
||||
- REST `/availability/all`: title z `_booking_notes` (raw iCal SUMMARY bez prefiksu "GCal:") lub `customer_name` (frontend), split per-day allDay events (start INCLUSIVE → end INCLUSIVE) z extendedProps.is_first / is_last_night
|
||||
- Frontend JS: `eventContent` renderuje `.yc-event-title` (XSS-safe przez `.text()`), half-day gradient na flagach extendedProps, native `title` tooltip na hover
|
||||
- CSS: usunięte `display:none` z tytułu, nowy `.yc-event-title` (ellipsis), `margin: 1px 2px` na evencie (gap między dziennymi paskami)
|
||||
- Auto-fix po checkpoincie: zmiana z timed 12:00→12:00 events na allDay (timed crossowały północ → schodki w grid)
|
||||
- Świadome cofnięcie privacy z 09-04 — tytuły rezerwacji widoczne publicznie per żądanie klienta (security audit 09-06 ma to przeanalizować)
|
||||
- Bump wersji pluginu 1.1.0 → 1.2.0
|
||||
|
||||
## Zmienione pliki
|
||||
|
||||
@@ -27,3 +34,5 @@
|
||||
- `test-overlap-bookings.php` (test helper, do skasowania z FTP po teście)
|
||||
- `.paul/phases/09-finalizacja/09-04-PLAN.md`
|
||||
- `.paul/phases/09-finalizacja/09-04-SUMMARY.md`
|
||||
- `.paul/phases/09-finalizacja/09-05-PLAN.md`
|
||||
- `.paul/phases/09-finalizacja/09-05-SUMMARY.md`
|
||||
|
||||
17
.paul/changelog/2026-05-08.md
Normal file
17
.paul/changelog/2026-05-08.md
Normal file
@@ -0,0 +1,17 @@
|
||||
# 2026-05-08
|
||||
|
||||
## Co zrobiono
|
||||
|
||||
- [Faza 9, Plan 06] Blokada nawigacji kalendarza zbiorczego `[yacht_calendar_all]` na `/rezerwacja/`
|
||||
- REST: nowy publiczny endpoint `GET /yacht-booking/v1/availability/bounds` zwracający `{ max_booking_date }` (filtr confirmed/pending + end_date >= dziś, sortowanie DESC po meta_value DATE)
|
||||
- Frontend JS: bootstrap fetch bounds przed init FullCalendar, nowa funkcja `buildCalendar` z `validRange { start: pierwszy dzień bieżącego miesiąca, end: pierwszy dzień miesiąca PO maxDate }` (exclusive)
|
||||
- Graceful degradation w fail callback — kalendarz bez validRange gdy endpoint padnie
|
||||
- Bump wersji pluginu 1.2.0 → 1.2.1
|
||||
|
||||
## Zmienione pliki
|
||||
|
||||
- `wp-content/plugins/yacht-booking-system/api/class-rest-controller.php`
|
||||
- `wp-content/plugins/yacht-booking-system/frontend/assets/js/calendar-all.js`
|
||||
- `wp-content/plugins/yacht-booking-system/yacht-booking-system.php`
|
||||
- `.paul/phases/09-finalizacja/09-06-PLAN.md`
|
||||
- `.paul/phases/09-finalizacja/09-06-SUMMARY.md`
|
||||
Reference in New Issue
Block a user