diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c71a6ef7..4db6756b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -364,8 +364,6 @@ importers: specifier: ^5.9.2 version: 5.9.2 - dist: {} - packages: '@ampproject/remapping@2.3.0': diff --git a/src/app/(main)/links/[linkId]/LinkPage.tsx b/src/app/(main)/links/[linkId]/LinkPage.tsx index a7751625..e0e10213 100644 --- a/src/app/(main)/links/[linkId]/LinkPage.tsx +++ b/src/app/(main)/links/[linkId]/LinkPage.tsx @@ -7,19 +7,24 @@ import { WebsiteChart } from '@/app/(main)/websites/[websiteId]/WebsiteChart'; import { LinkMetricsBar } from '@/app/(main)/links/[linkId]/LinkMetricsBar'; import { LinkControls } from '@/app/(main)/links/[linkId]/LinkControls'; import { LinkPanels } from '@/app/(main)/links/[linkId]/LinkPanels'; +import { Column, Grid } from '@umami/react-zen'; export function LinkPage({ linkId }: { linkId: string }) { return ( - - - - - - - - - + + + + + + + + + + + + + ); } diff --git a/src/app/(main)/pixels/[pixelId]/PixelPage.tsx b/src/app/(main)/pixels/[pixelId]/PixelPage.tsx index 6a55a6eb..a65c821e 100644 --- a/src/app/(main)/pixels/[pixelId]/PixelPage.tsx +++ b/src/app/(main)/pixels/[pixelId]/PixelPage.tsx @@ -7,19 +7,24 @@ import { WebsiteChart } from '@/app/(main)/websites/[websiteId]/WebsiteChart'; import { PixelMetricsBar } from '@/app/(main)/pixels/[pixelId]/PixelMetricsBar'; import { PixelControls } from '@/app/(main)/pixels/[pixelId]/PixelControls'; import { PixelPanels } from '@/app/(main)/pixels/[pixelId]/PixelPanels'; +import { Column, Grid } from '@umami/react-zen'; export function PixelPage({ pixelId }: { pixelId: string }) { return ( - - - - - - - - - + + + + + + + + + + + + + ); } diff --git a/src/app/(main)/teams/TeamsDataTable.tsx b/src/app/(main)/teams/TeamsDataTable.tsx index 5f81bca1..4bc939b1 100644 --- a/src/app/(main)/teams/TeamsDataTable.tsx +++ b/src/app/(main)/teams/TeamsDataTable.tsx @@ -1,7 +1,7 @@ -import Link from 'next/link'; import { DataGrid } from '@/components/common/DataGrid'; -import { TeamsTable } from './TeamsTable'; import { useLoginQuery, useNavigation, useUserTeamsQuery } from '@/components/hooks'; +import Link from 'next/link'; +import { TeamsTable } from './TeamsTable'; export function TeamsDataTable() { const { user } = useLoginQuery(); diff --git a/src/app/(main)/teams/TeamsTable.tsx b/src/app/(main)/teams/TeamsTable.tsx index 2108de13..5a22bcda 100644 --- a/src/app/(main)/teams/TeamsTable.tsx +++ b/src/app/(main)/teams/TeamsTable.tsx @@ -20,12 +20,12 @@ export function TeamsTable({ {(row: any) => row?.members?.find(({ role }) => role === ROLES.teamOwner)?.user?.username} - - {(row: any) => row?._count?.websites} - {(row: any) => row?._count?.members} + + {(row: any) => row?._count?.websites} + ); } diff --git a/src/app/(main)/websites/[websiteId]/cohorts/CohortsTable.tsx b/src/app/(main)/websites/[websiteId]/cohorts/CohortsTable.tsx index 200449fc..f57382ca 100644 --- a/src/app/(main)/websites/[websiteId]/cohorts/CohortsTable.tsx +++ b/src/app/(main)/websites/[websiteId]/cohorts/CohortsTable.tsx @@ -19,7 +19,7 @@ export function CohortsTable({ data = [] }) { {(row: any) => ( - {row.name} + {row.name} )} diff --git a/src/app/(main)/websites/[websiteId]/segments/SegmentsTable.tsx b/src/app/(main)/websites/[websiteId]/segments/SegmentsTable.tsx index 98224637..804c7b5b 100644 --- a/src/app/(main)/websites/[websiteId]/segments/SegmentsTable.tsx +++ b/src/app/(main)/websites/[websiteId]/segments/SegmentsTable.tsx @@ -18,7 +18,9 @@ export function SegmentsTable({ data = [] }) { {(row: any) => ( - {row.name} + + {row.name} + )} diff --git a/src/components/icons.ts b/src/components/icons.ts index bdba7367..ddcda3b6 100644 --- a/src/components/icons.ts +++ b/src/components/icons.ts @@ -10,4 +10,5 @@ export { Network as NetworkSvg, Path as PathSvg, Target as TargetSvg, + AddUser as AddUserSvg, } from '@/components/svg'; diff --git a/src/lib/constants.ts b/src/lib/constants.ts index 10a5660c..50a25b8d 100644 --- a/src/lib/constants.ts +++ b/src/lib/constants.ts @@ -127,12 +127,12 @@ export const DATA_TYPES = { export const ROLES = { admin: 'admin', - teamManager: 'team-manager', - teamMember: 'team-member', - teamOwner: 'team-owner', - teamViewOnly: 'team-view-only', user: 'user', viewOnly: 'view-only', + teamOwner: 'team-owner', + teamManager: 'team-manager', + teamMember: 'team-member', + teamViewOnly: 'team-view-only', } as const; export const PERMISSIONS = { diff --git a/src/lib/request.ts b/src/lib/request.ts index e6cc43ac..e43a46d1 100644 --- a/src/lib/request.ts +++ b/src/lib/request.ts @@ -119,7 +119,7 @@ export async function getQueryFilters( })); cohortFilters.push({ - name: cohortParams.action.type, + name: `cohort_${cohortParams.action.type}`, operator: 'eq', value: cohortParams.action.value, });