A modern and easy to use dashboard. 80+ integrations. 20K+ icons built in. Authentication out of the box. No YAML, drag and drop configuration.
fix(onboarding): align address review and skipped connections (#7391)
Thomas6cafff070a99
diff --git a/.agents/plugins/marketplace.json b/.agents/plugins/marketplace.jsonnew file mode 100644index 000000000..cd2e76fca--- /dev/null+++ b/.agents/plugins/marketplace.json@@ -0,0 +1,20 @@+{+ "name": "homarr-local",+ "interface": {+ "displayName": "Homarr project plugins"+ },+ "plugins": [+ {+ "name": "homarr-mantine",+ "source": {+ "source": "local",+ "path": "./plugins/homarr-mantine"+ },+ "policy": {+ "installation": "AVAILABLE",+ "authentication": "ON_INSTALL"+ },+ "category": "Productivity"+ }+ ]+}diff --git a/.codex/config.toml b/.codex/config.tomlnew file mode 100644index 000000000..4c4ee7fd4--- /dev/null+++ b/.codex/config.toml@@ -0,0 +1,2 @@+[plugins."homarr-mantine@homarr-local"]+enabled = truediff --git a/.gitignore b/.gitignoreindex 4c9cfefa1..99f5d9263 100644--- a/.gitignore+++ b/.gitignore@@ -77,6 +77,7 @@ apps/nextjs/public/tabler-icons/.opencode.agents/*!.agents/skills/+!.agents/plugins/skills-lock.json# docusaurusdiff --git a/.mcp.json b/.mcp.jsondeleted file mode 100644index 47abfd7b4..000000000--- a/.mcp.json+++ /dev/null@@ -1,8 +0,0 @@-{- "mcpServers": {- "mantine": {- "command": "bun",- "args": ["x", "@mantine/[email protected]"]- }- }-}diff --git a/AGENTS.md b/AGENTS.mdindex 4907304d4..869f1b65a 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -88,7 +88,7 @@ Only after this user-need test passes, use these locations:- Lint: oxlint (not ESLint)- Format: oxfmt (not Prettier)- UI: Mantine (not Tailwind) — Tailwind is only used in docs app-- Mantine: use the `mantine` MCP server in `.mcp.json` for current v9 APIs before writing component code. Prefer built-in primitives (`Combobox`/`useCombobox`, the polymorphic `component` prop, `@mantine/hooks`) and check `packages/ui/` for existing conventions first.+- Mantine: before creating, changing, or reviewing application UI, follow [mantine-ui](plugins/homarr-mantine/skills/mantine-ui/SKILL.md) for component discovery, mandatory `get_item_doc` lookups, and styling through built-in props and the Styles API.- Icons: @tabler/icons-react- Docs app can import from `@homarr/definitions` for shared types- Run `bun run dev:cli -- dev` to browse local `homarr:*` images and remote PR images.@@ -112,13 +112,14 @@ These rules apply to every PR an agent prepares or opens, including contributor## MCP servers-`.mcp.json` declares project-scoped MCP servers. Keep only keyless definitions there; credentials belong in local dotfiles. See [Mantine LLM tooling](https://mantine.dev/guides/llms/) for client-specific setup.+The [Homarr Mantine plugin](plugins/homarr-mantine/plugin.json) bundles the UI skill and pinned documentation MCP server. `.agents/plugins/marketplace.json` exposes it through the project marketplace, and `.codex/config.toml` enables it for this repository. For clients requiring registration, run `codex plugin marketplace add .` from the repository root, then `codex plugin add homarr-mantine@homarr-local`. Keep shared definitions keyless; credentials belong in local dotfiles. See [Mantine LLM tooling](https://mantine.dev/guides/llms/) for documentation sources.## Agent SkillsPortable skills live in `.agents/skills/`. Read the relevant `SKILL.md` before working in that domain; detailed references are loaded only when needed. Claude-compatible discovery is provided through `.claude/skills`.- `codebase-context` — architecture, package boundaries, and shared utilities+- `homarr-mantine:mantine-ui` — project plugin for Mantine component discovery, documentation, and built-in styling- `documentation-sync` — user-critical documentation only- `mcp-integration` — safe tRPC-to-MCP exposure- `homarr-custom-widget` — safe Custom JSX v2 authoringdiff --git a/e2e/onboarding.spec.ts b/e2e/onboarding.spec.tsindex 47c61f721..1cf84e3e0 100644--- a/e2e/onboarding.spec.ts+++ b/e2e/onboarding.spec.ts@@ -57,11 +57,17 @@ describe("Onboarding", () => {await page.locator("css=button[type='submit']").click();await page.getByRole("heading", { name: "Start with familiar defaults" }).waitFor({ timeout: 30_000 });+ await page.getByRole("button", { name: "Connect (3/6)" }).click();+ await page.locator('button[aria-label="Sonarr"]').click();const serverOrigin = page.getByRole("textbox", { name: "Usual server address" });await serverOrigin.fill("https://home.example/homarr");+ await page.getByRole("button", { name: "Essentials (1/6)" }).click();await page.getByLabel("Default language").click();await page.getByRole("option", { name: /Français/ }).click();+ await page.getByRole("button", { name: "Connect (3/6)" }).click();expect(await serverOrigin.inputValue()).toBe("https://home.example/homarr");+ await page.locator('button[aria-label="Sonarr"]').click();+ await page.getByRole("button", { name: "Essentials (1/6)" }).click();expect(await page.getByRole("heading", { name: "Start with familiar defaults" }).isVisible()).toBe(true);expect(await page.evaluate(() => document.documentElement.scrollWidth <= window.innerWidth + 1)).toBe(true);diff --git a/packages/onboarding/src/discovery-selection.ts b/packages/onboarding/src/discovery-selection.tsindex 3cf2e3cb1..96eff700c 100644--- a/packages/onboarding/src/discovery-selection.ts+++ b/packages/onboarding/src/discovery-selection.ts@@ -9,7 +9,12 @@ export const resolveDiscoveredAppUrl = (override: string | undefined,suggestedUrl: string | null,generatedUrl: string | null,-) => override ?? suggestedUrl ?? generatedUrl ?? "";+ serverAddressEdited = false,+) => {+ if (override !== undefined) return override;+ if (serverAddressEdited && generatedUrl) return generatedUrl;+ return suggestedUrl || generatedUrl || "";+};export const resolveIntegrationDraftUrl = ({currentUrl,@@ -28,7 +33,9 @@ export const normalizeServiceUrl = (value: string) => {const trimmed = value.trim();if (!trimmed) return null;const url = new URL(/^[a-z][a-z0-9+.-]*:\/\//iu.test(trimmed) ? trimmed : `http://${trimmed}`);- return url.protocol === "http:" || url.protocol === "https:" ? url.toString().replace(/\/$/u, "") : null;+ if (url.protocol !== "http:" && url.protocol !== "https:") return null;+ if (!url.hostname || /[\s%]/u.test(url.hostname)) return null;+ return url.toString().replace(/\/$/u, "");} catch {return null;}diff --git a/packages/onboarding/src/service-url-template.tsx b/packages/onboarding/src/service-url-template.tsxindex 7e6aaa58c..767508bb7 100644--- a/packages/onboarding/src/service-url-template.tsx+++ b/packages/onboarding/src/service-url-template.tsx@@ -2,11 +2,14 @@import type { ReactNode } from "react";import { useRef, useState } from "react";-import { FloatingIndicator, Stack, TextInput, UnstyledButton } from "@mantine/core";+import { Flex, FloatingIndicator, SegmentedControl, Stack, Text, TextInput, UnstyledButton } from "@mantine/core";+import { useMediaQuery } from "@mantine/hooks";import type { UrlTemplateMode } from "@homarr/definitions";+import { buildIntegrationUrl } from "@homarr/definitions";import { useI18n } from "@homarr/translation/client";+import { normalizeServiceUrl } from "./discovery-selection";import { useOnboardingSounds } from "./use-onboarding-sounds";import classes from "./onboarding-studio.module.css";@@ -66,8 +69,8 @@ interface ServiceUrlTemplateProps {onServerOriginChange: (value: string) => void;mode: UrlTemplateMode;onModeChange: (value: UrlTemplateMode) => void;- readOnly?: boolean;required?: boolean;+ addressAction?: ReactNode;}export const ServiceUrlTemplate = ({@@ -75,32 +78,54 @@ export const ServiceUrlTemplate = ({onServerOriginChange,mode,onModeChange,- readOnly,required,+ addressAction,}: ServiceUrlTemplateProps) => {const t = useI18n("common.serviceUrlTemplate");+ const sounds = useOnboardingSounds();+ const isMobile = useMediaQuery("(max-width: 36em)");+ const exampleUrl = normalizeServiceUrl(buildIntegrationUrl("sonarr", serverOrigin, mode));return (- <Stack gap="sm">- <TextInput- label={t("serverTitle")}- placeholder="home.lan · 192.168.1.10 · https://homarr.example.com"- value={serverOrigin}- onChange={(event) => onServerOriginChange(event.currentTarget.value)}- readOnly={readOnly}- required={required}- withAsterisk={required}- />- <OnboardingFloatingControl- ariaLabel={t("urlModeLabel")}+ <Stack gap="sm" miw={0}>+ <Flex direction={{ base: "column", xs: "row" }} align={{ base: "stretch", xs: "end" }} gap="sm">+ <TextInput+ flex={1}+ miw={0}+ styles={{ input: { minHeight: 44 } }}+ label={t("serverTitle")}+ description={t("description")}+ placeholder="home.lan · 192.168.1.10 · https://homarr.example.com"+ value={serverOrigin}+ onChange={(event) => onServerOriginChange(event.currentTarget.value)}+ required={required}+ withAsterisk={required}+ />+ {addressAction}+ </Flex>+ <SegmentedControl<UrlTemplateMode>+ aria-label={t("urlModeLabel")}value={mode}- onChange={onModeChange}- options={[+ onChange={(value) => {+ sounds.click();+ onModeChange(value);+ }}+ fullWidth+ size="md"+ orientation={isMobile ? "vertical" : "horizontal"}+ withItemsBorders={false}+ styles={{ label: { whiteSpace: "normal" } }}+ data={[{ value: "hostPort", label: t("hostPort") },{ value: "subdomain", label: t("subdomain") },{ value: "path", label: t("path") },]}/>+ {exampleUrl && (+ <Text size="xs" c="dimmed" style={{ overflowWrap: "anywhere" }}>+ {t("example", { url: exampleUrl })}+ </Text>+ )}</Stack>);};diff --git a/packages/onboarding/src/setup-studio.tsx b/packages/onboarding/src/setup-studio.tsxindex 9e5076e60..76b5cad05 100644--- a/packages/onboarding/src/setup-studio.tsx+++ b/packages/onboarding/src/setup-studio.tsx@@ -2,6 +2,7 @@import type { CSSProperties, KeyboardEvent, ReactNode } from "react";import { useEffect, useMemo, useRef, useState } from "react";+import type { MantineSpacing } from "@mantine/core";import {Accordion,ActionIcon,@@ -47,7 +48,6 @@ import {IconDatabase,IconDeviceMobile,IconExternalLink,- IconInfoCircle,IconKey,IconLanguage,IconLayoutColumns,@@ -165,17 +165,25 @@ export const SetupStudio = ({ environment, assistantConfiguration }: OnboardingSconst { colorScheme, setColorScheme } = useMantineColorScheme();const sounds = useOnboardingSounds();const [activeSection, setActiveSection] = useState<StudioSection>("essentials");- const [incompleteIntegrationConfirmationOpened, setIncompleteIntegrationConfirmationOpened] = useState(false);+ const [incompleteConnectionConfirmationOpened, setIncompleteConnectionConfirmationOpened] = useState(false);+ const [sectionAfterSkipping, setSectionAfterSkipping] = useState<StudioSection>("board");const [selectedLocale, setSelectedLocale] = useState(currentLocale);const [serverOrigin, setServerOrigin] = useState(environment.serverOrigin);const [urlMode, setUrlMode] = useState<UrlTemplateMode>("hostPort");+ const [serverAddressEdited, setServerAddressEdited] = useState(false);+ const [serverAddressConfirmed, setServerAddressConfirmed] = useState(false);+ const serverAddressValid =+ normalizeServiceUrl(serverOrigin) !== null &&+ normalizeServiceUrl(buildIntegrationUrl("sonarr", serverOrigin, urlMode)) !== null;+ const serverAddressReviewed = serverAddressValid && (serverAddressEdited || serverAddressConfirmed);const [analyticsEnabled, setAnalyticsEnabled] = useState(true);const [selectedKinds, setSelectedKinds] = useState<IntegrationKind[]>([]);const [selectedIntegrationSourceIds, setSelectedIntegrationSourceIds] = useState<string[]>([]);const [drafts, setDrafts] = useState<IntegrationDraft[]>([]);const [selectedAppIds, setSelectedAppIds] = useState<string[]>([]);const [appUrlOverrides, setAppUrlOverrides] = useState<Record<string, string>>({});- const [appErrorSourceId, setAppErrorSourceId] = useState<string | null>(null);+ const hasSelectedServices =+ selectedKinds.length > 0 || selectedIntegrationSourceIds.length > 0 || selectedAppIds.length > 0;const initialBoard =environment.initialBoard ?? (environment.availableBoards.length === 1 ? environment.availableBoards[0] : null);const [selectedBoardId, setSelectedBoardId] = useState<string | null>(initialBoard?.id ?? null);@@ -190,7 +198,6 @@ export const SetupStudio = ({ environment, assistantConfiguration }: OnboardingSconst [isApplying, setIsApplying] = useState(false);const [applyProgress, setApplyProgress] = useState(0);const [applyMessage, setApplyMessage] = useState("");- const [appError, setAppError] = useState<string | null>(null);const sectionHeadingRef = useRef<HTMLHeadingElement>(null);const sectionButtonRefs = useRef<(HTMLButtonElement | null)[]>([]);const initialSection = useRef(true);@@ -218,23 +225,22 @@ export const SetupStudio = ({ environment, assistantConfiguration }: OnboardingSconst discoveredAppUrls = useMemo(() =>Object.fromEntries(- discoveredApps.map((app) => [- app.sourceId,- resolveDiscoveredAppUrl(- appUrlOverrides[app.sourceId],- app.suggestedUrl,- serverOrigin- ? buildAppUrl(- app.detectedType ?? app.containerName,- serverOrigin,- urlMode,- app.publishedPort ?? undefined,- )- : null,- ),- ]),+ discoveredApps.map((app) => {+ let port = app.publishedPort ?? undefined;+ const labelUrl = normalizeServiceUrl(app.suggestedUrl ?? "");+ const labelPort = labelUrl && new URL(labelUrl).port;+ if (port === undefined && labelPort) port = Number(labelPort);+ let generatedUrl = app.suggestedUrl;+ if (serverOrigin && (urlMode !== "hostPort" || port !== undefined || !labelUrl)) {+ generatedUrl = buildAppUrl(app.detectedType ?? app.containerName, serverOrigin, urlMode, port);+ }+ return [+ app.sourceId,+ resolveDiscoveredAppUrl(appUrlOverrides[app.sourceId], app.suggestedUrl, generatedUrl, serverAddressEdited),+ ];+ }),),- [appUrlOverrides, discoveredApps, serverOrigin, urlMode],+ [appUrlOverrides, discoveredApps, serverOrigin, urlMode, serverAddressEdited],);const detectedKinds = useMemo(() => new Set(discoveredIntegrations.map((integration) => integration.kind)),@@ -333,8 +339,18 @@ export const SetupStudio = ({ environment, assistantConfiguration }: OnboardingS};const selectSection = (section: StudioSection) => {+ if (section === "board" || section === "extend" || section === "review") {+ if (hasSelectedServices && !serverAddressReviewed) {+ section = "connect";+ } else if (hasIncompleteConnections) {+ setSectionAfterSkipping(section);+ setIncompleteConnectionConfirmationOpened(true);+ section = "connect";+ }+ }if (section !== activeSection) sounds.swoosh();setActiveSection(section);+ return section;};const handleSectionKeyDown = (event: KeyboardEvent<HTMLButtonElement>, index: number) => {@@ -353,8 +369,10 @@ export const SetupStudio = ({ environment, assistantConfiguration }: OnboardingSconst nextSection = sectionDefinitions[nextIndex];if (!nextSection) return;focusSectionHeading.current = false;- selectSection(nextSection.id);- sectionButtonRefs.current[nextIndex]?.focus();+ const selectedSection = selectSection(nextSection.id);+ if (selectedSection === activeSection) focusSectionHeading.current = true;+ const selectedIndex = sectionDefinitions.findIndex((section) => section.id === selectedSection);+ sectionButtonRefs.current[selectedIndex]?.focus();};const updateDraft = (id: string, patch: Partial<IntegrationDraft>) => {@@ -374,9 +392,11 @@ export const SetupStudio = ({ environment, assistantConfiguration }: OnboardingSconst applySetupAsync = async () => {if (isApplying) return;+ if ((hasSelectedServices && !serverAddressReviewed) || hasIncompleteConnections) {+ selectSection("review");+ return;+ }setIsApplying(true);- setAppError(null);- setAppErrorSourceId(null);setApplyProgress(5);setBoardValidationAttempted(true);try {@@ -390,14 +410,6 @@ export const SetupStudio = ({ environment, assistantConfiguration }: OnboardingS}const draftsToApply = drafts.filter(isIntegrationDraftComplete);const appsToCreate = discoveredApps.filter((app) => selectedAppIds.includes(app.sourceId));- const appWithoutAddress = appsToCreate.find((app) => (discoveredAppUrls[app.sourceId] ?? "").trim().length === 0);- if (appWithoutAddress) {- const message = t("connect.appAddressRequired", { name: appWithoutAddress.containerName });- setAppError(message);- setAppErrorSourceId(appWithoutAddress.sourceId);- setActiveSection("connect");- throw new Error(message);- }setApplyMessage(t("review.progress.applying"));setApplyProgress(20);@@ -503,9 +515,24 @@ export const SetupStudio = ({ environment, assistantConfiguration }: OnboardingSenvironment,assistantConfiguration,serverOrigin,- setServerOrigin,+ setServerOrigin: (value) => {+ if (value === serverOrigin) return;+ setServerOrigin(value);+ setServerAddressEdited(true);+ },urlMode,- setUrlMode,+ setUrlMode: (value) => {+ if (value === urlMode) return;+ setUrlMode(value);+ setServerAddressEdited(true);+ },+ hasSelectedServices,+ serverAddressValid,+ serverAddressReviewed,+ confirmServerAddress: () => {+ sounds.click();+ setServerAddressConfirmed(true);+ },analyticsEnabled,setAnalyticsEnabled: (value) => {sounds.toggle(value);@@ -540,10 +567,6 @@ export const SetupStudio = ({ environment, assistantConfiguration }: OnboardingSdiscoveredAppUrls,setDiscoveredAppUrl: (sourceId, url) => {setAppUrlOverrides((current) => ({ ...current, [sourceId]: url }));- if (appErrorSourceId === sourceId) {- setAppErrorSourceId(null);- setAppError(null);- }},selectedAppIds,setSelectedAppIds: (value) => {@@ -578,31 +601,28 @@ export const SetupStudio = ({ environment, assistantConfiguration }: OnboardingS},applyProgress,applyMessage,- appError,- appErrorSourceId,};- const hasIncompleteIntegrations = drafts.some((draft) => !isIntegrationDraftComplete(draft));- const selectedAppWithoutAddress = discoveredApps.find(- (app) => selectedAppIds.includes(app.sourceId) && (discoveredAppUrls[app.sourceId] ?? "").trim().length === 0,- );- const continueDisabled = isApplying || (activeSection === "essentials" && serverOrigin.trim().length === 0);+ const hasIncompleteConnections =+ drafts.some((draft) => !isIntegrationDraftComplete(draft)) ||+ discoveredApps.some(+ (app) => selectedAppIds.includes(app.sourceId) && (discoveredAppUrls[app.sourceId] ?? "").trim().length === 0,+ );+ const skipIncompleteConnections = () => {+ const completeDrafts = drafts.filter(isIntegrationDraftComplete);+ const completeDraftIds = new Set(completeDrafts.map((draft) => draft.id));+ setDrafts(completeDrafts);+ setSelectedIntegrationSourceIds((current) => current.filter((id) => completeDraftIds.has(id)));+ setSelectedKinds((current) => current.filter((kind) => completeDraftIds.has(`manual:${kind}`)));+ setSelectedAppIds((current) => current.filter((id) => (discoveredAppUrls[id] ?? "").trim().length > 0));+ setIncompleteConnectionConfirmationOpened(false);+ sounds.swoosh();+ setActiveSection(sectionAfterSkipping);+ };+ const continueDisabled = isApplying || (activeSection === "connect" && hasSelectedServices && !serverAddressReviewed);const continueOnboarding = () => {if (continueDisabled) return;if (activeSection === "review") {void applySetupAsync();- } else if (activeSection === "connect") {- if (selectedAppWithoutAddress) {- setAppError(t("connect.appAddressRequired", { name: selectedAppWithoutAddress.containerName }));- setAppErrorSourceId(selectedAppWithoutAddress.sourceId);- return;- }- setAppError(null);- setAppErrorSourceId(null);- if (hasIncompleteIntegrations) {- setIncompleteIntegrationConfirmationOpened(true);- } else {- move(1);- }} else {move(1);}@@ -697,10 +717,10 @@ export const SetupStudio = ({ environment, assistantConfiguration }: OnboardingS</Button>) : (<Group className={classes.primaryActions} gap="xs" wrap="nowrap">- {activeSection === "connect" && hasIncompleteIntegrations ? (+ {activeSection === "connect" && hasIncompleteConnections ? (<Popover- opened={incompleteIntegrationConfirmationOpened}- onDismiss={() => setIncompleteIntegrationConfirmationOpened(false)}+ opened={incompleteConnectionConfirmationOpened}+ onDismiss={() => setIncompleteConnectionConfirmationOpened(false)}transitionProps={{ duration: 0 }}position="top-end"width={320}@@ -714,8 +734,8 @@ export const SetupStudio = ({ environment, assistantConfiguration }: OnboardingSdisabled={continueDisabled}rightSection={<IconArrowRight size={16} />}aria-haspopup="dialog"- aria-expanded={incompleteIntegrationConfirmationOpened}- onClick={() => setIncompleteIntegrationConfirmationOpened((opened) => !opened)}+ aria-expanded={incompleteConnectionConfirmationOpened}+ onClick={continueOnboarding}>{tCommon("continue")}</Button>@@ -727,18 +747,12 @@ export const SetupStudio = ({ environment, assistantConfiguration }: OnboardingS<Buttonsize="xs"variant="default"- onClick={() => setIncompleteIntegrationConfirmationOpened(false)}+ onClick={() => setIncompleteConnectionConfirmationOpened(false)}>{tCommon("cancel")}</Button>- <Button- size="xs"- onClick={() => {- setIncompleteIntegrationConfirmationOpened(false);- move(1);- }}- >- {tCommon("confirm")}+ <Button size="xs" disabled={continueDisabled} onClick={skipIncompleteConnections}>+ {t("connect.skipIncomplete")}</Button></Group></Stack>@@ -773,6 +787,10 @@ interface StudioSectionProps {setServerOrigin: (value: string) => void;urlMode: UrlTemplateMode;setUrlMode: (value: UrlTemplateMode) => void;+ hasSelectedServices: boolean;+ serverAddressValid: boolean;+ serverAddressReviewed: boolean;+ confirmServerAddress: () => void;analyticsEnabled: boolean;setAnalyticsEnabled: (value: boolean) => void;selectedLocale: SupportedLanguage;@@ -815,8 +833,6 @@ interface StudioSectionProps {setRightSidebar: (value: boolean) => void;applyProgress: number;applyMessage: string;- appError: string | null;- appErrorSourceId: string | null;}const StudioSectionContent = ({ section, ...props }: StudioSectionProps & { section: StudioSection }) => {@@ -840,12 +856,14 @@ const SectionHeading = ({title,description,headingRef,+ mb = "xl",}: {title: string;description: string;headingRef: React.RefObject<HTMLHeadingElement | null>;+ mb?: MantineSpacing;}) => (- <Stack gap={4} mb="xl">+ <Stack gap={4} mb={mb}><Title id="studio-section-title" ref={headingRef} order={2} tabIndex={-1}>{title}</Title>@@ -857,8 +875,6 @@ const SectionHeading = ({const Essentials = (props: StudioSectionProps) => {const t = useI18n("init.studio.essentials");- const [isHydrated, setIsHydrated] = useState(false);- useEffect(() => setIsHydrated(true), []);return (<Stack gap="lg"><SectionHeading headingRef={props.headingRef} title={t("title")} description={t("description")} />@@ -877,30 +893,56 @@ const Essentials = (props: StudioSectionProps) => {/></SimpleGrid>- <Stack gap="sm">- <Alert variant="light" icon={<IconInfoCircle size={18} />} my="xs">- {t("serverOriginHelp")}- </Alert>+ <Switch+ checked={props.analyticsEnabled}+ onChange={(event) => props.setAnalyticsEnabled(event.currentTarget.checked)}+ label={t("analytics")}+ description={t("analyticsDescription")}+ />+ </Stack>+ );+};++const ServerAddressReview = (props: StudioSectionProps) => {+ const t = useI18n("init.studio.connect");+ return (+ <Paper+ data-review-required={!props.serverAddressReviewed || undefined}+ withBorder+ p="md"+ radius="md"+ bd={props.serverAddressReviewed ? undefined : "1px solid var(--mantine-color-red-6)"}+ shadow={props.serverAddressReviewed ? undefined : "md"}+ >+ <Stack gap="xs"><ServiceUrlTemplateserverOrigin={props.serverOrigin}onServerOriginChange={props.setServerOrigin}mode={props.urlMode}onModeChange={props.setUrlMode}- readOnly={!isHydrated}required+ addressAction={+ !props.serverAddressReviewed && (+ <Button+ variant="default"+ size="sm"+ h={44}+ leftSection={<IconCheck size={16} />}+ disabled={!props.serverAddressValid}+ onClick={props.confirmServerAddress}+ >+ {t("confirmServerAddress")}+ </Button>+ )+ }/>- {props.serverOrigin ? (- <Code block>{buildIntegrationUrl("sonarr", props.serverOrigin, props.urlMode)}</Code>- ) : null}+ {props.serverAddressReviewed && (+ <Text component="output" size="sm" c="dimmed">+ {t("serverAddressReviewed")}+ </Text>+ )}</Stack>-- <Switch- checked={props.analyticsEnabled}- onChange={(event) => props.setAnalyticsEnabled(event.currentTarget.checked)}- label={t("analytics")}- description={t("analyticsDescription")}- />- </Stack>+ </Paper>);};@@ -1079,7 +1121,8 @@ const Connections = (props: StudioSectionProps) => {const t = useI18n("init.studio.connect");return (<Stack gap="xl">- <SectionHeading headingRef={props.headingRef} title={t("title")} description={t("description")} />+ <SectionHeading headingRef={props.headingRef} title={t("title")} description={t("description")} mb={0} />+ {props.hasSelectedServices && <ServerAddressReview {...props} />}{props.discoveredIntegrations.length > 0 ? (<Fieldset legend={t("discoveredIntegrations", { count: String(props.discoveredIntegrations.length) })}><Checkbox.Group value={props.selectedIntegrationSourceIds} onChange={props.setSelectedIntegrationSourceIds}>@@ -1152,7 +1195,6 @@ const Connections = (props: StudioSectionProps) => {label={t("url")}value={props.discoveredAppUrls[app.sourceId] ?? ""}onChange={(event) => props.setDiscoveredAppUrl(app.sourceId, event.currentTarget.value)}- error={props.appErrorSourceId === app.sourceId ? props.appError : undefined}placeholder="service.local:8080"required/>@@ -1164,12 +1206,6 @@ const Connections = (props: StudioSectionProps) => {</Fieldset>) : null}- {props.appError ? (- <Alert color="red" role="alert">- {props.appError}- </Alert>- ) : null}-<Fieldset legend={t("otherIntegrations")}><IntegrationMultiSelectGridselectedKinds={props.selectedKinds}diff --git a/packages/translation/src/lang/en.json b/packages/translation/src/lang/en.jsonindex 2a361a78e..c0bdd8629 100644--- a/packages/translation/src/lang/en.json+++ b/packages/translation/src/lang/en.json@@ -59,13 +59,12 @@},"essentials": {"title": "Start with familiar defaults",- "description": "Set the language and appearance everyone sees first, then give Homarr the address pattern used by your services.",+ "description": "Set the language and appearance everyone sees first.","language": "Default language","theme": "Default theme","themeAuto": "System","themeLight": "Light","themeDark": "Dark",- "serverOriginHelp": "Homarr uses this address to prefill detected service URLs. You can still edit every service individually.","serverDescription": "This is a shortcut, not a restriction. Every detected service remains editable.","serverOrigin": "Domain, IP, or reverse-proxy path","serverOriginDescription": "Examples: home.lan, 192.168.1.10, or https://home.example.com/services. Choose how each service is appended below.",@@ -102,6 +101,8 @@"connect": {"title": "Connect what makes the board useful","description": "Select several services at once. Docker labels take priority, image matching fills gaps, and every URL and credential stays reviewable.",+ "confirmServerAddress": "This looks right",+ "serverAddressReviewed": "Server address reviewed. You can still edit each service URL below.","discoveredIntegrations": "Detected integration instances ({count})","detectedIntegrationLabel": "Import {name}, detected as {kind}","detectedAppLabel": "Import detected app {name}",@@ -126,7 +127,8 @@"needsConfiguration": "Needs configuration","tested": "Connection tested","testFailed": "Connection test failed",- "incompleteConfirmation": "Unfinished integrations will be skipped. Continue without them?"+ "incompleteConfirmation": "Apps without a URL and integrations missing a URL or credentials will be deselected and skipped. Continue without them?",+ "skipIncomplete": "Skip unfinished connections"},"board": {"title": "Shape the board before it is built",@@ -1930,6 +1932,8 @@"here": "here","serviceUrlTemplate": {"serverTitle": "Usual server address",+ "description": "Use your usual address and URL pattern to prefill the services below. Individual URL edits are kept.",+ "example": "Example: {url}","urlModeLabel": "Service address pattern","hostPort": "Same host, different ports","subdomain": "One subdomain per service",diff --git a/plugins/homarr-mantine/mcp.json b/plugins/homarr-mantine/mcp.jsonnew file mode 100644index 000000000..54558cf2d--- /dev/null+++ b/plugins/homarr-mantine/mcp.json@@ -0,0 +1,11 @@+{+ "$schema": "https://agent-plugins.org/schemas/1.0.0/mcp.schema.json",+ "mcpServers": {+ "mantine": {+ "type": "stdio",+ "command": "bun",+ "args": ["x", "--bun", "@mantine/[email protected]"],+ "cwd": "${PLUGIN_ROOT}"+ }+ }+}diff --git a/plugins/homarr-mantine/plugin.json b/plugins/homarr-mantine/plugin.jsonnew file mode 100644index 000000000..6db2877e1--- /dev/null+++ b/plugins/homarr-mantine/plugin.json@@ -0,0 +1,21 @@+{+ "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",+ "name": "homarr-mantine",+ "version": "1.0.0",+ "description": "Mantine component discovery, full documentation, and styling guidance for Homarr UI work.",+ "author": {+ "name": "Homarr"+ },+ "extensions": {+ "com.openai": {+ "interface": {+ "displayName": "Homarr Mantine",+ "shortDescription": "Mantine UI docs and guidance",+ "longDescription": "Discover Mantine components, read their props and Styles API, and prefer built-in styling when changing Homarr UI.",+ "developerName": "Homarr",+ "category": "Productivity",+ "capabilities": []+ }+ }+ }+}diff --git a/plugins/homarr-mantine/skills/mantine-ui/SKILL.md b/plugins/homarr-mantine/skills/mantine-ui/SKILL.mdnew file mode 100644index 000000000..cb5d9267c--- /dev/null+++ b/plugins/homarr-mantine/skills/mantine-ui/SKILL.md@@ -0,0 +1,42 @@+---+name: mantine-ui+description: Build, change, or review Homarr application UI using Mantine component discovery, current documentation, built-in props, and the Styles API. Use for component selection, layout, responsive behavior, and styling changes.+---++# Mantine UI++## Discover and read before editing++1. Check the owning workspace's Mantine dependencies and existing `packages/ui` components. The live docs may describe a newer release; confirm the chosen API exists in the installed version.+2. At the start of a UI task, call this plugin's Mantine MCP server's `list_items({"kind":"component","limit":500})` to discover the available components across Core and extensions. Use `package`, `category`, or `query` filters to narrow the catalog, and `search_docs` for the behavior you need. Check hooks when they can replace custom interaction or state code.+3. **Always call `get_item_doc` for each component or hook you introduce, change, or review, before implementing it or drawing review conclusions.** Reuse documents already fetched during the task. For component styling, request `full: true` so you read the props and complete Styles API, including inner selectors and public CSS variables; an outline alone is insufficient. `get_item_props` and `get_api` supplement this lookup.++For example:++```json+{ "name": "Heatmap", "full": true }+```++When working on styling, also consult `get_item_doc` for `styles-style-props` and `styles-styles-api`. The default response is an outline; fetch the relevant `section` or use `full: true`.++## Prefer Mantine's styling features++Choose the first option that expresses the requirement:++1. **Component props:** use the documented `size`, `variant`, `color`, `radius`, `orientation`, `fullWidth`, `withBorder`, `shadow`, and similar props. Reuse built-in controls before constructing a custom equivalent, and use the polymorphic `component` prop when only the rendered element needs to change.+2. **Layout and style props:** use `Group`, `Stack`, `Flex`, `Grid`, `SimpleGrid`, and `Box`, with spacing, sizing, alignment, and responsive props. Use theme tokens and public CSS variables for values that should follow Homarr's theme.+3. **Styles API:** target documented inner selectors with `styles` and public component CSS variables with `vars`. Keep overrides on the owning component so shared editors retain one styling implementation. Preserve the theme and unrelated screens during a focused change.+4. **CSS modules through `classNames`:** use these for pseudo-classes, nested selectors, or responsive rules that the component and style props cannot express. The `styles` prop accepts flat inline styles, not nested selectors or media queries. Keep only the CSS needed for that remaining behavior.++Before finishing a UI change, account for every new CSS rule against these options, remove superseded rules, and verify shared callers and the intended responsive widths.++## Official Markdown fallback++Use the MCP server first. If its tools are unavailable or a request fails, read the corresponding official LLM Markdown document and report the tool failure briefly. Prefer the returned item's `llmUrl`, the page's LLM documentation link, or the [documentation index](https://mantine.dev/llms.txt) to find the exact URL.++For example:++- Component page: <https://mantine.dev/charts/heatmap/>+- Full LLM documentation, including props and Styles API: <https://mantine.dev/llms/charts-heatmap.md>++Fetch the pages needed for the task instead of loading `llms-full.txt`. See [Mantine with LLMs](https://mantine.dev/guides/llms/) for the official MCP and documentation workflow.diff --git a/plugins/homarr-mantine/skills/mantine-ui/agents/openai.yaml b/plugins/homarr-mantine/skills/mantine-ui/agents/openai.yamlnew file mode 100644index 000000000..d33f09e16--- /dev/null+++ b/plugins/homarr-mantine/skills/mantine-ui/agents/openai.yaml@@ -0,0 +1,4 @@+interface:+ display_name: "Homarr Mantine UI"+ short_description: "Discover Mantine components and use built-in styling"+ default_prompt: "Use $mantine-ui to discover suitable Mantine components, read their documentation, and prefer built-in props and the Styles API."