switched first completed to last completed on needs followup table
Some checks failed
PHPUnit / test (push) Has been cancelled
Some checks failed
PHPUnit / test (push) Has been cancelled
This commit is contained in:
@ -170,7 +170,7 @@ function renderInsights() {
|
||||
<table class="data-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Client</th><th>Counselor</th><th>First completed</th><th>First at</th>
|
||||
<th>Client</th><th>Counselor</th><th>Last completed</th><th>Last at</th>
|
||||
<th>Last activity</th><th>Days idle</th><th>Note</th>
|
||||
</tr>
|
||||
</thead>
|
||||
@ -192,10 +192,10 @@ function followupSearchText(c) {
|
||||
return [
|
||||
c.clientCode,
|
||||
c.coachUsername,
|
||||
c.firstQuestionnaireName,
|
||||
c.firstQuestionnaireID,
|
||||
c.lastQuestionnaireName,
|
||||
c.lastQuestionnaireID,
|
||||
c.note,
|
||||
c.firstCompletedAt,
|
||||
c.lastCompletedAt,
|
||||
c.lastActivityAt,
|
||||
c.daysSinceLastActivity != null ? String(c.daysSinceLastActivity) : '',
|
||||
].filter(Boolean).join(' ');
|
||||
@ -212,8 +212,8 @@ function followupRowHTML(c) {
|
||||
<tr data-client="${esc(c.clientCode)}">
|
||||
<td><code>${esc(c.clientCode)}</code></td>
|
||||
<td>${esc(c.coachUsername)}</td>
|
||||
<td>${esc(c.firstQuestionnaireName || '—')}</td>
|
||||
<td>${esc(c.firstCompletedAt || '—')}</td>
|
||||
<td>${esc(c.lastQuestionnaireName || '—')}</td>
|
||||
<td>${esc(c.lastCompletedAt || '—')}</td>
|
||||
<td>${esc(c.lastActivityAt || '—')}</td>
|
||||
<td>${c.daysSinceLastActivity != null ? c.daysSinceLastActivity : '—'}</td>
|
||||
<td>
|
||||
|
||||
Reference in New Issue
Block a user