@eric-emg/symphiq-components 1.2.407 → 1.2.409

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.
@@ -12756,6 +12756,7 @@ class ProfileContextService {
12756
12756
  }, ...(ngDevMode ? [{ debugName: "contextIndex" }] : []));
12757
12757
  }
12758
12758
  indexProfile(sections, recommendations) {
12759
+ console.log('[ProfileContextService.indexProfile] Called with sections:', sections?.length, 'sections');
12759
12760
  const index = {
12760
12761
  regions: [],
12761
12762
  seasons: [],
@@ -12769,6 +12770,7 @@ class ProfileContextService {
12769
12770
  for (const section of sections) {
12770
12771
  if (!section.subsections)
12771
12772
  continue;
12773
+ console.log('[ProfileContextService.indexProfile] Section:', section.id, 'has subsections:', section.subsections?.map(s => s.id));
12772
12774
  for (const subsection of section.subsections) {
12773
12775
  switch (subsection.id) {
12774
12776
  case 'customer-regions':
@@ -93174,6 +93176,13 @@ class SymphiqProfileAnalysisDashboardComponent {
93174
93176
  this.accountInputEffect = effect(() => {
93175
93177
  this.accountSignal.set(this.account());
93176
93178
  }, ...(ngDevMode ? [{ debugName: "accountInputEffect", allowSignalWrites: true }] : [{ allowSignalWrites: true }]));
93179
+ this.profileIndexEffect = effect(() => {
93180
+ const profileToUse = this.profile();
93181
+ if (profileToUse?.profileStructured?.sections) {
93182
+ const recommendations = profileToUse.profileStructured?.recommendations || [];
93183
+ this.profileContextService.indexProfile(profileToUse.profileStructured.sections, recommendations);
93184
+ }
93185
+ }, ...(ngDevMode ? [{ debugName: "profileIndexEffect" }] : []));
93177
93186
  this.isSubscriptionActive = computed(() => {
93178
93187
  const account = this.accountSignal();
93179
93188
  if (!account)
@@ -93638,15 +93647,9 @@ class SymphiqProfileAnalysisDashboardComponent {
93638
93647
  ngOnInit() {
93639
93648
  this.funnelAnalysisSignal.set(this.funnelAnalysis());
93640
93649
  this.accountSignal.set(this.account());
93641
- // Index business profile recommendations into ProfileContextService
93642
- // This enables detailed recommendation lookup for goal business insights
93643
- const profileToUse = this.profile();
93644
- if (profileToUse?.profileStructured?.sections) {
93645
- const recommendations = profileToUse.profileStructured?.recommendations || [];
93646
- this.profileContextService.indexProfile(profileToUse.profileStructured.sections, recommendations);
93647
- }
93648
93650
  // Initialize ProfileItemLookupService with business profile
93649
93651
  // This enables competitor and focus area chip lookups in business insights
93652
+ const profileToUse = this.profile();
93650
93653
  if (profileToUse) {
93651
93654
  this.profileItemLookupService.setProfile(profileToUse);
93652
93655
  }