Commit Graph
8 Commits
Author SHA1 Message Date
Xor290andClaude Sonnet 5.5 f9bfdc9d3c feat(checkout): let the admin choose the details asked at checkout
ci-api / test (push) Successful in 20m38s
ci-web / test (push) Successful in 11m20s
The admin enables or disables each option (phone, address, Snapchat,
Instagram, Telegram, SimpleX, WhatsApp, Signal, notes, preferred time)
from a new "Checkout fields" page; the customer's name is always asked.

Backend
- checkoutfields module: single-row settings (CHECK id = 1), public GET
  and admin GET/PUT.
- orders: answers stored as JSONB (contacts, info_sup); the customer
  phone moves from customer_phone to contacts.phone (migration 000034
  copies existing values before dropping the column).
- Orders are validated against the live settings: disabled options and
  unknown keys are dropped, enabled phone/address are required, and
  format, length and control characters are checked.
- The Telegram notification includes the answers.

Frontend
- Checkout form generated from the enabled options; admin settings page;
  answers shown in the order list and detail.
- API calls live in src/api (checkoutFields.ts, orders.ts); ApiError
  keeps the response body so the rejected field can be reported.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-04 16:16:22 +02:00
Xor290 178652ef14 chore: build
ci-api / test (push) Successful in 21m6s
ci-web / test (push) Successful in 11m27s
2026-09-20 13:42:46 +02:00
Xor290 e004b4edf7 fix(ci): update users test, fix workflow paths 2026-09-20 13:39:27 +02:00
Xor290 919c807004 chore: build
ci-api / test (push) Failing after 8m7s
ci-web / test (push) Failing after 5m5s
2026-09-20 12:18:33 +02:00
Xor290 8f4c7fa47a chore: build 2026-09-20 12:17:57 +02:00
Xor290 cdf03aa5b9 chore: add ci
backend-image / build (push) Canceled after 0s
frontend-image / build (push) Canceled after 0s
2026-09-20 12:13:21 +02:00
Xor290 af77f3b19a first commit 2026-09-20 12:10:35 +02:00
CFOU 3091fb4020 first 2026-09-14 20:50:19 +02:00