feat: consolidate onboarding

This commit is contained in:
Thomas Camlong authored and ajnart committed 2026-08-14 01:20:28 +02:00
1 parent 2283ec7113
commit 66313055df
21 files changed
+574 -238

No files matched your search

@@ -3,8 +3,16 @@
import { ColorInput, useMantineTheme } from "@mantine/core";
import type { ColorInputProps } from "@mantine/core";
export const BoardColorInput = (props: ColorInputProps) => {
const theme = useMantineTheme();
interface BoardColorInputProps extends ColorInputProps {
defaultColor?: string;
}
return <ColorInput {...props} format="hex" swatches={Object.values(theme.colors).map((color) => color[6])} />;
export const BoardColorInput = ({ defaultColor, ...props }: BoardColorInputProps) => {
const theme = useMantineTheme();
const themeSwatches = Object.values(theme.colors).map((color) => color[6]);
const swatches = defaultColor
? [defaultColor, ...themeSwatches.filter((color) => color.toLowerCase() !== defaultColor.toLowerCase())]
: themeSwatches;
return <ColorInput {...props} format="hex" swatches={swatches} />;
};
@@ -58,7 +58,6 @@ export const IntegrationMultiSelectGrid = ({
onSearchChange={setSearch}
placeholder={`${t("integration.page.list.search")}...`}
ariaLabel={t("integration.page.list.search")}
disableScroll={onboarding}
disableAutoFocus={onboarding}
>
{filtered.map((integration) => {