From d960e37aa86c4853950aaa61cd0f43c9b11505b0 Mon Sep 17 00:00:00 2001 From: LagoESP Date: Wed, 29 Apr 2026 15:01:25 +0200 Subject: [PATCH] feat: enhance booking flow with BPF wizard, weekend pricing, and document uploads - Updated translations for German and English to reflect changes in deposit terminology. - Modified index.html to implement a new booking flow with a step-by-step wizard for vehicle selection, contact details, and ID verification. - Added CSS styles for the new booking flow interface, including responsive design and improved input styles. - Created new database policies and tables for handling customer and lead attachments during the booking process. - Introduced weekend pricing and daily KM limits for vehicles in the database schema. - Implemented email-based customer upsert functionality to streamline lead qualification and attachment transfer. Co-authored-by: Copilot --- docker-compose.local.yml | 1 + docker-compose.yml | 2 + frontend/admin.html | 11 +- frontend/admin.js | 6 + frontend/app.js | 310 +++++++++++++++++++++--- frontend/i18n.js | 112 ++++++++- frontend/index.html | 203 ++++++++++++---- frontend/styles.css | 136 ++++++++++- supabase/migrations/03-booking-flow.sql | 156 ++++++++++++ supabase/migrations/post-boot.sql | 29 +++ 10 files changed, 880 insertions(+), 86 deletions(-) create mode 100644 supabase/migrations/03-booking-flow.sql diff --git a/docker-compose.local.yml b/docker-compose.local.yml index fc9c8e8..8b0183f 100644 --- a/docker-compose.local.yml +++ b/docker-compose.local.yml @@ -17,6 +17,7 @@ services: volumes: - ./supabase/migrations/post-boot.sql:/sql/post-boot.sql:ro - ./supabase/migrations/02-leads.sql:/sql/02-leads.sql:ro + - ./supabase/migrations/03-booking-flow.sql:/sql/03-booking-flow.sql:ro kong: volumes: diff --git a/docker-compose.yml b/docker-compose.yml index 02b912b..08bbb4d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -209,6 +209,7 @@ services: volumes: - /mnt/user/appdata/mc-cars/supabase/migrations/post-boot.sql:/sql/post-boot.sql:ro - /mnt/user/appdata/mc-cars/supabase/migrations/02-leads.sql:/sql/02-leads.sql:ro + - /mnt/user/appdata/mc-cars/supabase/migrations/03-booking-flow.sql:/sql/03-booking-flow.sql:ro entrypoint: ["sh","-c"] command: - | @@ -227,6 +228,7 @@ services: -v admin_password="$$ADMIN_PASSWORD" \ -f /sql/post-boot.sql psql "postgresql://postgres:$$PGPASSWORD@db:5432/postgres" -v ON_ERROR_STOP=1 -f /sql/02-leads.sql + psql "postgresql://postgres:$$PGPASSWORD@db:5432/postgres" -v ON_ERROR_STOP=1 -f /sql/03-booking-flow.sql echo "post-init done." restart: "no" networks: [mccars] diff --git a/frontend/admin.html b/frontend/admin.html index f6f4952..a240f37 100644 --- a/frontend/admin.html +++ b/frontend/admin.html @@ -158,13 +158,14 @@
- +
- +
+ + + +