diff --git a/openapi.yaml b/openapi.yaml
index e4b9393..bd8695c 100644
--- a/openapi.yaml
+++ b/openapi.yaml
@@ -7768,7 +7768,8 @@ paths:
for whom it is the furthest action done) and `waiting` (Contacts for whom it is the first action
not done, so a Contact who did steps 1 and 3 is waiting on step 2). Each list gives its full
count (`completed_count`, `furthest_count`, `waiting_count`) and the first `list_limit` (30)
- Contacts alphabetically as `{beneficiary_id, name}`. Each Contact in `waiting` also has the Board's
+ Contacts alphabetically as `{beneficiary_id, name, actions_done}`, where `actions_done` is how many
+ of the Checklist's actions the Contact has done (shown as "3 of 8 actions done"). Each Contact in `waiting` also has the Board's
details: `days_waiting` (since the Checklist was added or the previous action was done),
`overdue` (the action is past its due date), `skipped_a_step` (a colleague logged starting a later
action first) and `responsible` (who is responsible for the action). `contacts_count` is every
@@ -7807,18 +7808,18 @@ paths:
complete_count: 1
overdue_count: 1
list_limit: 30
- complete: [{beneficiary_id: 904, name: "Refilwe Mahlangu"}]
+ complete: [{beneficiary_id: 904, name: "Refilwe Mahlangu", actions_done: 4}]
actions:
- id: 55
number: 1
action_type: "complete_form"
title: "Complete the Intake form"
completed_count: 2
- completed: [{beneficiary_id: 901, name: "Ayanda Dlamini"}, {beneficiary_id: 902, name: "Kagiso Mokoena"}]
+ completed: [{beneficiary_id: 901, name: "Ayanda Dlamini", actions_done: 2}, {beneficiary_id: 902, name: "Kagiso Mokoena", actions_done: 3}]
furthest_count: 0
furthest: []
waiting_count: 1
- waiting: [{beneficiary_id: 903, name: "Mpho Sithole", days_waiting: 9, overdue: true, skipped_a_step: false, responsible: "Anyone in Youth Workers"}]
+ waiting: [{beneficiary_id: 903, name: "Mpho Sithole", actions_done: 0, days_waiting: 9, overdue: true, skipped_a_step: false, responsible: "Anyone in Youth Workers"}]
"401":
$ref: '#/components/responses/Unauthorized'
"404":
diff --git a/server.js b/server.js
index d5064cf..e046b6c 100644
--- a/server.js
+++ b/server.js
@@ -2535,7 +2535,7 @@ function buildDocsPage() {
{ name: "project_id", type: "integer", required: false, desc: "Only Contacts in this Project, one the Checklist is added to" },
{ name: "responsible", type: "string", required: false, desc: "Only Contacts whose waiting action this person or Team is responsible for: me, user:<id> or team:<id>" }
], [
- { code: "200", cls: "response-2xx", desc: "contacts_count, complete_count, overdue_count, list_limit, complete and, for each action in order, completed_count, furthest_count and waiting_count, each with the first list_limit Contacts as {beneficiary_id, name}; waiting Contacts also have days_waiting, overdue, skipped_a_step and responsible" },
+ { code: "200", cls: "response-2xx", desc: "contacts_count, complete_count, overdue_count, list_limit, complete and, for each action in order, completed_count, furthest_count and waiting_count, each with the first list_limit Contacts as {beneficiary_id, name, actions_done} (actions_done: how many of the Checklist's actions they have done); waiting Contacts also have days_waiting, overdue, skipped_a_step and responsible" },
{ code: "404", cls: "response-4xx", desc: "Not found, another Organisation's, or a Project the Checklist isn't added to" },
{ code: "422", cls: "response-4xx", desc: "An unknown responsible value" }
], "The Progress section of the Checklist's profile page, Table and Board. completed: Contacts who have done the action. furthest: Contacts for whom it is the furthest action done. waiting: Contacts for whom it is the first action not done, so someone who did steps 1 and 3 is waiting on step 2. Only Contacts the user can see are counted.")}