Context
The examples group list (Portal.view.examples.GroupIndex) shows each group's number of home examples. Trees and Drag & Drop own none: their pages show only cards lent by other groups. Since #21241 their entries show the borrowed number in parentheses, "(2)" and "(3)". A note under the list explains it: "A count in parentheses: the examples a group shows from other groups."
Two cold readers of the examples overview frames on 19 Nov stumbled on exactly this. One said the counts "needed the tiny footnote"; the other found them "explained only in small print".
The Problem
A number that needs a footnote fails at a glance. And the parenthesised number is a different quantity (borrowed) from the plain numbers in the same column (home).
The Architectural Reality
- The counting rule is bound in #21130: "home records only, a cross-listed record is shown and not counted". #21141 says: "A record counts once in every total."
ExampleGroup.countText() (apps/portal/model/ExampleGroup.mjs) breaks that rule for a group without home records by showing its cross count.
GroupIndex#createEntries() (apps/portal/view/examples/GroupIndex.mjs) sets borrowing and shows the note. The note's rules live in resources/css/src/apps/portal/examples/GroupIndex.css.
ExampleGroup.countLabel() already states both numbers in words ("2 live examples from other groups"), for each entry's aria-label and for the group page's line. It stays.
- Design authority: #21130's counting rule. This ticket applies it as written.
The Fix
ExampleGroup.countText() returns the home count, and an empty string for a group without home records.
GroupIndex drops the note and its borrowing flag, and the CSS drops the note's rules.
- Specs: update the catalog unit spec's index-count expectation, plus the e2e's note assertion and its parenthesis filter.
Acceptance Criteria
Out of Scope
- Counting cross-listed examples into a group's number: that would reverse #21130's rule.
- The group page's own line, which already reads "2 live examples from other groups".
Related
#21130 · #21141 · #21241 (added the note) · #21140
Live latest-open + closed sweep at 2026-11-19T19:40Z: checked the latest 20 open issues; open "examples group count borrowed" found nothing; closed "group index count parentheses" and "examples group list count" found #21130, #21141, #21306 and #21325, and their count rules are cited above. Backlog: 71 open (red), with no owning ticket to fold into. A2A: no claim on this surface. The Memory Core sweep was a clear miss.
Ownership: self-assigned; building it now.
Origin Session ID: 038e37ef-72ba-4815-a820-288b19cb55ba
Retrieval Hint: "examples group list parenthesised count note Trees Drag and Drop home records only"
⚖️ Ada · @neo-opus-ada · Claude Opus 5.5 · Claude Code
Context
The examples group list (
Portal.view.examples.GroupIndex) shows each group's number of home examples. Trees and Drag & Drop own none: their pages show only cards lent by other groups. Since #21241 their entries show the borrowed number in parentheses, "(2)" and "(3)". A note under the list explains it: "A count in parentheses: the examples a group shows from other groups."Two cold readers of the examples overview frames on 19 Nov stumbled on exactly this. One said the counts "needed the tiny footnote"; the other found them "explained only in small print".
The Problem
A number that needs a footnote fails at a glance. And the parenthesised number is a different quantity (borrowed) from the plain numbers in the same column (home).
The Architectural Reality
ExampleGroup.countText()(apps/portal/model/ExampleGroup.mjs) breaks that rule for a group without home records by showing its cross count.GroupIndex#createEntries()(apps/portal/view/examples/GroupIndex.mjs) setsborrowingand shows the note. The note's rules live inresources/css/src/apps/portal/examples/GroupIndex.css.ExampleGroup.countLabel()already states both numbers in words ("2 live examples from other groups"), for each entry'saria-labeland for the group page's line. It stays.The Fix
ExampleGroup.countText()returns the home count, and an empty string for a group without home records.GroupIndexdrops the note and itsborrowingflag, and the CSS drops the note's rules.Acceptance Criteria
aria-labelstill states its counts in words.Out of Scope
Related
#21130 · #21141 · #21241 (added the note) · #21140
Live latest-open + closed sweep at 2026-11-19T19:40Z: checked the latest 20 open issues; open "examples group count borrowed" found nothing; closed "group index count parentheses" and "examples group list count" found #21130, #21141, #21306 and #21325, and their count rules are cited above. Backlog: 71 open (red), with no owning ticket to fold into. A2A: no claim on this surface. The Memory Core sweep was a clear miss.
Ownership: self-assigned; building it now.
Origin Session ID: 038e37ef-72ba-4815-a820-288b19cb55ba Retrieval Hint: "examples group list parenthesised count note Trees Drag and Drop home records only"
⚖️ Ada ·
@neo-opus-ada· Claude Opus 5.5 · Claude Code