fix: default board roundness to sm
This commit is contained in:
1 parent
d9b6eaf451
commit
c235cbdf2b
14 files changed
+9069
-5
No files matched your search
@@ -0,0 +1 @@
|
|||||||
|
ALTER TABLE `board` MODIFY COLUMN `item_radius` text NOT NULL DEFAULT ('sm');
|
||||||
File diff suppressed because it is too large.
Load diff
@@ -337,6 +337,13 @@
|
|||||||
"when": 1786217088950,
|
"when": 1786217088950,
|
||||||
"tag": "0047_add_assistant_tables",
|
"tag": "0047_add_assistant_tables",
|
||||||
"breakpoints": true
|
"breakpoints": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idx": 48,
|
||||||
|
"version": "5",
|
||||||
|
"when": 1787402627665,
|
||||||
|
"tag": "0048_certain_gressill",
|
||||||
|
"breakpoints": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
ALTER TABLE "board" ALTER COLUMN "item_radius" SET DEFAULT 'sm';
|
||||||
File diff suppressed because it is too large.
Load diff
@@ -99,6 +99,13 @@
|
|||||||
"when": 1786217088954,
|
"when": 1786217088954,
|
||||||
"tag": "0013_add_assistant_tables",
|
"tag": "0013_add_assistant_tables",
|
||||||
"breakpoints": true
|
"breakpoints": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idx": 14,
|
||||||
|
"version": "7",
|
||||||
|
"when": 1787402632156,
|
||||||
|
"tag": "0014_little_franklin_storm",
|
||||||
|
"breakpoints": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -862,7 +862,7 @@ const seedDemoUserAsync = async (db: Database) => {
|
|||||||
primaryColor: "#748FFC",
|
primaryColor: "#748FFC",
|
||||||
secondaryColor: "#3BC9DB",
|
secondaryColor: "#3BC9DB",
|
||||||
opacity: 90,
|
opacity: 90,
|
||||||
itemRadius: "xl",
|
itemRadius: "sm",
|
||||||
});
|
});
|
||||||
|
|
||||||
const mainSectionId = createId();
|
const mainSectionId = createId();
|
||||||
|
|||||||
@@ -0,0 +1,29 @@
|
|||||||
|
PRAGMA foreign_keys=OFF;--> statement-breakpoint
|
||||||
|
CREATE TABLE `__new_board` (
|
||||||
|
`id` text PRIMARY KEY NOT NULL,
|
||||||
|
`name` text NOT NULL,
|
||||||
|
`is_public` integer DEFAULT false NOT NULL,
|
||||||
|
`creator_id` text,
|
||||||
|
`page_title` text,
|
||||||
|
`meta_title` text,
|
||||||
|
`logo_image_url` text,
|
||||||
|
`favicon_image_url` text,
|
||||||
|
`background_image_url` text,
|
||||||
|
`background_image_attachment` text DEFAULT 'fixed' NOT NULL,
|
||||||
|
`background_image_repeat` text DEFAULT 'no-repeat' NOT NULL,
|
||||||
|
`background_image_size` text DEFAULT 'cover' NOT NULL,
|
||||||
|
`primary_color` text DEFAULT '#fa5252' NOT NULL,
|
||||||
|
`secondary_color` text DEFAULT '#fd7e14' NOT NULL,
|
||||||
|
`opacity` integer DEFAULT 100 NOT NULL,
|
||||||
|
`custom_css` text,
|
||||||
|
`icon_color` text,
|
||||||
|
`item_radius` text DEFAULT 'sm' NOT NULL,
|
||||||
|
`disable_status` integer DEFAULT false NOT NULL,
|
||||||
|
FOREIGN KEY (`creator_id`) REFERENCES `user`(`id`) ON UPDATE no action ON DELETE set null
|
||||||
|
);
|
||||||
|
--> statement-breakpoint
|
||||||
|
INSERT INTO `__new_board`("id", "name", "is_public", "creator_id", "page_title", "meta_title", "logo_image_url", "favicon_image_url", "background_image_url", "background_image_attachment", "background_image_repeat", "background_image_size", "primary_color", "secondary_color", "opacity", "custom_css", "icon_color", "item_radius", "disable_status") SELECT "id", "name", "is_public", "creator_id", "page_title", "meta_title", "logo_image_url", "favicon_image_url", "background_image_url", "background_image_attachment", "background_image_repeat", "background_image_size", "primary_color", "secondary_color", "opacity", "custom_css", "icon_color", "item_radius", "disable_status" FROM `board`;--> statement-breakpoint
|
||||||
|
DROP TABLE `board`;--> statement-breakpoint
|
||||||
|
ALTER TABLE `__new_board` RENAME TO `board`;--> statement-breakpoint
|
||||||
|
PRAGMA foreign_keys=ON;--> statement-breakpoint
|
||||||
|
CREATE UNIQUE INDEX `board_name_unique` ON `board` (`name`);
|
||||||
File diff suppressed because it is too large.
Load diff
@@ -323,6 +323,13 @@
|
|||||||
"when": 1786217088950,
|
"when": 1786217088950,
|
||||||
"tag": "0045_add_assistant_tables",
|
"tag": "0045_add_assistant_tables",
|
||||||
"breakpoints": true
|
"breakpoints": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idx": 46,
|
||||||
|
"version": "6",
|
||||||
|
"when": 1787402621976,
|
||||||
|
"tag": "0046_pale_madame_web",
|
||||||
|
"breakpoints": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -295,7 +295,7 @@ export const boards = mysqlTable("board", {
|
|||||||
opacity: int().default(100).notNull(),
|
opacity: int().default(100).notNull(),
|
||||||
customCss: text(),
|
customCss: text(),
|
||||||
iconColor: text(),
|
iconColor: text(),
|
||||||
itemRadius: text().$type<MantineSize>().default("lg").notNull(),
|
itemRadius: text().$type<MantineSize>().default("sm").notNull(),
|
||||||
disableStatus: boolean().default(false).notNull(),
|
disableStatus: boolean().default(false).notNull(),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -293,7 +293,7 @@ export const boards = pgTable("board", {
|
|||||||
opacity: integer().default(100).notNull(),
|
opacity: integer().default(100).notNull(),
|
||||||
customCss: text(),
|
customCss: text(),
|
||||||
iconColor: text(),
|
iconColor: text(),
|
||||||
itemRadius: text().$type<MantineSize>().default("lg").notNull(),
|
itemRadius: text().$type<MantineSize>().default("sm").notNull(),
|
||||||
disableStatus: boolean().default(false).notNull(),
|
disableStatus: boolean().default(false).notNull(),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -278,7 +278,7 @@ export const boards = sqliteTable("board", {
|
|||||||
opacity: int().default(100).notNull(),
|
opacity: int().default(100).notNull(),
|
||||||
customCss: text(),
|
customCss: text(),
|
||||||
iconColor: text(),
|
iconColor: text(),
|
||||||
itemRadius: text().$type<MantineSize>().default("lg").notNull(),
|
itemRadius: text().$type<MantineSize>().default("sm").notNull(),
|
||||||
disableStatus: int({ mode: "boolean" }).default(false).notNull(),
|
disableStatus: int({ mode: "boolean" }).default(false).notNull(),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -176,7 +176,7 @@ export const SetupStudio = ({ environment, assistantConfiguration }: OnboardingS
|
|||||||
const [boardName, setBoardName] = useState(initialBoard?.name ?? "dashboard");
|
const [boardName, setBoardName] = useState(initialBoard?.name ?? "dashboard");
|
||||||
const [primaryColor, setPrimaryColor] = useState(initialPrimaryColor);
|
const [primaryColor, setPrimaryColor] = useState(initialPrimaryColor);
|
||||||
const [secondaryColor, setSecondaryColor] = useState(initialSecondaryColor);
|
const [secondaryColor, setSecondaryColor] = useState(initialSecondaryColor);
|
||||||
const [itemRadius, setItemRadius] = useState<MantineSize>("lg");
|
const [itemRadius, setItemRadius] = useState<MantineSize>("sm");
|
||||||
const [columnCount, setColumnCount] = useState(10);
|
const [columnCount, setColumnCount] = useState(10);
|
||||||
const [leftSidebar, setLeftSidebar] = useState(false);
|
const [leftSidebar, setLeftSidebar] = useState(false);
|
||||||
const [rightSidebar, setRightSidebar] = useState(false);
|
const [rightSidebar, setRightSidebar] = useState(false);
|
||||||
|
|||||||
Reference in new issue
Block a user