fixed minor bug
Some checks failed
PHPUnit / test (push) Has been cancelled

This commit is contained in:
2026-06-08 20:00:21 +02:00
parent b54a33c78d
commit fadf60b2f7

View File

@ -335,7 +335,11 @@ function profileScoreBlockHTML(p, clientCode = '') {
return `
<div class="client-profile-score-block is-incomplete">
<div class="client-profile-score-block-title">${esc(p.name)}</div>
<p class="client-profile-score-hint">Profile incomplete — not all member questionnaires are done.</p>
<div class="client-profile-score-row">
<span class="client-profile-score-label">Calculated</span>
${bandBadgeHTML(null, { incomplete: true })}
</div>
<p class="client-profile-score-hint">Not all questionnaires in this profile are completed yet.</p>
</div>`;
}
const coachPending = p.pendingReview !== false && !p.coachBand;
@ -451,11 +455,7 @@ function clientQnBlockHTML(clientCode, q) {
function profileDotsHTML(profiles, clientCode) {
if (!profiles?.length) {
return '<span class="client-profile-dots-empty"></span>';
}
const hasAny = profiles.some(p => p.calculatedBand || p.band);
if (!hasAny) {
return `<span class="client-profile-dots-empty" title="No complete scoring profiles yet">—</span>`;
return '<span class="client-profile-dots-empty">No scoring profiles</span>';
}
return `<div class="client-profile-scores">${profiles.map(p => profileScoreBlockHTML(p, clientCode)).join('')}</div>`;
}