feat: port release-v2 experience improvements from #6582 (audited subset) (#6609)

This commit is contained in:
Thomas authored and GitHub committed 2026-08-18 09:40:02 +02:00
1 parent e3a713d2df
commit e842177d9b
163 files changed
+7390 -1240

No files matched your search

+6 -1
View File
@@ -636,7 +636,7 @@ describe("createBoard should create a new board", () => {
});
// Act
await caller.createBoard({ name: "newBoard", columnCount: 24, isPublic: true });
const result = await caller.createBoard({ name: "newBoard", columnCount: 24, isPublic: true });
// Assert
const dbBoard = await db.query.boards.findFirst({
@@ -663,6 +663,11 @@ describe("createBoard should create a new board", () => {
expect.objectContaining({ name: "Base", role: "base", columnCount: 24, breakpoint: 768 }),
]),
);
expect(result).toEqual({
boardId: dbBoard?.id,
name: "newBoard",
layoutId: dbBoard?.layouts.find((layout) => layout.role === "base")?.id,
});
});
test("should throw error when user has no board-create permission", async () => {