Page tree payload: entry counts per container, for module tabs and the tree's container rows #353

Open
opened 2026-10-24 10:37:09 +02:00 by dominik.polakovics · 0 comments

Mockup: https://claude.ai/artifact/XC9KeADJfRrjD428fZFMdj — "Proposal A" pin 3 (tab counts), "Proposal B" pin 2 (count pill on the container row), "Decisions" B and D. Follow-up to #347 (agreed 2026-10-24: tabs ship without counts).

A tree-hidden module with several containers shows one tab per container; a tree-kept module shows its containers in the tree. Both would show the number of entries each container holds ("News 12 · Press releases 4"). The tree payload does not carry counts today. Proposed: the server adds a per-node count of managed children (entryCount, set only on containerFor nodes), computed where containerFor/managedBy are annotated (pagetree.Annotate), so the count and the container verdict have one owner.

Documents: docs/api.md GET /api/tree; docs/architecture.md if the annotation is described. Styleguide: a count pill on a chrome row (--white-a08 would need a semantic token) — add to components.css with a sample, or draw the count as plain muted words.

Mockup: https://claude.ai/artifact/XC9KeADJfRrjD428fZFMdj — "Proposal A" pin 3 (tab counts), "Proposal B" pin 2 (count pill on the container row), "Decisions" B and D. Follow-up to #347 (agreed 2026-10-24: tabs ship without counts). A tree-hidden module with several containers shows one tab per container; a tree-kept module shows its containers in the tree. Both would show the number of entries each container holds ("News 12 · Press releases 4"). The tree payload does not carry counts today. Proposed: the server adds a per-node count of managed children (`entryCount`, set only on `containerFor` nodes), computed where `containerFor`/`managedBy` are annotated (pagetree.Annotate), so the count and the container verdict have one owner. Documents: `docs/api.md` GET /api/tree; `docs/architecture.md` if the annotation is described. Styleguide: a count pill on a chrome row (`--white-a08` would need a semantic token) — add to components.css with a sample, or draw the count as plain muted words.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Cloonar/deckle#353
No description provided.