@eric-emg/symphiq-components 1.3.40 → 1.3.41

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.
@@ -101984,13 +101984,12 @@ function UnifiedDashboardModalComponent_Conditional_0_Template(rf, ctx) { if (rf
101984
101984
  i0.ɵɵelementStart(11, "div", 12);
101985
101985
  i0.ɵɵconditionalCreate(12, UnifiedDashboardModalComponent_Conditional_0_Conditional_12_Template, 1, 2, "symphiq-priority-badge", 13);
101986
101986
  i0.ɵɵconditionalCreate(13, UnifiedDashboardModalComponent_Conditional_0_Conditional_13_Template, 1, 2, "symphiq-timeframe-badge", 14);
101987
- i0.ɵɵelementEnd();
101988
101987
  i0.ɵɵelementStart(14, "button", 15);
101989
101988
  i0.ɵɵlistener("click", function UnifiedDashboardModalComponent_Conditional_0_Template_button_click_14_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.closeModal()); });
101990
101989
  i0.ɵɵnamespaceSVG();
101991
101990
  i0.ɵɵelementStart(15, "svg", 16);
101992
101991
  i0.ɵɵelement(16, "path", 17);
101993
- i0.ɵɵelementEnd()()()();
101992
+ i0.ɵɵelementEnd()()()()();
101994
101993
  i0.ɵɵnamespaceHTML();
101995
101994
  i0.ɵɵelementStart(17, "div", 18, 1);
101996
101995
  i0.ɵɵconditionalCreate(19, UnifiedDashboardModalComponent_Conditional_0_Conditional_19_Template, 1, 7, "symphiq-unified-goal-detail-modal-content", 19);
@@ -102307,9 +102306,8 @@ class UnifiedDashboardModalComponent {
102307
102306
  @if (currentGoal()?.timeframe) {
102308
102307
  <symphiq-timeframe-badge [timeframe]="currentGoal()!.timeframe" [viewMode]="viewMode()" />
102309
102308
  }
102310
- </div>
102311
102309
 
102312
- <button
102310
+ <button
102313
102311
  type="button"
102314
102312
  (click)="closeModal()"
102315
102313
  [ngClass]="isLightMode() ? 'text-slate-600 hover:text-slate-900 hover:bg-slate-100' : 'text-slate-400 hover:text-white hover:bg-slate-700'"
@@ -102319,6 +102317,7 @@ class UnifiedDashboardModalComponent {
102319
102317
  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path>
102320
102318
  </svg>
102321
102319
  </button>
102320
+ </div>
102322
102321
  </div>
102323
102322
  </div>
102324
102323
 
@@ -103354,9 +103353,20 @@ class SymphiqProfileAnalysisUnifiedDashboardComponent {
103354
103353
  }, ...(ngDevMode ? [{ debugName: "totalGoalsCardClasses" }] : []));
103355
103354
  this.allMetrics = computed(() => {
103356
103355
  const analysis = this.funnelAnalysisSignal();
103356
+ console.log('[UnifiedDashboard] allMetrics computed - funnelAnalysisSignal:', {
103357
+ hasAnalysis: !!analysis,
103358
+ hasPerformanceOverviewStructured: !!analysis?.performanceOverviewStructured,
103359
+ performanceOverviewStructuredKeys: analysis?.performanceOverviewStructured ? Object.keys(analysis.performanceOverviewStructured) : []
103360
+ });
103357
103361
  if (!analysis)
103358
103362
  return [];
103359
103363
  const normalized = normalizeToV3(analysis.performanceOverviewStructured);
103364
+ console.log('[UnifiedDashboard] allMetrics computed - normalizeToV3 result:', {
103365
+ hasNormalized: !!normalized,
103366
+ normalizedKeys: normalized ? Object.keys(normalized) : [],
103367
+ metricsCount: normalized?.metrics?.length || 0,
103368
+ metricsPreview: normalized?.metrics?.slice(0, 3).map(m => m.metric)
103369
+ });
103360
103370
  return normalized?.metrics || [];
103361
103371
  }, ...(ngDevMode ? [{ debugName: "allMetrics" }] : []));
103362
103372
  this.allCharts = computed(() => {
@@ -103513,7 +103523,12 @@ class SymphiqProfileAnalysisUnifiedDashboardComponent {
103513
103523
  }
103514
103524
  ngOnChanges(changes) {
103515
103525
  if (changes['funnelAnalysis']) {
103516
- this.funnelAnalysisSignal.set(this.funnelAnalysis());
103526
+ const fa = this.funnelAnalysis();
103527
+ console.log('[UnifiedDashboard] ngOnChanges - funnelAnalysis changed:', {
103528
+ hasFunnelAnalysis: !!fa,
103529
+ hasPerformanceOverviewStructured: !!fa?.performanceOverviewStructured
103530
+ });
103531
+ this.funnelAnalysisSignal.set(fa);
103517
103532
  }
103518
103533
  }
103519
103534
  onScroll() {
@@ -103587,7 +103602,13 @@ class SymphiqProfileAnalysisUnifiedDashboardComponent {
103587
103602
  this.markAsReviewedClick.emit();
103588
103603
  }
103589
103604
  onGoalClick(goal) {
103590
- this.modalService.openUnifiedGoalModal(goal, this.allMetrics(), this.allCharts(), this.loadedSourceAnalysisIds().map(String), this.viewMode(), this.loadingSourceAnalysisId() !== undefined ? String(this.loadingSourceAnalysisId()) : undefined);
103605
+ const metrics = this.allMetrics();
103606
+ console.log('[UnifiedDashboard] onGoalClick - passing to modal:', {
103607
+ goalTitle: goal.title,
103608
+ metricsCount: metrics.length,
103609
+ metricNames: metrics.map(m => m.metric)
103610
+ });
103611
+ this.modalService.openUnifiedGoalModal(goal, metrics, this.allCharts(), this.loadedSourceAnalysisIds().map(String), this.viewMode(), this.loadingSourceAnalysisId() !== undefined ? String(this.loadingSourceAnalysisId()) : undefined);
103591
103612
  }
103592
103613
  onSourceBadgeClick(event, source, goal) {
103593
103614
  event.stopPropagation();