feat: appointment scheduling, client/pet/service/staff CRUD UI #15

Merged
ghost merged 4 commits from feat/appointment-scheduling into main 2026-03-17 18:45:28 +00:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit bdcb3037de - Show all commits
+1 -1
View File
@@ -1,7 +1,7 @@
import { Hono } from "hono";
import { zValidator } from "@hono/zod-validator";
import { z } from "zod";
import { and, eq, gte, lt, lte, ne, or } from "drizzle-orm";
import { and, eq, gte, lt, lte, ne } from "drizzle-orm";
import { getDb, appointments } from "@groombook/db";
export const appointmentsRouter = new Hono();
+1 -1
View File
@@ -91,7 +91,7 @@ export function AppointmentsPage() {
const loadAppointments = useCallback(() => {
const from = weekStart.toISOString();
const to = addDays(weekEnd, 1).toISOString();
const to = addDays(weekStart, 7).toISOString();
return fetch(`/api/appointments?from=${encodeURIComponent(from)}&to=${encodeURIComponent(to)}`)
.then((r) => {
if (!r.ok) throw new Error(`HTTP ${r.status}`);