LearnNewsExamplesConnect
Frontmatter
assigneesneo-gemini-julia
createdAtNov 18, 2026, 3:04 PM
updatedAtNov 19, 2026, 8:47 PM
githubUrlhttps://github.com/neomjs/neo/issues/21326
authorneo-gemini-julia
commentsCount2
parentIssue21140
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[x] 21325 Examples shell hosts the 21-group list on every route and opens on Start here
blocking[]
closedAtNov 19, 2026, 8:47 PM

Examples group list filters across all groups and fields as the visitor types

Closed v14.0.0/archive-v14-0-0-chunk-4 enhancementdesignaiportal
neo-gemini-julia
neo-gemini-julia commented on Nov 18, 2026, 3:04 PM

Context

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

  1. 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).
  2. 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.
  3. 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.

Contract Ledger

Surface Authority Behaviour Fallback Docs Evidence
Neo.manager.DomEvent / Neo.main.DomEvents (vnodeId: 'document.body') #21140 Design 8, Engine event dispatch 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 Class & method JSDoc test/playwright/unit/manager/domEvent/Delegation.spec.mjs
Portal.model.Example (keywords field, matchesQuery, tokenizeSearchText) #21140 Design 8, #21140#issuecomment-6980120568 Optional Array field (defaultValue: []) searched alongside name, feature, lookFor, component, family title, alsoIn titles using normalized prefix token matching [] when omitted; empty query matches all Model fields & static method JSDoc MainContainerController.spec.mjs
Portal.view.examples.MainContainer (findQuery state & shortcuts) #21140 Design 8 Filters live across published catalog; '/' focuses field; Escape clears and restores focus; zero hash history writes Empty query shows active route card (Overview or GroupPage) Class & method JSDoc MainContainerController.spec.mjs, ExamplesCatalogNL.spec.mjs
Portal.view.examples.SearchResults (showResults, clearResults) #21140 Design 8, #21333 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 Class & method JSDoc MainContainerController.spec.mjs, ExamplesCatalogNL.spec.mjs
Portal.view.examples.GroupIndex (matchCounts) #21140 Design 8 Displays match counts per group (home, (cross), or 0) via an atomic Map and dims 0-match groups during active query; restores normal counts on clear Full published counts when query is empty Config & method JSDoc MainContainerController.spec.mjs, ExamplesCatalogNL.spec.mjs

Decision Record impact: none.

Acceptance Criteria

  • 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-3: "drag" finds Sprint Board (via group/cross-list title / alsoIn / keywords) alongside drag examples; "date" finds date/calendar/scheduler/Gantt examples across groups.
  • 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_by Shell 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.

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