feat(settings): added snap to grid slider to settings (#2504)

* feat(settings): added snap to grid slider to settings

* ack PR comments

* ack PR comment
This commit is contained in:
Waleed
2025-12-20 16:54:40 -08:00
committed by GitHub
parent 1ddbac1d2e
commit 214632604d
12 changed files with 8584 additions and 33 deletions

View File

@@ -0,0 +1 @@
ALTER TABLE "settings" ADD COLUMN "snap_to_grid_size" integer DEFAULT 0 NOT NULL;

File diff suppressed because it is too large Load Diff

View File

@@ -897,6 +897,13 @@
"when": 1766266581373,
"tag": "0128_swift_terrax",
"breakpoints": true
},
{
"idx": 129,
"version": "7",
"when": 1766275541149,
"tag": "0129_stormy_nightmare",
"breakpoints": true
}
]
}

View File

@@ -448,6 +448,9 @@ export const settings = pgTable('settings', {
// Notification preferences
errorNotificationsEnabled: boolean('error_notifications_enabled').notNull().default(true),
// Canvas preferences
snapToGridSize: integer('snap_to_grid_size').notNull().default(0), // 0 = off, 10-50 = grid size
// Copilot preferences - maps model_id to enabled/disabled boolean
copilotEnabledModels: jsonb('copilot_enabled_models').notNull().default('{}'),