diff --git a/apps/nextjs/src/app/[locale]/init/_steps/integrations/docker-discovery-panel.tsx b/apps/nextjs/src/app/[locale]/init/_steps/integrations/docker-discovery-panel.tsx index 83320184c..1756fd12d 100644 --- a/apps/nextjs/src/app/[locale]/init/_steps/integrations/docker-discovery-panel.tsx +++ b/apps/nextjs/src/app/[locale]/init/_steps/integrations/docker-discovery-panel.tsx @@ -14,7 +14,7 @@ import { ThemeIcon, UnstyledButton, } from "@mantine/core"; -import { IconChevronDown, IconBrandDocker } from "@tabler/icons-react"; +import { IconBrandDocker, IconChevronDown } from "@tabler/icons-react"; import type { IntegrationKind } from "@homarr/definitions"; import { getIntegrationName } from "@homarr/definitions"; @@ -128,21 +128,17 @@ export const DockerDiscoveryIndicator = ({ onChange={() => onToggleAllApps(!appsEnabled)} styles={{ label: { fontSize: "var(--mantine-font-size-xs)" } }} /> - {appsEnabled && apps.map((app) => ( - - - {app.containerName.at(0)?.toUpperCase()} - - - {app.containerName} - - - ))} + {appsEnabled && + apps.map((app) => ( + + + {app.containerName.at(0)?.toUpperCase()} + + + {app.containerName} + + + ))} )} diff --git a/apps/nextjs/src/app/[locale]/init/_steps/integrations/init-integrations.tsx b/apps/nextjs/src/app/[locale]/init/_steps/integrations/init-integrations.tsx index f6302e5ab..f733b7097 100644 --- a/apps/nextjs/src/app/[locale]/init/_steps/integrations/init-integrations.tsx +++ b/apps/nextjs/src/app/[locale]/init/_steps/integrations/init-integrations.tsx @@ -21,15 +21,14 @@ import { useDisclosure } from "@mantine/hooks"; import { IconArrowRight, IconSettings } from "@tabler/icons-react"; import { clientApi } from "@homarr/api/client"; -import type { IntegrationKind } from "@homarr/definitions"; +import type { IntegrationKind, UrlTemplateMode } from "@homarr/definitions"; import { buildIntegrationUrl, getIntegrationName } from "@homarr/definitions"; -import type { UrlTemplateMode } from "@homarr/definitions"; +import { showErrorNotification } from "@homarr/notifications"; import { useScopedI18n } from "@homarr/translation/client"; import { IntegrationAvatar } from "@homarr/ui"; import { NewIntegrationForm } from "~/app/[locale]/manage/integrations/new/_integration-new-form"; import { IntegrationMultiSelectGrid } from "~/components/integration/integration-multi-select-grid"; - import { DockerDiscoveryIndicator } from "./docker-discovery-panel"; type Phase = "select" | "configure" | "done"; @@ -69,7 +68,7 @@ export const InitIntegrations = () => { const dockerApplied = useRef(false); useEffect(() => { - if (!dockerData || dockerData.status !== "success" || dockerApplied.current) return; + if (dockerData?.status !== "success" || dockerApplied.current) return; dockerApplied.current = true; const newDrafts = new Map(drafts); @@ -132,6 +131,10 @@ export const InitIntegrations = () => { await setupIntegrations(); router.refresh(); } catch { + showErrorNotification({ + title: t("configure.error.title"), + message: t("configure.error.message"), + }); setPhase("select"); } }; @@ -192,7 +195,9 @@ export const InitIntegrations = () => { /> - {t("urlTemplate.label")} + + {t("urlTemplate.label")} + { - +