cccc icon indicating copy to clipboard operation
cccc copied to clipboard

Derived direct-child progress display in Web

Open chriscoveries opened this issue 1 month ago • 3 comments

A parent task may represent an aggregate or retain its own acceptance work after children finish; the Web currently shows no child list or count.

Request a passive Web display: for a parent task, "Direct children: D of T done", plus a read-only list of non-archived direct children (id, title, status) when opened, with the note "Archived children are excluded. Child status does not complete this task."

Derived from existing task reads; no new daemon operation, field, setting, or write. Grandchildren count only for their own parent; missing status counts as planned; notes/outcome/checklist never promote a child to done.

Thank you to the maintainer for the #157 suggestion of a derived child-progress display and the #162 acceptance boundary. We will not ask cccc to implement parent auto-completion or acceptance gates in core.

How we checked

On our staging instance (cccc 0.4.44; KVM guest, 8 vCPU Intel Skylake, 15 GiB RAM, Debian 13), with real completed work:

  • We recorded one existing completed run as a parent task and linked three existing done issue tasks to it. Only parent_id changed on them.
  • The task API returns the three direct children, so the derived line would read "Direct children: 3 of 3 done".
  • The parent card and the opened parent view show no child list and no child count. The delete protection does already acknowledge that the task has children.

chriscoveries avatar Oct 24 '26 20:10 chriscoveries

Thanks for the clear scope and the real-data check.

The Web task board now shows this:

  • A parent card shows "Subtasks D/T", counting its direct, non-archived subtasks. The count comes from the existing task index, so board filters and paging do not change it.
  • When the parent is open, a "Subtasks" section shows "D of T done" and lists those subtasks with id, title and status. Each entry opens that subtask in the editor.
  • The hint reads: "Counts direct subtasks; archived ones are excluded. Subtask status does not complete this task."

As you specified, grandchildren count only for their own parent, a missing status counts as planned, and only status="done" counts as complete; notes, outcome and checklist do not affect the count. Nothing completes the parent automatically, and there is no new daemon operation, field or setting. Opening a subtask does not write task state; editing and saving continue to use the existing task operations. We used "Subtasks" rather than "Direct children" to match the existing task terminology; the text is localized in English, Chinese and Japanese.

This has been implemented; it has not been released yet.

ChesterRa avatar Oct 27 '26 09:10 ChesterRa

HURRAH!

chriscoveries avatar Oct 27 '26 12:10 chriscoveries

The direct-subtask count and list shipped in v0.4.46 and cover what we asked for. Thanks for building it. Closing.

chriscoveries avatar Nov 04 '26 11:11 chriscoveries