@eric-emg/symphiq-components 1.3.82 → 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() {
@@ -15212,17 +15215,30 @@ class RecommendationCardComponent {
15212
15215
  return displayItem;
15213
15216
  }, ...(ngDevMode ? [{ debugName: "displayItem" }] : []));
15214
15217
  this.detailedRecommendation = computed(() => {
15215
- let result;
15216
- if (this.recommendation()) {
15217
- result = this.recommendation();
15218
- return result;
15218
+ const inputRec = this.recommendation();
15219
+ console.log('[RecommendationCard] detailedRecommendation - inputRec:', inputRec?.id, 'relatedCompetitorIds:', inputRec?.relatedCompetitorIds, 'relatedProfileItemIds:', inputRec?.relatedProfileItemIds);
15220
+ if (inputRec) {
15221
+ if (inputRec.id) {
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());
15225
+ if (serviceRec) {
15226
+ const merged = {
15227
+ ...inputRec,
15228
+ relatedCompetitorIds: inputRec.relatedCompetitorIds || serviceRec.relatedCompetitorIds,
15229
+ relatedProfileItemIds: inputRec.relatedProfileItemIds || serviceRec.relatedProfileItemIds
15230
+ };
15231
+ console.log('[RecommendationCard] detailedRecommendation - merged result:', merged.relatedCompetitorIds, merged.relatedProfileItemIds);
15232
+ return merged;
15233
+ }
15234
+ }
15235
+ return inputRec;
15219
15236
  }
15220
15237
  const item = this.item();
15221
15238
  if (!item?.id) {
15222
15239
  return undefined;
15223
15240
  }
15224
- result = this.profileContextService.getRecommendationById(item.id);
15225
- return result;
15241
+ return this.profileContextService.getRecommendationById(item.id);
15226
15242
  }, ...(ngDevMode ? [{ debugName: "detailedRecommendation" }] : []));
15227
15243
  this.businessContextItems = computed(() => {
15228
15244
  const itemIds = this.detailedRecommendation()?.relatedProfileItemIds;
@@ -15284,6 +15300,7 @@ class RecommendationCardComponent {
15284
15300
  const hasCompetitors = !!(detailed?.relatedCompetitorIds && detailed.relatedCompetitorIds.length > 0);
15285
15301
  const isExpanded = this.isActuallyExpanded();
15286
15302
  const shouldShow = hasCompetitors && isExpanded;
15303
+ console.log('[RecommendationCard] shouldShowRelatedCompetitors - hasCompetitors:', hasCompetitors, 'isExpanded:', isExpanded, 'shouldShow:', shouldShow, 'relatedCompetitorIds:', detailed?.relatedCompetitorIds);
15287
15304
  return shouldShow;
15288
15305
  }, ...(ngDevMode ? [{ debugName: "shouldShowRelatedCompetitors" }] : []));
15289
15306
  this.shouldShowRelatedAreas = computed(() => {
@@ -15291,6 +15308,7 @@ class RecommendationCardComponent {
15291
15308
  const hasAreas = !!(detailed?.relatedProfileItemIds && detailed.relatedProfileItemIds.length > 0);
15292
15309
  const isExpanded = this.isActuallyExpanded();
15293
15310
  const shouldShow = hasAreas && isExpanded;
15311
+ console.log('[RecommendationCard] shouldShowRelatedAreas - hasAreas:', hasAreas, 'isExpanded:', isExpanded, 'shouldShow:', shouldShow, 'relatedProfileItemIds:', detailed?.relatedProfileItemIds);
15294
15312
  return shouldShow;
15295
15313
  }, ...(ngDevMode ? [{ debugName: "shouldShowRelatedAreas" }] : []));
15296
15314
  this.shouldShowRelatedFocusAreas = computed(() => {
@@ -103732,10 +103750,12 @@ class UnifiedGoalCardComponent {
103732
103750
  return metrics;
103733
103751
  }, ...(ngDevMode ? [{ debugName: "roadmapMetrics" }] : []));
103734
103752
  this.cardClasses = computed(() => {
103753
+ const isSkipped = this.actionState() === GoalActionStateEnum.SKIP;
103754
+ const opacityClass = isSkipped ? ' opacity-60' : '';
103735
103755
  if (this.isDark()) {
103736
- return 'bg-slate-800/50 border border-slate-700/50';
103756
+ return 'bg-slate-800/50 border border-slate-700/50' + opacityClass;
103737
103757
  }
103738
- return 'bg-white border border-slate-200';
103758
+ return 'bg-white border border-slate-200' + opacityClass;
103739
103759
  }, ...(ngDevMode ? [{ debugName: "cardClasses" }] : []));
103740
103760
  this.iconContainerClasses = computed(() => {
103741
103761
  if (this.isDark()) {
@@ -107812,10 +107832,15 @@ class SymphiqProfileAnalysisUnifiedDashboardComponent {
107812
107832
  }, ...(ngDevMode ? [{ debugName: "embeddedScrollEffect" }] : []));
107813
107833
  this.profileIndexEffect = effect(() => {
107814
107834
  const profileToUse = this.profile();
107835
+ console.log('[UnifiedDashboard] profileIndexEffect - profile:', !!profileToUse, 'sections:', profileToUse?.profileStructured?.sections?.length, 'recommendations:', profileToUse?.profileStructured?.recommendations?.length);
107815
107836
  if (profileToUse?.profileStructured?.sections) {
107816
107837
  const recommendations = profileToUse.profileStructured?.recommendations || [];
107838
+ console.log('[UnifiedDashboard] profileIndexEffect - calling indexProfile with', profileToUse.profileStructured.sections.length, 'sections and', recommendations.length, 'recommendations');
107817
107839
  this.profileContextService.indexProfile(profileToUse.profileStructured.sections, recommendations);
107818
107840
  }
107841
+ else {
107842
+ console.log('[UnifiedDashboard] profileIndexEffect - NO profile data to index');
107843
+ }
107819
107844
  }, ...(ngDevMode ? [{ debugName: "profileIndexEffect" }] : []));
107820
107845
  this.pendingSourceRequestEffect = effect(() => {
107821
107846
  const pending = this.pendingSourceRequest();