feat(admin-web): add web/admin to repo

Initial commit of the Super-Admin web panel (Next.js + TypeScript).
CI admin-web-check job was failing because the directory was never
tracked in git.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
soroush.asadi
2026-05-28 18:45:57 +03:30
parent f717c02467
commit 0a33497d40
98 changed files with 17848 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
import type { Order } from "@/lib/api/types";
/** Label for open orders at pay time: table + guest name. */
export function formatPosOrderLabel(
order: Pick<Order, "tableNumber" | "guestName" | "customerName">,
tableWord: string
): string {
const parts: string[] = [];
if (order.tableNumber) {
parts.push(`${tableWord} ${order.tableNumber}`);
}
const name = order.guestName?.trim() || order.customerName?.trim();
if (name) {
parts.push(name);
}
return parts.length > 0 ? parts.join(" · ") : "—";
}