materio_sapi: result messages with real plurals; without any exact
match the results are called close (the neighbour search always finds
some). Former help sentence of the base page kept, French corrected.
Messages in SearchMessage, unit tested; French added by update 11002.
materiotheme: placeholder "Describe the material you are looking for",
wider search field, "?" button with a help tooltip and clickable
examples, "Loading…", "End of results"; texts in vuejs/i18n/search.js.
Page title "Base" restored without a search (keys is an array, test its
length).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ShDspHaZGwHoRZCsPBJzsM
Tags and thesaurus terms suggested on the first two words, from the
existing autocomplete route. Arrow keys, Enter, Escape and click; a
suggestion searches that term alone. Number of suggestions announced to
screen readers (fr/en texts in the component). Same translucent look as
the former jQuery UI list.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ShDspHaZGwHoRZCsPBJzsM
- materio_sapi: MaterioSapiSearchForm, AjaxSearchForm and the
/materio_sapi/search_form route removed, with the fieldset legend hook
they needed. The search block is only the place where the Vue field
mounts (placement and access unchanged).
- materiotheme: filters removed from the search store and Base.vue (the
parameter of former URLs is ignored), formhtml removed from main.js and
SearchBlock.vue, filter styles and SlimSelect import removed.
- slim-select uninstalled, with its postinstall patch step.
- Production build.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ShDspHaZGwHoRZCsPBJzsM
- SearchForm.vue: one search field (150 characters, like the backend) and
a button; Enter and button submit the same way; route base with keys
only (no more terms nor filters). Same ids and classes as the former
Drupal form, so main.scss applies.
- SearchBlock.vue: no more fetching nor Vue.compile of the Drupal form.
- Base.vue: aria-live on the result message, announced by screen readers.
- Production build (npm run prod).
Suggestions in the field come back in F7 (they came from the jQuery UI
autocomplete of the Drupal form).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ShDspHaZGwHoRZCsPBJzsM
- SearchForm.vue: route Enter key through submit() (native form submit
interception) so it behaves like the button; fix autocomplete array
mutation during iteration in the typed watcher.
- Base.vue: parse terms consistently in beforeRouteUpdate; render items
via displayedItems (drops sparse holes); only mount infinite-loading
after the first page and reset it per search via :identifier.
- search store: guard against stale async responses (searchId); place
each page at its offset instead of concatenating in arrival order,
which mixed pages when a later page resolved first.