@eric-emg/symphiq-components 1.2.449 → 1.2.451

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.
@@ -88238,12 +88238,10 @@ class ProfileQuestionAnswerComponent {
88238
88238
  }
88239
88239
  }, ...(ngDevMode ? [{ debugName: "breadcrumbPath" }] : []));
88240
88240
  this.unansweredQuestions = computed(() => {
88241
- const answers = this.profileAnswers();
88242
- return this.filteredQuestions().filter(q => !answers.some(a => a.profileQuestionId === q.id));
88241
+ return this.filteredQuestions().filter(q => q.answered !== true);
88243
88242
  }, ...(ngDevMode ? [{ debugName: "unansweredQuestions" }] : []));
88244
88243
  this.answeredCount = computed(() => {
88245
- const answers = this.profileAnswers();
88246
- return this.filteredQuestions().filter(q => answers.some(a => a.profileQuestionId === q.id)).length;
88244
+ return this.filteredQuestions().filter(q => q.answered === true).length;
88247
88245
  }, ...(ngDevMode ? [{ debugName: "answeredCount" }] : []));
88248
88246
  this.totalCount = computed(() => {
88249
88247
  return this.filteredQuestions().length;
@@ -89151,18 +89149,11 @@ class ProfileQuestionCardComponent {
89151
89149
  const q = this.question();
89152
89150
  const answers = this.profileAnswers();
89153
89151
  const allUsers = this.users();
89154
- console.log('[ProfileQuestionCard] questionAnswers computed:', {
89155
- questionId: q.id,
89156
- questionText: q.question?.substring(0, 50),
89157
- answered: q.answered,
89158
- profileAnswersCount: answers?.length ?? 0,
89159
- profileAnswerIds: answers?.map(a => ({ id: a.id, profileQuestionId: a.profileQuestionId }))
89160
- });
89161
89152
  if (!q.id || !answers)
89162
89153
  return [];
89163
- const matched = answers.filter(a => a.profileQuestionId === q.id);
89164
- console.log('[ProfileQuestionCard] matched answers:', matched.length, matched);
89165
- return matched.map(answer => ({
89154
+ return answers
89155
+ .filter(a => a.profileQuestionId === q.id)
89156
+ .map(answer => ({
89166
89157
  answer,
89167
89158
  user: allUsers.find(u => u.id === answer.creatorUserId)
89168
89159
  }));
@@ -91020,16 +91011,6 @@ class ProfileStatusCardComponent {
91020
91011
  const notStartedPct = this.notStartedPercentage();
91021
91012
  this.updateChartData(completionPct, notStartedPct);
91022
91013
  });
91023
- effect(() => {
91024
- const questions = this.questions();
91025
- const answers = this.profileAnswers();
91026
- console.log('[ProfileStatusCard] inputs:', {
91027
- questionsCount: questions.length,
91028
- profileAnswersCount: answers.length,
91029
- sampleQuestionIds: questions.slice(0, 3).map(q => q.id),
91030
- sampleAnswerProfileQuestionIds: answers.slice(0, 3).map(a => a.profileQuestionId)
91031
- });
91032
- });
91033
91014
  }
91034
91015
  updateChartData(completionPct, notStartedPct) {
91035
91016
  if (!this.chartSeries || !this.centerLabel)