mirror of
https://github.com/simstudioai/sim.git
synced 2026-01-10 07:27:57 -05:00
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:
1
packages/db/migrations/0129_stormy_nightmare.sql
Normal file
1
packages/db/migrations/0129_stormy_nightmare.sql
Normal file
@@ -0,0 +1 @@
|
||||
ALTER TABLE "settings" ADD COLUMN "snap_to_grid_size" integer DEFAULT 0 NOT NULL;
|
||||
8451
packages/db/migrations/meta/0129_snapshot.json
Normal file
8451
packages/db/migrations/meta/0129_snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -897,6 +897,13 @@
|
||||
"when": 1766266581373,
|
||||
"tag": "0128_swift_terrax",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 129,
|
||||
"version": "7",
|
||||
"when": 1766275541149,
|
||||
"tag": "0129_stormy_nightmare",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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('{}'),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user