feat(manager): the venue's online ordering link and QR code on the Online ordering page
Plan phase 3S, step S.99.
- GET /api/connect/fees returns `links` {order, menu}: the ordering app and QR menu
addresses, from the cloud's apps_url (heartbeat) and the site id.
- Manager: "Your ordering link" card (OrderingLink.jsx) on Online ordering: the address, its
QR code, copy / open / print, to share or put on the website and window.
- Pack README: routers/fees.py row.
- Tests: the link (backend), the card (manager e2e).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -14,6 +14,7 @@ import { SALES_POINTS } from '@xenia/access'
|
||||
import { Button, Dialog, EmptyState, Field, IconButton, Input, Select, Spinner, Switch } from '@xenia/ui'
|
||||
import client from '../../api/client'
|
||||
import FeeProductCard from './FeeProductCard'
|
||||
import OrderingLink from './OrderingLink'
|
||||
import OrderingSettings from './OrderingSettings'
|
||||
import { ACTIONS, DAYS, describeRule, emptyRule, moveRule, parsePostcodes, previewBody, ruleBody, ruleProblems, ruleToForm } from './feesLogic'
|
||||
|
||||
@@ -57,6 +58,8 @@ export default function FeesPage() {
|
||||
<h1 className="text-heading font-semibold text-ink">{t('ordering.pageTitle')}</h1>
|
||||
</header>
|
||||
|
||||
{data.links?.order && <OrderingLink url={data.links.order} />}
|
||||
|
||||
<OrderingSettings key={JSON.stringify(data.ordering)} ordering={data.ordering} />
|
||||
|
||||
<div className="grid gap-1">
|
||||
|
||||
Reference in New Issue
Block a user