@eric-emg/symphiq-components 1.2.448 → 1.2.449
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.
- package/fesm2022/symphiq-components.mjs +20 -3
- package/fesm2022/symphiq-components.mjs.map +1 -1
- package/index.d.ts +12 -12
- package/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -89151,11 +89151,18 @@ class ProfileQuestionCardComponent {
|
|
|
89151
89151
|
const q = this.question();
|
|
89152
89152
|
const answers = this.profileAnswers();
|
|
89153
89153
|
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
|
+
});
|
|
89154
89161
|
if (!q.id || !answers)
|
|
89155
89162
|
return [];
|
|
89156
|
-
|
|
89157
|
-
|
|
89158
|
-
|
|
89163
|
+
const matched = answers.filter(a => a.profileQuestionId === q.id);
|
|
89164
|
+
console.log('[ProfileQuestionCard] matched answers:', matched.length, matched);
|
|
89165
|
+
return matched.map(answer => ({
|
|
89159
89166
|
answer,
|
|
89160
89167
|
user: allUsers.find(u => u.id === answer.creatorUserId)
|
|
89161
89168
|
}));
|
|
@@ -91013,6 +91020,16 @@ class ProfileStatusCardComponent {
|
|
|
91013
91020
|
const notStartedPct = this.notStartedPercentage();
|
|
91014
91021
|
this.updateChartData(completionPct, notStartedPct);
|
|
91015
91022
|
});
|
|
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
|
+
});
|
|
91016
91033
|
}
|
|
91017
91034
|
updateChartData(completionPct, notStartedPct) {
|
|
91018
91035
|
if (!this.chartSeries || !this.centerLabel)
|