diff --git a/frontend/scripts/generate-msw-handlers.ts b/frontend/scripts/generate-msw-handlers.ts index ba49e8f..d65b206 100644 --- a/frontend/scripts/generate-msw-handlers.ts +++ b/frontend/scripts/generate-msw-handlers.ts @@ -66,7 +66,7 @@ function convertPathToMSWPattern(path: string): string { return path.replace(/\{([^}]+)\}/g, ':$1'); } -function shouldSkipEndpoint(path: string, method: string): boolean { +function shouldSkipEndpoint(path: string, _method: string): boolean { // Skip health check and root endpoints if (path === '/' || path === '/health') return true; @@ -83,7 +83,7 @@ function getHandlerCategory(path: string): 'auth' | 'users' | 'admin' | 'organiz return 'users'; } -function generateMockResponse(path: string, method: string, operation: any): string { +function generateMockResponse(path: string, method: string, _operation: any): string { const category = getHandlerCategory(path); // Auth endpoints @@ -267,7 +267,6 @@ function generateMockResponse(path: string, method: string, operation: any): str function generateHandlers(spec: OpenAPISpec): string { const handlers: string[] = []; - const API_BASE_URL = process.env.NEXT_PUBLIC_API_BASE_URL || 'http://localhost:8000'; for (const [pathPattern, pathItem] of Object.entries(spec.paths)) { for (const [method, operation] of Object.entries(pathItem)) { diff --git a/frontend/src/components/charts/OrganizationDistributionChart.tsx b/frontend/src/components/charts/OrganizationDistributionChart.tsx index 3f283a1..d9c8ecd 100644 --- a/frontend/src/components/charts/OrganizationDistributionChart.tsx +++ b/frontend/src/components/charts/OrganizationDistributionChart.tsx @@ -21,7 +21,12 @@ interface OrganizationDistributionChartProps { } // Custom tooltip with proper theme colors -const CustomTooltip = ({ active, payload }: any) => { +interface TooltipProps { + active?: boolean; + payload?: Array<{ payload: OrgDistributionData; value: number }>; +} + +const CustomTooltip = ({ active, payload }: TooltipProps) => { if (active && payload && payload.length) { return (
{ +interface TooltipProps { + active?: boolean; + payload?: Array<{ payload: RegistrationActivityData; value: number }>; +} + +const CustomTooltip = ({ active, payload }: TooltipProps) => { if (active && payload && payload.length) { return (
{ +interface TooltipProps { + active?: boolean; + payload?: Array<{ payload: UserGrowthData; value: number }>; +} + +const CustomTooltip = ({ active, payload }: TooltipProps) => { if (active && payload && payload.length) { return (