A modern and easy to use dashboard. 80+ integrations. 20K+ icons built in. Authentication out of the box. No YAML, drag and drop configuration.
refactor: move integration pages to management pages (#419)
Manuel84801d317452
diff --git a/apps/nextjs/src/app/[locale]/(main)/apps/_app-delete-button.tsx b/apps/nextjs/src/app/[locale]/manage/apps/_app-delete-button.tsxsimilarity index 96%rename from apps/nextjs/src/app/[locale]/(main)/apps/_app-delete-button.tsxrename to apps/nextjs/src/app/[locale]/manage/apps/_app-delete-button.tsxindex 0d0181891..7f582e8ac 100644--- a/apps/nextjs/src/app/[locale]/(main)/apps/_app-delete-button.tsx+++ b/apps/nextjs/src/app/[locale]/manage/apps/_app-delete-button.tsx@@ -37,7 +37,7 @@ export const AppDeleteButton = ({ app }: AppDeleteButtonProps) => {title: t("notification.success.title"),message: t("notification.success.message"),});- void revalidatePathAction("/apps");+ void revalidatePathAction("/manage/apps");},onError: () => {showErrorNotification({diff --git a/apps/nextjs/src/app/[locale]/(main)/apps/_form.tsx b/apps/nextjs/src/app/[locale]/manage/apps/_form.tsxsimilarity index 95%rename from apps/nextjs/src/app/[locale]/(main)/apps/_form.tsxrename to apps/nextjs/src/app/[locale]/manage/apps/_form.tsxindex 7e897ba30..367092e30 100644--- a/apps/nextjs/src/app/[locale]/(main)/apps/_form.tsx+++ b/apps/nextjs/src/app/[locale]/manage/apps/_form.tsx@@ -47,7 +47,7 @@ export const AppForm = (props: AppFormProps) => {<TextInput {...form.getInputProps("href")} label="URL" /><Group justify="end">- <Button variant="default" component={Link} href="/apps">+ <Button variant="default" component={Link} href="/manage/apps">{t("common.action.backToOverview")}</Button><Button type="submit" loading={isPending}>diff --git a/apps/nextjs/src/app/[locale]/(main)/apps/edit/[id]/_app-edit-form.tsx b/apps/nextjs/src/app/[locale]/manage/apps/edit/[id]/_app-edit-form.tsxsimilarity index 94%rename from apps/nextjs/src/app/[locale]/(main)/apps/edit/[id]/_app-edit-form.tsxrename to apps/nextjs/src/app/[locale]/manage/apps/edit/[id]/_app-edit-form.tsxindex 054e74e5e..92fd4d412 100644--- a/apps/nextjs/src/app/[locale]/(main)/apps/edit/[id]/_app-edit-form.tsx+++ b/apps/nextjs/src/app/[locale]/manage/apps/edit/[id]/_app-edit-form.tsx@@ -30,8 +30,8 @@ export const AppEditForm = ({ app }: AppEditFormProps) => {title: t("success.title"),message: t("success.message"),});- void revalidatePathAction("/apps").then(() => {- router.push("/apps");+ void revalidatePathAction("/manage/apps").then(() => {+ router.push("/manage/apps");});},onError: () => {diff --git a/apps/nextjs/src/app/[locale]/(main)/apps/edit/[id]/page.tsx b/apps/nextjs/src/app/[locale]/manage/apps/edit/[id]/page.tsxsimilarity index 100%rename from apps/nextjs/src/app/[locale]/(main)/apps/edit/[id]/page.tsxrename to apps/nextjs/src/app/[locale]/manage/apps/edit/[id]/page.tsxdiff --git a/apps/nextjs/src/app/[locale]/(main)/apps/new/_app-new-form.tsx b/apps/nextjs/src/app/[locale]/manage/apps/new/_app-new-form.tsxsimilarity index 93%rename from apps/nextjs/src/app/[locale]/(main)/apps/new/_app-new-form.tsxrename to apps/nextjs/src/app/[locale]/manage/apps/new/_app-new-form.tsxindex 0b2005bd8..78827cbac 100644--- a/apps/nextjs/src/app/[locale]/(main)/apps/new/_app-new-form.tsx+++ b/apps/nextjs/src/app/[locale]/manage/apps/new/_app-new-form.tsx@@ -25,8 +25,8 @@ export const AppNewForm = () => {title: t("success.title"),message: t("success.message"),});- void revalidatePathAction("/apps").then(() => {- router.push("/apps");+ void revalidatePathAction("/manage/apps").then(() => {+ router.push("/manage/apps");});},onError: () => {diff --git a/apps/nextjs/src/app/[locale]/(main)/apps/new/page.tsx b/apps/nextjs/src/app/[locale]/manage/apps/new/page.tsxsimilarity index 100%rename from apps/nextjs/src/app/[locale]/(main)/apps/new/page.tsxrename to apps/nextjs/src/app/[locale]/manage/apps/new/page.tsxdiff --git a/apps/nextjs/src/app/[locale]/(main)/apps/page.tsx b/apps/nextjs/src/app/[locale]/manage/apps/page.tsxsimilarity index 94%rename from apps/nextjs/src/app/[locale]/(main)/apps/page.tsxrename to apps/nextjs/src/app/[locale]/manage/apps/page.tsxindex 0fab48eab..2b5a6574e 100644--- a/apps/nextjs/src/app/[locale]/(main)/apps/page.tsx+++ b/apps/nextjs/src/app/[locale]/manage/apps/page.tsx@@ -28,7 +28,7 @@ export default async function AppsPage() {<Stack><Group justify="space-between" align="center"><Title>Apps</Title>- <Button component={Link} href="/apps/new">+ <Button component={Link} href="/manage/apps/new">New app</Button></Group>@@ -82,7 +82,7 @@ const AppCard = ({ app }: AppCardProps) => {<ActionIconGroup><ActionIconcomponent={Link}- href={`/apps/edit/${app.id}`}+ href={`/manage/apps/edit/${app.id}`}variant="subtle"color="gray"aria-label="Edit app"@@ -107,7 +107,7 @@ const AppNoResults = async () => {<Text fw={500} size="lg">{t("app.page.list.noResults.title")}</Text>- <Anchor href="/apps/new">+ <Anchor href="/manage/apps/new">{t("app.page.list.noResults.description")}</Anchor></Stack>diff --git a/apps/nextjs/src/app/[locale]/(main)/integrations/_integration-avatar.tsx b/apps/nextjs/src/app/[locale]/manage/integrations/_integration-avatar.tsxsimilarity index 100%rename from apps/nextjs/src/app/[locale]/(main)/integrations/_integration-avatar.tsxrename to apps/nextjs/src/app/[locale]/manage/integrations/_integration-avatar.tsxdiff --git a/apps/nextjs/src/app/[locale]/(main)/integrations/_integration-buttons.tsx b/apps/nextjs/src/app/[locale]/manage/integrations/_integration-buttons.tsxsimilarity index 100%rename from apps/nextjs/src/app/[locale]/(main)/integrations/_integration-buttons.tsxrename to apps/nextjs/src/app/[locale]/manage/integrations/_integration-buttons.tsxdiff --git a/apps/nextjs/src/app/[locale]/(main)/integrations/_integration-secret-card.tsx b/apps/nextjs/src/app/[locale]/manage/integrations/_integration-secret-card.tsxsimilarity index 100%rename from apps/nextjs/src/app/[locale]/(main)/integrations/_integration-secret-card.tsxrename to apps/nextjs/src/app/[locale]/manage/integrations/_integration-secret-card.tsxdiff --git a/apps/nextjs/src/app/[locale]/(main)/integrations/_integration-secret-icons.ts b/apps/nextjs/src/app/[locale]/manage/integrations/_integration-secret-icons.tssimilarity index 100%rename from apps/nextjs/src/app/[locale]/(main)/integrations/_integration-secret-icons.tsrename to apps/nextjs/src/app/[locale]/manage/integrations/_integration-secret-icons.tsdiff --git a/apps/nextjs/src/app/[locale]/(main)/integrations/_integration-secret-inputs.tsx b/apps/nextjs/src/app/[locale]/manage/integrations/_integration-secret-inputs.tsxsimilarity index 100%rename from apps/nextjs/src/app/[locale]/(main)/integrations/_integration-secret-inputs.tsxrename to apps/nextjs/src/app/[locale]/manage/integrations/_integration-secret-inputs.tsxdiff --git a/apps/nextjs/src/app/[locale]/(main)/integrations/_integration-test-connection.tsx b/apps/nextjs/src/app/[locale]/manage/integrations/_integration-test-connection.tsxsimilarity index 100%rename from apps/nextjs/src/app/[locale]/(main)/integrations/_integration-test-connection.tsxrename to apps/nextjs/src/app/[locale]/manage/integrations/_integration-test-connection.tsxdiff --git a/apps/nextjs/src/app/[locale]/(main)/integrations/edit/[id]/_integration-edit-form.tsx b/apps/nextjs/src/app/[locale]/manage/integrations/edit/[id]/_integration-edit-form.tsxsimilarity index 98%rename from apps/nextjs/src/app/[locale]/(main)/integrations/edit/[id]/_integration-edit-form.tsxrename to apps/nextjs/src/app/[locale]/manage/integrations/edit/[id]/_integration-edit-form.tsxindex 4986a9b16..884d3f51c 100644--- a/apps/nextjs/src/app/[locale]/(main)/integrations/edit/[id]/_integration-edit-form.tsx+++ b/apps/nextjs/src/app/[locale]/manage/integrations/edit/[id]/_integration-edit-form.tsx@@ -20,6 +20,7 @@ import { useI18n } from "@homarr/translation/client";import type { z } from "@homarr/validation";import { validation } from "@homarr/validation";+import { revalidatePathAction } from "~/app/revalidatePathAction";import { SecretCard } from "../../_integration-secret-card";import { IntegrationSecretInput } from "../../_integration-secret-inputs";import {@@ -27,7 +28,6 @@ import {TestConnectionNoticeAlert,useTestConnectionDirty,} from "../../_integration-test-connection";-import { revalidatePathAction } from "../../../../../revalidatePathAction";interface EditIntegrationForm {integration: RouterOutputs["integration"]["byId"];diff --git a/apps/nextjs/src/app/[locale]/(main)/integrations/edit/[id]/page.tsx b/apps/nextjs/src/app/[locale]/manage/integrations/edit/[id]/page.tsxsimilarity index 100%rename from apps/nextjs/src/app/[locale]/(main)/integrations/edit/[id]/page.tsxrename to apps/nextjs/src/app/[locale]/manage/integrations/edit/[id]/page.tsxdiff --git a/apps/nextjs/src/app/[locale]/(main)/integrations/new/_integration-new-dropdown.tsx b/apps/nextjs/src/app/[locale]/manage/integrations/new/_integration-new-dropdown.tsxsimilarity index 85%rename from apps/nextjs/src/app/[locale]/(main)/integrations/new/_integration-new-dropdown.tsxrename to apps/nextjs/src/app/[locale]/manage/integrations/new/_integration-new-dropdown.tsxindex 4d278a70e..221b5dad7 100644--- a/apps/nextjs/src/app/[locale]/(main)/integrations/new/_integration-new-dropdown.tsx+++ b/apps/nextjs/src/app/[locale]/manage/integrations/new/_integration-new-dropdown.tsx@@ -1,6 +1,6 @@"use client";-import { useMemo, useState } from "react";+import React, { ChangeEvent, useMemo, useState } from "react";import Link from "next/link";import { Group, Menu, ScrollArea, Stack, Text, TextInput } from "@mantine/core";import { IconSearch } from "@tabler/icons-react";@@ -20,13 +20,18 @@ export const IntegrationCreateDropdownContent = () => {);}, [search]);+ const handleSearch = React.useCallback(+ (event: ChangeEvent<HTMLInputElement>) => setSearch(event.target.value),+ [setSearch],+ );+return (<Stack><TextInputleftSection={<IconSearch stroke={1.5} size={20} />}placeholder={t("integration.page.list.search")}value={search}- onChange={(event) => setSearch(event.target.value)}+ onChange={handleSearch}/>{filteredKinds.length > 0 ? (diff --git a/apps/nextjs/src/app/[locale]/(main)/integrations/new/_integration-new-form.tsx b/apps/nextjs/src/app/[locale]/manage/integrations/new/_integration-new-form.tsxsimilarity index 100%rename from apps/nextjs/src/app/[locale]/(main)/integrations/new/_integration-new-form.tsxrename to apps/nextjs/src/app/[locale]/manage/integrations/new/_integration-new-form.tsxdiff --git a/apps/nextjs/src/app/[locale]/(main)/integrations/new/page.tsx b/apps/nextjs/src/app/[locale]/manage/integrations/new/page.tsxsimilarity index 100%rename from apps/nextjs/src/app/[locale]/(main)/integrations/new/page.tsxrename to apps/nextjs/src/app/[locale]/manage/integrations/new/page.tsxdiff --git a/apps/nextjs/src/app/[locale]/(main)/integrations/page.tsx b/apps/nextjs/src/app/[locale]/manage/integrations/page.tsxsimilarity index 100%rename from apps/nextjs/src/app/[locale]/(main)/integrations/page.tsxrename to apps/nextjs/src/app/[locale]/manage/integrations/page.tsxdiff --git a/apps/nextjs/src/app/[locale]/manage/layout.tsx b/apps/nextjs/src/app/[locale]/manage/layout.tsxindex cbda3cf72..ce95f27f9 100644--- a/apps/nextjs/src/app/[locale]/manage/layout.tsx+++ b/apps/nextjs/src/app/[locale]/manage/layout.tsx@@ -2,6 +2,7 @@ import type { PropsWithChildren } from "react";import { AppShellMain } from "@mantine/core";import {IconBook2,+ IconBox,IconBrandDiscord,IconBrandDocker,IconBrandGithub,@@ -11,6 +12,7 @@ import {IconLayoutDashboard,IconLogs,IconMailForward,+ IconPlug,IconQuestionMark,IconTool,IconUser,@@ -38,6 +40,16 @@ export default async function ManageLayout({ children }: PropsWithChildren) {href: "/manage/boards",label: t("items.boards"),},+ {+ icon: IconBox,+ href: "/manage/apps",+ label: t("items.apps"),+ },+ {+ icon: IconPlug,+ href: "/manage/integrations",+ label: t("items.integrations"),+ },{icon: IconUser,label: t("items.users.label"),diff --git a/packages/translation/src/lang/en.ts b/packages/translation/src/lang/en.tsindex 52269b0d2..338e07f8c 100644--- a/packages/translation/src/lang/en.ts+++ b/packages/translation/src/lang/en.ts@@ -961,6 +961,8 @@ export default {items: {home: "Home",boards: "Boards",+ apps: "Apps",+ integrations: "Integrations",users: {label: "Users",items: {