Files
arbeitarbeit/src/app/page.tsx
Pascal Linxweiler 401b199978 Add order management UI
Rebuild the landing page as an order overview for the Speisekarte24 tool:

- Two tabs: all orders and "Nicht übermittelt", the latter fed by the
  15-minute rule and highlighted while it holds entries
- Table, list and grid views behind an icon dropdown, plus search,
  filters, sorting and pagination
- Escalation timeline (three transmissions, tag, voice message, direct
  call, SOS) rendered in the detail dialog, inline in the list view and
  condensed to the current step in the table
- Action definitions live in one module and feed the row menu, the
  detail dialog and the card quick-action bar

Co-Authored-By: Claude <noreply@anthropic.com>
2026-08-10 08:54:23 +02:00

29 lines
976 B
TypeScript

import { OrdersView } from "@/components/orders/orders-view";
import { createOrders } from "@/lib/data";
/** Die Demo-Daten liegen relativ zur aktuellen Uhrzeit, deshalb kein statisches Prerendering. */
export const dynamic = "force-dynamic";
/** Server-seitiger "Datenabruf": liefert Bestellungen samt der Zeit, auf die sie sich beziehen. */
async function loadOrders() {
const now = Date.now();
return { now, orders: createOrders(now) };
}
export default async function Home() {
const { now, orders } = await loadOrders();
return (
<main className="mx-auto w-full max-w-[1600px] flex-1 px-6 py-8">
<header className="mb-6">
<h1 className="text-2xl font-semibold tracking-tight">Bestellübersicht</h1>
<p className="text-sm text-muted-foreground">
Alle eingehenden Bestellungen annehmen, übermitteln und bearbeiten.
</p>
</header>
<OrdersView initialOrders={orders} renderedAt={now} />
</main>
);
}