Revert "PHP Rebuild"

This reverts commit 2ef3654841.
This commit is contained in:
Stefan Lazic committed 2026-09-05 09:32:05 +01:00
1 parent a59f998f2b
commit 2aa8405006
690 files changed
+12045 -33943

No files matched your search

+35
View File
@@ -0,0 +1,35 @@
/**
* Small, UI-facing display types. Deliberately NOT imported from
* `@/generated/prisma` — components in `components/ui` should never depend
* on the ORM layer directly (see docs/implementation-plan.md §11, "Server
* and client boundaries"). Feature code maps Prisma results onto these
* shapes; if the two drift, that mapping step is exactly where it should
* be caught.
*/
export type AppointmentStatus =
| "pending_approval"
| "confirmed"
| "arrived"
| "in_progress"
| "completed"
| "cancelled"
| "no_show";
export interface StaffSummary {
id: string;
name: string;
avatarUrl?: string;
}
export interface ServiceSummary {
id: string;
name: string;
/** Collapses in the UI when null/undefined/empty — see ServiceCard. */
description?: string | null;
imageUrl?: string | null;
durationMinutes: number;
/** Formatted for display, e.g. "£22.00" — currency formatting is a
* presentation concern handled once, upstream of these components. */
formattedPrice: string;
}
+15
View File
@@ -0,0 +1,15 @@
import type { DefaultSession } from "next-auth";
declare module "next-auth" {
interface Session {
user: {
id: string;
} & DefaultSession["user"];
}
}
declare module "next-auth/jwt" {
interface JWT {
id?: string;
}
}