- connect_frontend/order-app at /order/{site}: menu per service at that service's prices,
extras, basket (kept per tab), checkout priced by the cloud (fee, area by list or
postcode, minimum), name/phone/address/notes (remembered), as soon as possible or a time
slot, tracking page with steps, lines and totals; en/el; tokens in index.css. Logic in
src/logic.js, unit-tested; built and served by the connect image (npm test in the build).
- services/ordering.py: the venue's services, hours (past midnight), preparation, slot grid,
days ahead, ASAP; takeaway/delivery orders checked (order.service_unavailable,
order.closed, order.time_invalid) and need a phone; GET /api/orders/{site}/slots; the
public menu carries the ordering summary.
- services/ratelimit.py: per-caller limits on quote, order and track (429 rate.limited).
- online_orders.requested_for (0003, unreleased) stored as UTC; every datetime sent with its
offset (the database keeps no zone: a 12:00 Athens slot came back as 12:00 unzoned).
- Tracking returns what was ordered, the totals, the type and the time.
- Tests: test_ordering.py (5), checkout/fees updated; order-app unit (4).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
30 lines
1.3 KiB
JavaScript
30 lines
1.3 KiB
JavaScript
/** @type {import('tailwindcss').Config} */
|
|
// Colours are tokens (CSS variables in src/index.css), never literals in components: one
|
|
// place to restyle the app, the same token names as the venue apps' @xenia/ui.
|
|
const c = name => `rgb(var(--o-${name}) / <alpha-value>)`
|
|
|
|
export default {
|
|
content: ['./index.html', './src/**/*.{js,jsx}'],
|
|
theme: {
|
|
extend: {
|
|
fontFamily: {
|
|
sans: ['Hanken Grotesk', 'Noto Sans', 'system-ui', 'sans-serif'],
|
|
display: ['Bricolage Grotesque', 'Noto Sans', 'system-ui', 'sans-serif'],
|
|
},
|
|
colors: {
|
|
canvas: c('canvas'),
|
|
surface: { DEFAULT: c('surface'), 2: c('surface-2') },
|
|
line: c('line'),
|
|
ink: { DEFAULT: c('ink'), 2: c('ink-2'), 3: c('ink-3') },
|
|
accent: { DEFAULT: c('accent'), fg: c('accent-fg'), soft: c('accent-soft'), ink: c('accent-ink') },
|
|
success: { DEFAULT: c('success'), soft: c('success-soft'), ink: c('success-ink') },
|
|
warning: { soft: c('warning-soft'), ink: c('warning-ink') },
|
|
danger: { soft: c('danger-soft'), ink: c('danger-ink') },
|
|
},
|
|
borderRadius: { card: '18px', control: '12px' },
|
|
boxShadow: { card: '0 6px 18px -12px rgb(var(--o-shadow) / 0.45)', bar: '0 12px 28px -10px rgb(var(--o-shadow) / 0.6)' },
|
|
},
|
|
},
|
|
plugins: [],
|
|
}
|