feat: add custom css for board and custom classes in advanced options for items (#512)

* feat: add custom css for board and custom classes in advanced options for items

* chore: add mysql migration

* fix: test not working

* fix: format issues

* fix: typecheck issue

* fix: build issue

* chore: add missing translations

* fix: merge issues related to migrations

* fix: format issues

* fix: merge issue with migration

* fix: format issue
This commit is contained in:
Meier Lukas
2024-05-19 23:01:26 +02:00
committed by GitHub
parent f1b1ec59ec
commit 26b1c4a319
35 changed files with 3080 additions and 97 deletions

View File

@@ -18,4 +18,10 @@ export const validation = {
icons: iconsSchemas,
};
export { createSectionSchema, sharedItemSchema, type BoardItemIntegration } from "./shared";
export {
createSectionSchema,
sharedItemSchema,
itemAdvancedOptionsSchema,
type BoardItemIntegration,
type BoardItemAdvancedOptions,
} from "./shared";

View File

@@ -13,6 +13,12 @@ export const integrationSchema = z.object({
export type BoardItemIntegration = z.infer<typeof integrationSchema>;
export const itemAdvancedOptionsSchema = z.object({
customCssClasses: z.array(z.string()).default([]),
});
export type BoardItemAdvancedOptions = z.infer<typeof itemAdvancedOptionsSchema>;
export const sharedItemSchema = z.object({
id: z.string(),
xOffset: z.number(),
@@ -20,6 +26,7 @@ export const sharedItemSchema = z.object({
height: z.number(),
width: z.number(),
integrations: z.array(integrationSchema),
advancedOptions: itemAdvancedOptionsSchema,
});
export const commonItemSchema = z