@eric-emg/symphiq-components 1.2.458 → 1.2.459

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -95112,18 +95112,23 @@ class SymphiqProfileFocusAreasAnalysesDashboardComponent {
95112
95112
  profileFocusArea,
95113
95113
  profileAnalysis
95114
95114
  };
95115
- if (profileAnalysis && selfContentStatusProfileAnalysis !== AiDynamicContentStatusEnum.GENERATED) {
95116
- console.log('[FocusAreaCard] ProfileAnalysis generating:', {
95117
- domain,
95118
- title: FocusAreaDomainEnumUtil.title(domain),
95119
- profileAnalysisId: profileAnalysis?.id,
95120
- selfContentStatusProfileAnalysis,
95121
- selfContentStatusProfileFocusArea,
95122
- itemStatusProfileAnalysis,
95123
- hasProfileFocusArea: !!profileFocusArea,
95124
- engagementStatus
95125
- });
95126
- }
95115
+ const isNotEngaged = engagementStatus === FocusAreaDetailStatusEnum.NOT_ENGAGED_AND_NO_INTEREST;
95116
+ const cond1 = !!profileFocusArea && selfContentStatusProfileFocusArea !== AiDynamicContentStatusEnum.GENERATED && !isNotEngaged;
95117
+ const cond2 = !!profileAnalysis && selfContentStatusProfileAnalysis !== null && selfContentStatusProfileAnalysis !== AiDynamicContentStatusEnum.GENERATED && !isNotEngaged;
95118
+ const cond3 = selfContentStatusProfileFocusArea === null && !isNotEngaged;
95119
+ const cond4 = (selfContentStatusProfileFocusArea === AiDynamicContentStatusEnum.GENERATED && (selfContentStatusProfileAnalysis === null || selfContentStatusProfileAnalysis === AiDynamicContentStatusEnum.GENERATED)) || status !== 'pending';
95120
+ console.log('[FocusAreaCard]', FocusAreaDomainEnumUtil.title(domain), {
95121
+ profileFocusAreaId: profileFocusArea?.id ?? null,
95122
+ profileAnalysisId: profileAnalysis?.id ?? null,
95123
+ selfContentStatusProfileFocusArea,
95124
+ selfContentStatusProfileAnalysis,
95125
+ itemStatusProfileFocusArea: itemStatusProfileFocusArea?.percentageComplete ?? null,
95126
+ itemStatusProfileAnalysis: itemStatusProfileAnalysis?.percentageComplete ?? null,
95127
+ engagementStatus,
95128
+ status,
95129
+ conditions: { cond1, cond2, cond3, cond4 },
95130
+ whichBranch: cond1 ? 'SHOW_PFA_PROGRESS' : cond2 ? 'SHOW_PA_PROGRESS' : cond3 ? 'PENDING' : cond4 ? 'SHOW_QUESTIONS' : 'NONE'
95131
+ });
95127
95132
  return cardData;
95128
95133
  });
95129
95134
  }, ...(ngDevMode ? [{ debugName: "focusAreaCards" }] : []));