From 640e57cc79f6fbb6caa5eb57eaac83c99363403b Mon Sep 17 00:00:00 2001 From: Ignited Visions <94790762+ignitedvisions@users.noreply.github.com> Date: Tue, 24 Mar 2026 21:41:32 +0530 Subject: [PATCH] feat: Imperial scale migration, editable dimension inputs, and wall UI snapping --- apps/editor/app/api/health/route.ts | 2 + apps/editor/app/layout.tsx | 5 - apps/editor/next.config.ts | 17 +- apps/editor/public/demos/demo_1.json | 2043 ++++++++++++++--- apps/editor/public/demos/ekta_cottage.json | 1056 +++++++++ bun.lock | 4 +- packages/core/src/events/bus.ts | 1 + packages/core/src/schema/nodes/roof.ts | 9 + packages/core/src/schema/nodes/wall.ts | 4 +- .../editor/custom-camera-controls.tsx | 66 +- .../components/editor/site-edge-labels.tsx | 2 +- .../src/components/tools/wall/wall-tool.tsx | 39 +- .../components/ui/controls/metric-control.tsx | 4 +- .../components/ui/controls/slider-control.tsx | 319 +-- .../components/ui/panels/ceiling-panel.tsx | 67 +- .../src/components/ui/panels/door-panel.tsx | 130 +- .../src/components/ui/panels/item-panel.tsx | 26 +- .../src/components/ui/panels/roof-panel.tsx | 46 +- .../src/components/ui/panels/slab-panel.tsx | 71 +- .../src/components/ui/panels/wall-panel.tsx | 94 +- .../src/components/ui/panels/window-panel.tsx | 92 +- packages/editor/src/hooks/use-keyboard.ts | 2 +- 22 files changed, 3203 insertions(+), 896 deletions(-) create mode 100644 apps/editor/public/demos/ekta_cottage.json diff --git a/apps/editor/app/api/health/route.ts b/apps/editor/app/api/health/route.ts index 300230ba..d83b90eb 100644 --- a/apps/editor/app/api/health/route.ts +++ b/apps/editor/app/api/health/route.ts @@ -1,3 +1,5 @@ +export const dynamic = 'force-static' + export function GET() { return Response.json({ status: 'ok', app: 'editor', timestamp: new Date().toISOString() }) } diff --git a/apps/editor/app/layout.tsx b/apps/editor/app/layout.tsx index 33db7f78..140a1580 100644 --- a/apps/editor/app/layout.tsx +++ b/apps/editor/app/layout.tsx @@ -35,11 +35,6 @@ export default function RootLayout({
{process.env.NODE_ENV === 'development' && ( <> -