@eric-emg/symphiq-components 1.2.449 → 1.2.450
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.
|
@@ -89151,17 +89151,16 @@ 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
|
-
});
|
|
89161
89154
|
if (!q.id || !answers)
|
|
89162
89155
|
return [];
|
|
89163
89156
|
const matched = answers.filter(a => a.profileQuestionId === q.id);
|
|
89164
|
-
|
|
89157
|
+
if (matched.length > 0) {
|
|
89158
|
+
console.log('[ProfileQuestionCard] user lookup:', {
|
|
89159
|
+
usersCount: allUsers.length,
|
|
89160
|
+
userIds: allUsers.map(u => u.id),
|
|
89161
|
+
creatorUserIds: matched.map(a => a.creatorUserId)
|
|
89162
|
+
});
|
|
89163
|
+
}
|
|
89165
89164
|
return matched.map(answer => ({
|
|
89166
89165
|
answer,
|
|
89167
89166
|
user: allUsers.find(u => u.id === answer.creatorUserId)
|
|
@@ -91020,16 +91019,6 @@ class ProfileStatusCardComponent {
|
|
|
91020
91019
|
const notStartedPct = this.notStartedPercentage();
|
|
91021
91020
|
this.updateChartData(completionPct, notStartedPct);
|
|
91022
91021
|
});
|
|
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
91022
|
}
|
|
91034
91023
|
updateChartData(completionPct, notStartedPct) {
|
|
91035
91024
|
if (!this.chartSeries || !this.centerLabel)
|