From 8f7e5ab1ed23cfbd75533456e0e3994d84799afc Mon Sep 17 00:00:00 2001 From: Fred KISSIE Date: Thu, 14 May 2026 19:31:53 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A7=20wip:=20org=20labels=20page?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../settings/(private)/labels/page.tsx | 20 +++++++++++++++++++ src/app/navigation.tsx | 16 ++++++++++++--- src/components/OrgLabelsTable.tsx | 1 + 3 files changed, 34 insertions(+), 3 deletions(-) create mode 100644 src/app/[orgId]/settings/(private)/labels/page.tsx create mode 100644 src/components/OrgLabelsTable.tsx diff --git a/src/app/[orgId]/settings/(private)/labels/page.tsx b/src/app/[orgId]/settings/(private)/labels/page.tsx new file mode 100644 index 000000000..54bffb3ff --- /dev/null +++ b/src/app/[orgId]/settings/(private)/labels/page.tsx @@ -0,0 +1,20 @@ +import type { Metadata } from "next"; + +export const metadata: Metadata = { + title: "Enterprise Licenses" +}; + +type Props = { + params: Promise<{ orgId: string }>; + searchParams: Promise>; +}; + +export const dynamic = "force-dynamic"; + +export default async function LabelsPage({ params, searchParams }: Props) { + const { orgId } = await params; + + const sp = await searchParams; + + return <>; +} diff --git a/src/app/navigation.tsx b/src/app/navigation.tsx index 3cfe867e3..6d8bffee5 100644 --- a/src/app/navigation.tsx +++ b/src/app/navigation.tsx @@ -23,6 +23,7 @@ import { Server, Settings, SquareMousePointer, + TagIcon, TicketCheck, Unplug, User, @@ -99,7 +100,7 @@ export const orgNavSections = ( href: "/{orgId}/settings/domains", icon: }, - ...(build == "saas" + ...(build === "saas" ? [ { title: "sidebarRemoteExitNodes", @@ -237,10 +238,19 @@ export const orgNavSections = ( title: "sidebarApiKeys", href: "/{orgId}/settings/api-keys", icon: - } + }, + ...(build !== "oss" + ? [ + { + title: "labels", + href: "/{orgId}/settings/labels", + icon: + } + ] + : []) ] }, - ...(build == "saas" && options?.isPrimaryOrg + ...(build === "saas" && options?.isPrimaryOrg ? [ { title: "sidebarBillingAndLicenses", diff --git a/src/components/OrgLabelsTable.tsx b/src/components/OrgLabelsTable.tsx new file mode 100644 index 000000000..bce9a91fe --- /dev/null +++ b/src/components/OrgLabelsTable.tsx @@ -0,0 +1 @@ +"use client";