From 14db9b82032b86fc4a1a57ae4b35bebb55964ca8 Mon Sep 17 00:00:00 2001 From: Ephraim Duncan <55143799+ephraimduncan@users.noreply.github.com> Date: Wed, 26 Nov 2025 04:15:29 +0000 Subject: [PATCH] feat: add navigation links between admin org pages (#2243) --- .../admin+/organisation-insights.$id.tsx | 11 ++++++++++- .../_authenticated+/admin+/organisations.$id.tsx | 8 +++++++- package.json | 2 +- 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/apps/remix/app/routes/_authenticated+/admin+/organisation-insights.$id.tsx b/apps/remix/app/routes/_authenticated+/admin+/organisation-insights.$id.tsx index 560c25c3b..e53cc04ff 100644 --- a/apps/remix/app/routes/_authenticated+/admin+/organisation-insights.$id.tsx +++ b/apps/remix/app/routes/_authenticated+/admin+/organisation-insights.$id.tsx @@ -1,6 +1,10 @@ +import { Trans } from '@lingui/react/macro'; +import { Link } from 'react-router'; + import { getOrganisationDetailedInsights } from '@documenso/lib/server-only/admin/get-organisation-detailed-insights'; import type { DateRange } from '@documenso/lib/types/search-params'; import { getAdminOrganisation } from '@documenso/trpc/server/admin-router/get-admin-organisation'; +import { Button } from '@documenso/ui/primitives/button'; import { OrganisationInsightsTable } from '~/components/tables/organisation-insights-table'; @@ -38,12 +42,17 @@ export async function loader({ params, request }: Route.LoaderArgs) { } export default function OrganisationInsights({ loaderData }: Route.ComponentProps) { - const { insights, page, perPage, dateRange, view, organisationName } = loaderData; + const { insights, page, perPage, dateRange, view, organisationName, organisationId } = loaderData; return (

{organisationName}

+
+ > + + diff --git a/package.json b/package.json index 6db510625..1affb7e39 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "commitlint": "commitlint --edit", "clean": "turbo run clean && rimraf node_modules", "d": "npm run dx && npm run translate:compile && npm run dev", - "dx": "npm i && npm run dx:up && npm run prisma:migrate-dev && npm run prisma:seed", + "dx": "npm ci && npm run dx:up && npm run prisma:migrate-dev && npm run prisma:seed", "dx:up": "docker compose -f docker/development/compose.yml up -d", "dx:down": "docker compose -f docker/development/compose.yml down", "ci": "turbo run build --filter=@documenso/remix && turbo run test:e2e",