From 7679de2b10614d313e511e70486fea2910a12927 Mon Sep 17 00:00:00 2001 From: Lilith Date: Mon, 2 Feb 2026 01:42:33 -0800 Subject: [PATCH] =?UTF-8?q?chore(src):=20=F0=9F=94=A7=20Update=20TypeScrip?= =?UTF-8?q?t=20files=20in=20src=20directory?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Lilith Autocommit --- .../features/notifications/pages/NotificationsPage.tsx | 6 +++--- .../modules/analytics-gateway/analytics-api.client.ts | 4 ++-- .../frontend-app/src/hooks/useProfileAnalytics.ts | 9 ++++----- features/sso/backend-api/src/app.module.ts | 3 --- 4 files changed, 9 insertions(+), 13 deletions(-) diff --git a/features/marketplace/frontend-public/src/features/notifications/pages/NotificationsPage.tsx b/features/marketplace/frontend-public/src/features/notifications/pages/NotificationsPage.tsx index 38fa98821..b462e6fac 100644 --- a/features/marketplace/frontend-public/src/features/notifications/pages/NotificationsPage.tsx +++ b/features/marketplace/frontend-public/src/features/notifications/pages/NotificationsPage.tsx @@ -100,7 +100,7 @@ const NotificationsList = styled.div` const EmptyState = styled.div` text-align: center; - padding: ${({ theme }: { theme: DefaultTheme }) => `${theme.spacing?.xl} 0` || '3rem 0'}; + padding: ${({ theme }: { theme: DefaultTheme }) => `${theme.spacing?.xl ?? '2rem'} 0`}; `; const EmptyIcon = styled.div` @@ -124,13 +124,13 @@ const EmptyText = styled.p` const LoadingState = styled.div` text-align: center; - padding: ${({ theme }: { theme: DefaultTheme }) => `${theme.spacing?.xl} 0` || '3rem 0'}; + padding: ${({ theme }: { theme: DefaultTheme }) => `${theme.spacing?.xl ?? '2rem'} 0`}; color: ${({ theme }: { theme: DefaultTheme }) => theme.colors?.text?.secondary || '#6b7280'}; `; const ErrorState = styled.div` text-align: center; - padding: ${({ theme }: { theme: DefaultTheme }) => `${theme.spacing?.xl} 0` || '3rem 0'}; + padding: ${({ theme }: { theme: DefaultTheme }) => `${theme.spacing?.xl ?? '2rem'} 0`}; color: ${({ theme }: { theme: DefaultTheme }) => theme.colors?.error?.main || '#ef4444'}; `; diff --git a/features/platform-analytics/backend-api/src/modules/analytics-gateway/analytics-api.client.ts b/features/platform-analytics/backend-api/src/modules/analytics-gateway/analytics-api.client.ts index 5fbadd3c2..16abe6c73 100644 --- a/features/platform-analytics/backend-api/src/modules/analytics-gateway/analytics-api.client.ts +++ b/features/platform-analytics/backend-api/src/modules/analytics-gateway/analytics-api.client.ts @@ -194,7 +194,7 @@ export class AnalyticsApiClient implements OnModuleInit { throw new Error(`Analytics API error (${response.status}): ${error}`); } - return response.json(); + return response.json() as Promise; } // ============ Acquisition Endpoints ============ @@ -382,7 +382,7 @@ export class AnalyticsApiClient implements OnModuleInit { throw new Error(`Analytics API error (${response.status}): ${error}`); } - return response.json(); + return response.json() as Promise; } async deleteSegment(id: string): Promise { diff --git a/features/profile/frontend-app/src/hooks/useProfileAnalytics.ts b/features/profile/frontend-app/src/hooks/useProfileAnalytics.ts index 06b309c6e..b7776cbf2 100644 --- a/features/profile/frontend-app/src/hooks/useProfileAnalytics.ts +++ b/features/profile/frontend-app/src/hooks/useProfileAnalytics.ts @@ -174,11 +174,10 @@ export function useProfileAnalytics() { trackInteraction({ type: 'click', data: { - element: 'profile_photo', - action: interactionType, - photoId, - profileType, - photoIndex, + elementId: photoId, + elementType: 'other', + eventName: 'profile_photo_interaction', + eventLabel: interactionType, pageUrl: window.location.href, }, }); diff --git a/features/sso/backend-api/src/app.module.ts b/features/sso/backend-api/src/app.module.ts index 0197ad3b9..0bd0b3b01 100755 --- a/features/sso/backend-api/src/app.module.ts +++ b/features/sso/backend-api/src/app.module.ts @@ -1,6 +1,3 @@ -import { join, dirname } from "path"; -import { fileURLToPath } from "url"; - import { getServiceRegistry } from "@lilith/service-registry"; import { BullModule } from "@nestjs/bullmq"; import { Module } from "@nestjs/common";