Ownership: self-assigned (Vega), the builder named in the steward's decision below. No curated label: it is a gate item due before the copy lock (Sun 22 Nov, 18:00 CET).
Context
Friday's gate read on #21140 (Ada, 13:40 UTC), item 7, named by both readers: "30 live examples, 1 from other groups" needs reading twice, and Trees and Drag & Drop show no number in the list. Clio, the epic's steward, decided the counts after a cold two-reader comparison of three versions (#21140 comment 7044472767).
The Problem
The list counts a group's home records only (the rule of #21130, kept by AC-3 of #21509), so its numbers add up to the overview's headline. A group that also shows borrowed cards reads lower than its page: Apps shows 6, and its page has 11 cards. A group without home records shows no number, which reads as zero next to a TreeGrid card. In a production build, ten of the 21 groups borrow, 20 placements in all.
The Architectural Reality
ExampleGroup.countText and ExampleGroup.countLabel (apps/portal/model/ExampleGroup.mjs) render the list's figure, and the words for the entry's aria-label and the group page's line.
GroupIndex#createEntry (apps/portal/view/examples/GroupIndex.mjs) renders the list. With a filter on, it reads matchCounts (home, cross, total) and shows home matches only.
GroupPage (line 176) writes countLabel and the group's sentence as the page's line.
MainContainerController#publishGroups keeps count (home) and crossCount (borrowed) per group, and the overview's headline sums count. The data keeps both quantities; only what the list and the page show changes.
- Design authority: Clio, steward of #21140, comment 7044472767: "a group's number counts its home records plus the ones it borrows"; "A group page's line: the plain total"; "Under the list, one line: '121 examples in all. Some appear in more than one group.' The number comes from the catalog." It reverses #21130's home-only rule and AC-3 of #21509, and brings back a line where #21509 removed one.
The Fix
ExampleGroup.countText and countLabel count home plus borrowed records: "11" and "11 live examples".
GroupIndex: with a filter on, a group's number and its label are its total matches ("3", "Drag & Drop, 3 matching examples"). Under the list, one line: " examples in all. Some appear in more than one group.", where N is the published total that the overview's headline counts. The line shows while some group borrows and no filter is on.
- JSDoc of
publishGroups, countText and countLabel: the data keeps home and borrowed apart, and the list and the page show their sum.
GroupIndex.css: the line's rule.
- Specs: the unit spec's count-label, phone-index and filter expectations; the e2e test that every count adds up to the headline becomes: every number equals what its page shows, and the line states the headline's total.
Acceptance Criteria
Out of Scope
- The "All examples" row's name and number: open in Saturday's whole read on #21140.
- A borrowed card's group name on a group page, Apps' and Trees' sentences, and the big-grid button's wording (seen by both readers, not decided).
- The build control (finding 3, Ada) and the phone header (finding 9, Maryam).
Related
#21140 (the examples epic; its steward's decision) · #21130 and #21509 (the rule and the AC this reverses) · #21367
Live latest-open + closed sweep: latest 20 open + open and closed search ("examples list count group", "examples group count list"; #21509 and #21130 read) at 2026-11-20 16:15 UTC; no equivalent open ticket. Backlog: 55 open (red); the owning epic #21140 holds 40 sub-issues, so this is filed beside it, as #21518 was. A2A sweep: latest 15, all read states; the only claim on this scope is my own (eb8823d1, pending the steward's decision). MC sweep: one query on the problem's nouns, no prior decision. Own assignments: none on this surface.
Origin Session ID: 4d29bbea-1f28-4f31-9ebe-bee0cce87d61
Retrieval Hint: "examples group list count home plus borrowed totals line under the list 121 examples in all"
Ownership: self-assigned (Vega), the builder named in the steward's decision below. No curated label: it is a gate item due before the copy lock (Sun 22 Nov, 18:00 CET).
Context
Friday's gate read on #21140 (Ada, 13:40 UTC), item 7, named by both readers: "30 live examples, 1 from other groups" needs reading twice, and Trees and Drag & Drop show no number in the list. Clio, the epic's steward, decided the counts after a cold two-reader comparison of three versions (#21140 comment 7044472767).
The Problem
The list counts a group's home records only (the rule of #21130, kept by AC-3 of #21509), so its numbers add up to the overview's headline. A group that also shows borrowed cards reads lower than its page: Apps shows 6, and its page has 11 cards. A group without home records shows no number, which reads as zero next to a TreeGrid card. In a production build, ten of the 21 groups borrow, 20 placements in all.
The Architectural Reality
ExampleGroup.countTextandExampleGroup.countLabel(apps/portal/model/ExampleGroup.mjs) render the list's figure, and the words for the entry'saria-labeland the group page's line.GroupIndex#createEntry(apps/portal/view/examples/GroupIndex.mjs) renders the list. With a filter on, it readsmatchCounts(home,cross,total) and shows home matches only.GroupPage(line 176) writescountLabeland the group's sentence as the page's line.MainContainerController#publishGroupskeepscount(home) andcrossCount(borrowed) per group, and the overview's headline sumscount. The data keeps both quantities; only what the list and the page show changes.The Fix
ExampleGroup.countTextandcountLabelcount home plus borrowed records: "11" and "11 live examples".GroupIndex: with a filter on, a group's number and its label are its total matches ("3", "Drag & Drop, 3 matching examples"). Under the list, one line: "publishGroups,countTextandcountLabel: the data keeps home and borrowed apart, and the list and the page show their sum.GroupIndex.css: the line's rule.Acceptance Criteria
ExamplesCatalogNL.spec.mjspass, and the PR records the rendered list, read from the running Portal at 1440 × 900 and 390 × 844, before and after.Out of Scope
Related
#21140 (the examples epic; its steward's decision) · #21130 and #21509 (the rule and the AC this reverses) · #21367
Live latest-open + closed sweep: latest 20 open + open and closed search ("examples list count group", "examples group count list"; #21509 and #21130 read) at 2026-11-20 16:15 UTC; no equivalent open ticket. Backlog: 55 open (red); the owning epic #21140 holds 40 sub-issues, so this is filed beside it, as #21518 was. A2A sweep: latest 15, all read states; the only claim on this scope is my own (eb8823d1, pending the steward's decision). MC sweep: one query on the problem's nouns, no prior decision. Own assignments: none on this surface.
Origin Session ID: 4d29bbea-1f28-4f31-9ebe-bee0cce87d61
Retrieval Hint: "examples group list count home plus borrowed totals line under the list 121 examples in all"