Configurable grid + snap-to-grid in the layout system (#45)
Build image / build-and-push (push) Successful in 7s

Closes #44. Two independent grids (garden + per-bed), each with a size and a snap toggle; snapping defaults off. See PR #45 for details.

Co-authored-by: Steve Dudenhoeffer <[email protected]>
This commit was merged in pull request #45.
This commit is contained in:
2026-07-19 07:07:14 +00:00
committed by steve
parent 9968c06243
commit e74fb308c1
23 changed files with 581 additions and 88 deletions
+4
View File
@@ -19,6 +19,8 @@ export const gardenSchema = z.object({
heightCm: z.number(),
unitPref: unitPrefSchema,
notes: z.string(),
gridSizeCm: z.number(),
snapToGrid: z.boolean(),
version: z.number(),
createdAt: z.string(),
updatedAt: z.string(),
@@ -55,6 +57,8 @@ export interface GardenInput {
heightCm: number
unitPref: UnitPref
notes: string
gridSizeCm: number
snapToGrid: boolean
}
export function useCreateGarden() {