Leaf of #21140 (The examples section becomes Neo's kitchen sink, cornerstone 1 of Engine 14 in ROADMAP.md, cut Mon 23 Nov). Implements #21140 Design 8 (A find field) in one PR stacked cleanly on the Shell leaf PR.
The Problem
Even with the 21-group list (GroupIndex) docked beside /examples and every group page, visitors have no cross-cutting search across ~140 Kitchen Sink entries. A visitor looking for "drag" across the platform (matching Sprint Board whose home group caption or alsoIn: ['drag-drop'] establishes drag support without "drag" in its title) or "date" across Calendar, Scheduler, Gantt, and Forms & Fields has to open group pages one by one and scroll. Cold readers specifically requested a find/filter field across all entries.
The Architectural Reality
Shell hoists .portal-examples-sidebar (apps/portal/view/examples/MainContainer.mjs) above/beside .portal-examples-stage (card layout), leaving a top slot at the head of .portal-examples-sidebar above GroupIndex (presentation: 'list'), plus the shared mobile GroupIndex (presentation: 'sheet') and mobile Overview index.
Portal.view.examples.MainContainer#getCatalogStore() holds every Portal.model.Example record in memory (catalog), and MainContainer#getGroupStore() / familyDefinitions holds the 21 group definitions and titles (family -> title).
apps/portal/model/Example.mjs: defines catalog fields (name, feature, lookFor, component, family, alsoIn), currently without an optional keywords array field.
Design authority: #21140 body Design 8 and cold-reader note ("a filter over all entries: design 8, the Find lane, in Engine 14's scope"), plus Clio's field-list rule (#21140#issuecomment-6980120568: searches entry name, feature, lookFor, component, home + alsoIn group titles, and optional keywords).
The Fix
Add optional keywords field on Portal.model.Example:{name: 'keywords', type: 'Array', defaultValue: []} and define matching fields on existing catalog rows where titles/captions alone would miss high-value visitor terms (without breaking existing schema tests).
Mount one synchronized Find input across desktop sidebar (MainContainer) and mobile (sheet + mobile Overview index):
Place a clearable Neo.form.field.Search (or Text search field with '/' shortcut badge and Escape clear) at the head of .portal-examples-sidebar and reflect/bind the shared findQuery state in the phone sheet and entry page so desktop and phone stay synchronized via MainContainer's state provider.
Filter live as the visitor types:
Match published records (Example.publishes(record, catalogMode)) case-insensitively across name, feature, lookFor, component, the group title of family, every group title of alsoIn, and keywords.
Switch .portal-examples-stage to a dedicated search-results view showing matching entries grouped under their home group heading (rendering cards/tiles cleanly); while active, GroupIndex displays per-group match counts and dims zero-match groups (opacity / muted styling + aria-disabled or muted indicator as appropriate while keeping "All examples" / clearing accessible).
Clearing the query (clicking clear, deleting input, or pressing Escape) restores the previously open route page (Overview or active GroupPage) and returns focus from the field when cleared via Escape; '/' outside inputs focuses the find field; typing never pushes browser URL hash history entries.
Component domListeners with vnodeId: 'document.body' receive bubbling document-level global DOM events once per event; registerPreventDefaultKeys({id: 'document.body', keys: [...]}) suppresses browser default when target is document.body
Ignored if owner is destroyed, disabled, or in another windowId
Renders matching published entries grouped under their home group heading in definition order as demonstration cards (kind !== 'component') and sorted component tiles (kind === 'component', tiles: true)
Empty state message on 0 matches; clearResults() destroys dynamic lists when cleared
AC-1: A find field renders at the head of .portal-examples-sidebar on desktop and on phone (entry page + sheet), filtering published entries live as the visitor types over name, feature, lookFor, component, home + alsoIn group titles, and optional keywords.
AC-2: Non-empty queries show matches grouped under their group name in the stage, show per-group match counts in GroupIndex, dim 0-match groups, and keep the URL hash unchanged (no history entries written while typing).
AC-4: '/' focuses the find field; Escape or clearing restores the previously open page and returns focus cleanly.
AC-5: Unit specs (MainContainerController.spec.mjs), seo/verify.mjs, and Whitebox E2E (ExamplesCatalogNL.spec.mjs) pass.
AC-6: Look: before and after frames at 1440×900 and 390×844 for queries "drag" and "date", read cold with after > before[L3-deferred — operator handoff needed: sessionless subagent cold-reader spawn blocked under GEMINI.md Arm A1 zero-subagent baseline on neomjs/neo-agent-brain#1853; whole-surface pairs embedded for cross-family reviewer + #21140 cold read].
Out of Scope
Putting the search query in the URL hash or SSR crawler routes (explicitly post-step in #21140 Design 8).
Modifying GroupIndex membership or group card/tile rendering beyond grouped search results (handled by Shell and Tiles).
Avoided Traps
Matching only name and feature (misses "drag" on Sprint Board and cross-listed groups).
Mutating document.location.hash on keystroke (breaks browser Back/Forward).
Hardcoding group titles instead of reading MainContainer#familyDefinitions.
Related
Parent #21140 · blocked_byShell sibling leaf
Live latest-open + closed sweep: latest 20 open read (65 open, red band) and searches across all states ("find examples group list", "examples shell Start here") at 2026-11-18T14:02Z; no open leaf owns #21140 Design 8 Find. A2A in-flight sweep: latest 30 messages at 14:02Z; zero competing claim (Clio approved Julia's Shell + Find claim at 13:34Z). MC sweep: "examples overview repeats group list no examples shown drag across groups", 5 results, no contradicting decision. Own-assignment sweep: #20671, #20987, neither overlaps.
Context
Leaf of
#21140(The examples section becomes Neo's kitchen sink, cornerstone 1 of Engine 14 inROADMAP.md, cut Mon 23 Nov). Implements#21140Design 8 (A find field) in one PR stacked cleanly on theShellleaf PR.The Problem
Even with the 21-group list (
GroupIndex) docked beside/examplesand every group page, visitors have no cross-cutting search across ~140 Kitchen Sink entries. A visitor looking for "drag" across the platform (matchingSprint Boardwhose home group caption oralsoIn: ['drag-drop']establishes drag support without"drag"in its title) or "date" acrossCalendar,Scheduler,Gantt, andForms & Fieldshas to open group pages one by one and scroll. Cold readers specifically requested a find/filter field across all entries.The Architectural Reality
Shellhoists.portal-examples-sidebar(apps/portal/view/examples/MainContainer.mjs) above/beside.portal-examples-stage(cardlayout), leaving a top slot at the head of.portal-examples-sidebaraboveGroupIndex(presentation: 'list'), plus the shared mobileGroupIndex(presentation: 'sheet') and mobileOverviewindex.Portal.view.examples.MainContainer#getCatalogStore()holds everyPortal.model.Examplerecord in memory (catalog), andMainContainer#getGroupStore()/familyDefinitionsholds the 21 group definitions and titles (family -> title).apps/portal/model/Example.mjs: defines catalog fields (name,feature,lookFor,component,family,alsoIn), currently without an optionalkeywordsarray field.#21140body Design 8 and cold-reader note ("a filter over all entries: design 8, the Find lane, in Engine 14's scope"), plus Clio's field-list rule (#21140#issuecomment-6980120568: searches entryname,feature,lookFor,component, home +alsoIngroup titles, and optionalkeywords).The Fix
keywordsfield onPortal.model.Example:{name: 'keywords', type: 'Array', defaultValue: []}and define matching fields on existing catalog rows where titles/captions alone would miss high-value visitor terms (without breaking existing schema tests).MainContainer) and mobile (sheet+ mobileOverviewindex):Neo.form.field.Search(orTextsearch field with'/'shortcut badge andEscapeclear) at the head of.portal-examples-sidebarand reflect/bind the sharedfindQuerystate in the phonesheetand entry page so desktop and phone stay synchronized viaMainContainer's state provider.Example.publishes(record, catalogMode)) case-insensitively acrossname,feature,lookFor,component, the group title offamily, every group title ofalsoIn, andkeywords..portal-examples-stageto a dedicated search-results view showing matching entries grouped under their home group heading (rendering cards/tiles cleanly); while active,GroupIndexdisplays per-group match counts and dims zero-match groups (opacity/ muted styling +aria-disabledor muted indicator as appropriate while keeping"All examples"/ clearing accessible).Escape) restores the previously open route page (Overviewor activeGroupPage) and returns focus from the field when cleared viaEscape;'/'outside inputs focuses the find field; typing never pushes browser URL hash history entries.Contract Ledger
Neo.manager.DomEvent/Neo.main.DomEvents(vnodeId: 'document.body')#21140Design 8, Engine event dispatchdomListenerswithvnodeId: 'document.body'receive bubbling document-level global DOM events once per event;registerPreventDefaultKeys({id: 'document.body', keys: [...]})suppresses browser default when target isdocument.bodywindowIdtest/playwright/unit/manager/domEvent/Delegation.spec.mjsPortal.model.Example(keywordsfield,matchesQuery,tokenizeSearchText)#21140Design 8,#21140#issuecomment-6980120568Arrayfield (defaultValue: []) searched alongsidename,feature,lookFor,component,familytitle,alsoIntitles using normalized prefix token matching[]when omitted; empty query matches allfields& static method JSDocMainContainerController.spec.mjsPortal.view.examples.MainContainer(findQuerystate & shortcuts)#21140Design 8'/'focuses field;Escapeclears and restores focus; zero hash history writesOvervieworGroupPage)MainContainerController.spec.mjs,ExamplesCatalogNL.spec.mjsPortal.view.examples.SearchResults(showResults,clearResults)#21140Design 8,#21333kind !== 'component') and sorted component tiles (kind === 'component',tiles: true)clearResults()destroys dynamic lists when clearedMainContainerController.spec.mjs,ExamplesCatalogNL.spec.mjsPortal.view.examples.GroupIndex(matchCounts)#21140Design 8home,(cross), or0) via an atomicMapand dims 0-match groups during active query; restores normal counts on clearMainContainerController.spec.mjs,ExamplesCatalogNL.spec.mjsDecision Record impact: none.
Acceptance Criteria
.portal-examples-sidebaron desktop and on phone (entry page + sheet), filtering published entries live as the visitor types overname,feature,lookFor,component, home +alsoIngroup titles, and optionalkeywords.GroupIndex, dim 0-match groups, and keep the URL hash unchanged (no history entries written while typing)."drag"findsSprint Board(via group/cross-list title /alsoIn/keywords) alongside drag examples;"date"finds date/calendar/scheduler/Gantt examples across groups.'/'focuses the find field;Escapeor clearing restores the previously open page and returns focus cleanly.MainContainerController.spec.mjs),seo/verify.mjs, and Whitebox E2E (ExamplesCatalogNL.spec.mjs) pass.1440×900and390×844for queries"drag"and"date", read cold withafter > before[L3-deferred — operator handoff needed: sessionless subagent cold-reader spawn blocked under GEMINI.md Arm A1 zero-subagent baseline on neomjs/neo-agent-brain#1853; whole-surface pairs embedded for cross-family reviewer + #21140 cold read].Out of Scope
#21140Design 8).GroupIndexmembership or group card/tile rendering beyond grouped search results (handled byShellandTiles).Avoided Traps
nameandfeature(misses"drag"onSprint Boardand cross-listed groups).document.location.hashon keystroke (breaks browser Back/Forward).MainContainer#familyDefinitions.Related
Parent
#21140·blocked_byShellsibling leafLive latest-open + closed sweep: latest 20 open read (
65 open, red band) and searches across all states ("find examples group list","examples shell Start here") at2026-11-18T14:02Z; no open leaf owns#21140Design 8 Find. A2A in-flight sweep: latest 30 messages at14:02Z; zero competing claim (Clioapproved Julia'sShell+Findclaim at13:34Z). MC sweep:"examples overview repeats group list no examples shown drag across groups", 5 results, no contradicting decision. Own-assignment sweep:#20671,#20987, neither overlaps.Origin Session ID: 613064f8-74aa-4baa-8ee7-6a0b8540f31b
Retrieval Hint: "Portal examples Design 8 Find cross-group live search keywords alsoIn group counts keyboard / Escape"
🏛️ Julia ·
@neo-gemini-julia· Gemini 4 Argon · Antigravity