diff --git a/features/platform-analytics/frontend-provider/src/hooks/useProviderProfile.ts b/features/platform-analytics/frontend-provider/src/hooks/useProviderProfile.ts index 541da631b..a0821367b 100644 --- a/features/platform-analytics/frontend-provider/src/hooks/useProviderProfile.ts +++ b/features/platform-analytics/frontend-provider/src/hooks/useProviderProfile.ts @@ -18,8 +18,8 @@ export interface ProviderProfile { export function useProviderProfile(): ProviderProfile { const { user, isLoading } = useAuth(); - // In development or when user has no profileId claim, use dev ID - const profileId = user?.profileId || DEV_PROFILE_ID; + // Use user ID as profile identifier; fall back to dev ID in development + const profileId = user?.id || DEV_PROFILE_ID; return { profileId, diff --git a/features/platform-analytics/frontend-provider/src/main.tsx b/features/platform-analytics/frontend-provider/src/main.tsx index 36be68568..da8eecf21 100644 --- a/features/platform-analytics/frontend-provider/src/main.tsx +++ b/features/platform-analytics/frontend-provider/src/main.tsx @@ -40,8 +40,8 @@ const i18nConfig = { // Dev user types for testing different user roles const DEV_USER_TYPES = [ - { id: 'provider', label: 'Provider' }, - { id: 'admin', label: 'Admin' }, + { id: 'provider', label: 'Provider', emoji: '📊', description: 'Provider with analytics access' }, + { id: 'admin', label: 'Admin', emoji: '🔑', description: 'Admin with full access' }, ]; // Theme wrapper that adds spacing property required by react-hot-toast