@eric-emg/symphiq-components 1.3.83 → 1.3.84
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.
|
@@ -13556,6 +13556,9 @@ class ProfileContextService {
|
|
|
13556
13556
|
}
|
|
13557
13557
|
}
|
|
13558
13558
|
}
|
|
13559
|
+
console.log('[ProfileContextService] indexProfile - competitors:', index.competitors.length, 'recommendations:', index.recommendations.length);
|
|
13560
|
+
console.log('[ProfileContextService] indexProfile - recommendation IDs:', index.recommendations.map(r => r.id));
|
|
13561
|
+
console.log('[ProfileContextService] indexProfile - recommendations with relatedCompetitorIds:', index.recommendations.filter(r => r.relatedCompetitorIds && r.relatedCompetitorIds.length > 0).map(r => ({ id: r.id, relatedCompetitorIds: r.relatedCompetitorIds })));
|
|
13559
13562
|
this.contextIndex.set(index);
|
|
13560
13563
|
}
|
|
13561
13564
|
getRegions() {
|
|
@@ -15213,15 +15216,20 @@ class RecommendationCardComponent {
|
|
|
15213
15216
|
}, ...(ngDevMode ? [{ debugName: "displayItem" }] : []));
|
|
15214
15217
|
this.detailedRecommendation = computed(() => {
|
|
15215
15218
|
const inputRec = this.recommendation();
|
|
15219
|
+
console.log('[RecommendationCard] detailedRecommendation - inputRec:', inputRec?.id, 'relatedCompetitorIds:', inputRec?.relatedCompetitorIds, 'relatedProfileItemIds:', inputRec?.relatedProfileItemIds);
|
|
15216
15220
|
if (inputRec) {
|
|
15217
15221
|
if (inputRec.id) {
|
|
15218
15222
|
const serviceRec = this.profileContextService.getRecommendationById(inputRec.id);
|
|
15223
|
+
console.log('[RecommendationCard] detailedRecommendation - serviceRec:', serviceRec?.id, 'relatedCompetitorIds:', serviceRec?.relatedCompetitorIds, 'relatedProfileItemIds:', serviceRec?.relatedProfileItemIds);
|
|
15224
|
+
console.log('[RecommendationCard] detailedRecommendation - allCompetitors in service:', this.profileContextService.getCompetitors());
|
|
15219
15225
|
if (serviceRec) {
|
|
15220
|
-
|
|
15226
|
+
const merged = {
|
|
15221
15227
|
...inputRec,
|
|
15222
15228
|
relatedCompetitorIds: inputRec.relatedCompetitorIds || serviceRec.relatedCompetitorIds,
|
|
15223
15229
|
relatedProfileItemIds: inputRec.relatedProfileItemIds || serviceRec.relatedProfileItemIds
|
|
15224
15230
|
};
|
|
15231
|
+
console.log('[RecommendationCard] detailedRecommendation - merged result:', merged.relatedCompetitorIds, merged.relatedProfileItemIds);
|
|
15232
|
+
return merged;
|
|
15225
15233
|
}
|
|
15226
15234
|
}
|
|
15227
15235
|
return inputRec;
|
|
@@ -15292,6 +15300,7 @@ class RecommendationCardComponent {
|
|
|
15292
15300
|
const hasCompetitors = !!(detailed?.relatedCompetitorIds && detailed.relatedCompetitorIds.length > 0);
|
|
15293
15301
|
const isExpanded = this.isActuallyExpanded();
|
|
15294
15302
|
const shouldShow = hasCompetitors && isExpanded;
|
|
15303
|
+
console.log('[RecommendationCard] shouldShowRelatedCompetitors - hasCompetitors:', hasCompetitors, 'isExpanded:', isExpanded, 'shouldShow:', shouldShow, 'relatedCompetitorIds:', detailed?.relatedCompetitorIds);
|
|
15295
15304
|
return shouldShow;
|
|
15296
15305
|
}, ...(ngDevMode ? [{ debugName: "shouldShowRelatedCompetitors" }] : []));
|
|
15297
15306
|
this.shouldShowRelatedAreas = computed(() => {
|
|
@@ -15299,6 +15308,7 @@ class RecommendationCardComponent {
|
|
|
15299
15308
|
const hasAreas = !!(detailed?.relatedProfileItemIds && detailed.relatedProfileItemIds.length > 0);
|
|
15300
15309
|
const isExpanded = this.isActuallyExpanded();
|
|
15301
15310
|
const shouldShow = hasAreas && isExpanded;
|
|
15311
|
+
console.log('[RecommendationCard] shouldShowRelatedAreas - hasAreas:', hasAreas, 'isExpanded:', isExpanded, 'shouldShow:', shouldShow, 'relatedProfileItemIds:', detailed?.relatedProfileItemIds);
|
|
15302
15312
|
return shouldShow;
|
|
15303
15313
|
}, ...(ngDevMode ? [{ debugName: "shouldShowRelatedAreas" }] : []));
|
|
15304
15314
|
this.shouldShowRelatedFocusAreas = computed(() => {
|
|
@@ -107822,10 +107832,15 @@ class SymphiqProfileAnalysisUnifiedDashboardComponent {
|
|
|
107822
107832
|
}, ...(ngDevMode ? [{ debugName: "embeddedScrollEffect" }] : []));
|
|
107823
107833
|
this.profileIndexEffect = effect(() => {
|
|
107824
107834
|
const profileToUse = this.profile();
|
|
107835
|
+
console.log('[UnifiedDashboard] profileIndexEffect - profile:', !!profileToUse, 'sections:', profileToUse?.profileStructured?.sections?.length, 'recommendations:', profileToUse?.profileStructured?.recommendations?.length);
|
|
107825
107836
|
if (profileToUse?.profileStructured?.sections) {
|
|
107826
107837
|
const recommendations = profileToUse.profileStructured?.recommendations || [];
|
|
107838
|
+
console.log('[UnifiedDashboard] profileIndexEffect - calling indexProfile with', profileToUse.profileStructured.sections.length, 'sections and', recommendations.length, 'recommendations');
|
|
107827
107839
|
this.profileContextService.indexProfile(profileToUse.profileStructured.sections, recommendations);
|
|
107828
107840
|
}
|
|
107841
|
+
else {
|
|
107842
|
+
console.log('[UnifiedDashboard] profileIndexEffect - NO profile data to index');
|
|
107843
|
+
}
|
|
107829
107844
|
}, ...(ngDevMode ? [{ debugName: "profileIndexEffect" }] : []));
|
|
107830
107845
|
this.pendingSourceRequestEffect = effect(() => {
|
|
107831
107846
|
const pending = this.pendingSourceRequest();
|