fix(GRO-213): resolve 3 type errors blocking CI

- setup.ts:73: cast result.code to 409 to satisfy ContentfulStatusCode
- SetupWizard.jsx: quote CSS rem value (2rem -> "2rem") — inline styles
  require strings for CSS units
- SetupWizard.js: rename to .jsx so Vite can parse JSX (QA requirement)
- App.tsx: update import to .jsx extension
- Add SetupWizard.d.ts type declaration for .jsx module resolution

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
groombook-ci[bot]
2026-03-28 21:04:12 +00:00
committed by Flea Flicker
parent 1c82a75a88
commit 3b1212250a
4 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -70,7 +70,7 @@ setupRouter.post("/", zValidator("json", setupSchema), async (c) => {
});
if ("error" in result) {
return c.json({ error: result.error }, result.code);
return c.json({ error: result.error }, result.code as 409);
}
return c.json({ ok: true, staff: result.staff }, 201);
+1 -1
View File
@@ -12,7 +12,7 @@ import { SettingsPage } from "./pages/Settings.js";
import { BookingConfirmedPage } from "./pages/BookingConfirmed.js";
import { BookingCancelledPage } from "./pages/BookingCancelled.js";
import { BookingErrorPage } from "./pages/BookingError.js";
import { SetupWizard } from "./pages/SetupWizard.js";
import { SetupWizard } from "./pages/SetupWizard.jsx";
import { CustomerPortal } from "./portal/CustomerPortal.js";
import { DevLoginSelector, getDevUser } from "./pages/DevLoginSelector.js";
import { DevSessionIndicator } from "./components/DevSessionIndicator.js";
+1
View File
@@ -0,0 +1 @@
export { SetupWizard } from "./SetupWizard.jsx";
@@ -79,7 +79,7 @@ export function SetupWizard() {
width: "100%",
}}>
{/* Progress dots */}
<div style={{ display: "flex", gap: 6, marginBottom: 2rem, justifyContent: "center" }}>
<div style={{ display: "flex", gap: 6, marginBottom: "2rem", justifyContent: "center" }}>
{STEPS.map((_, i) => (
<div
key={i}