feat(dashboard): expand grid to 16 columns with auto-migration for saved 12-col layouts

This commit is contained in:
2026-04-09 20:50:40 +02:00
parent 446aea5319
commit 5ad1048519
5 changed files with 35 additions and 26 deletions
@@ -25,7 +25,7 @@ describe("assistant user self-service dashboard layout tools", () => {
findUnique: vi.fn().mockResolvedValue({
dashboardLayout: {
version: 2,
gridCols: 12,
gridCols: 16,
widgets: [
// Valid widget type so normalization preserves it
{ id: "stat-1", type: "stat-cards", x: 0, y: 0, w: 12, h: 3 },
@@ -76,7 +76,7 @@ describe("assistant user self-service dashboard layout tools", () => {
const ctx = createToolContext(db, SystemRole.ADMIN);
const layout = {
version: 2,
gridCols: 12,
gridCols: 16,
widgets: [],
};
@@ -800,7 +800,7 @@ describe("user dashboard and favorites", () => {
const layout = {
version: 2,
gridCols: 12,
gridCols: 16,
widgets: [],
};
@@ -841,7 +841,7 @@ describe("user dashboard and favorites", () => {
await caller.saveDashboardLayout({
layout: {
version: 2,
gridCols: 12,
gridCols: 16,
widgets: [],
},
});
@@ -851,7 +851,7 @@ describe("user dashboard and favorites", () => {
data: {
dashboardLayout: {
version: 2,
gridCols: 12,
gridCols: 16,
widgets: [],
},
},