feat(dashboard): expand grid to 16 columns with auto-migration for saved 12-col layouts
This commit is contained in:
+2
-2
@@ -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: [],
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user