Commit Graph
100 Commits
Author SHA1 Message Date
bachirandClaude Opus 5.5 54e7e28046 materiotheme: tab title from the search, safe terms of old URLs (F3)
- Base.vue: the browser tab shows the phrase searched (vue-meta), « Base »
  without a search.
- terms of an old or edited URL parsed without throwing: malformed JSON
  is ignored.
- Production build.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ShDspHaZGwHoRZCsPBJzsM
2026-11-17 21:14:09 +01:00
bachirandClaude Opus 5.5 fca4be3155 Remove the former search form, filters and SlimSelect (F2)
- 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
2026-11-17 21:11:18 +01:00
bachirandClaude Opus 5.5 b73057f453 materiotheme: search field as a Vue form, one phrase (F1)
- 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
2026-11-17 20:50:21 +01:00
bachirandClaude Opus 5.5 7786c2cf71 materio_sapi: neighbours cut relative to the search, OR query as fallback (H6)
- ScoreCut: the kNN search scores every visible node; keep the ones above
  the mean of this search by more than 2 standard deviations. A fixed
  threshold meant nothing (at 0.7, « bois » 664 nodes, « wood » 4 671);
  with k = 2, 373 and 382. Exact matches stay first.
- OR query off (OR_WITH_KNN), kept as the fallback when there are no
  neighbours: model stopped, slow or switched off, term chosen in the
  autocomplete.
- S4: 355 results (1 104), same exact matches; S5: 248 (3 338), better
  top results, 0.27 s instead of 1.3 s.
- Message « X exact result(s) out of N relevant result(s) for "…" », French
  text added by materio_sapi_update_11001 (translations live in the DB).
- ScoreCutTest.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ShDspHaZGwHoRZCsPBJzsM
2026-11-17 19:56:53 +01:00
bachirandClaude Opus 5.5 88ecfb7199 materio_sapi: ranking cached for the next pages (H9)
Each page of 15 results ran every query again (0.7 s for words, 1 s for a
phrase, up to 4 s). Base::rankedSearch() caches the ranking 10 min in the
materio_sapi bin, per user (results depend on node grants), invalidated by
node_list. Pages 2+ now take 1 ms, page 1 unchanged.

The OR query is not limited yet: tied to the tail cut of H6.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ShDspHaZGwHoRZCsPBJzsM
2026-11-17 19:10:10 +01:00
bachirandClaude Opus 5.5 6d8c64c94f materio_ai: cached search vectors, 1 s delay, pause and cron warm-up (H8)
- QueryEmbedder: vector of a search phrase cached 30 days (cache bin
  materio_ai), model given search_timeout seconds (1 by default, new
  setting, update 11001), left alone 60 s after a failure
  (ModelPausedException, not logged).
- NeighbourSearch honours the enabled setting: the search called the model
  even when materio_ai was switched off.
- materio_ai_cron() loads the model with the normal timeout: after a
  restart, loading (2.9 s) exceeds the search delay and Ollama drops it,
  so searches alone would never load it. Ultimate cron job exported.
- On any model failure the search answers with the keyword results only.
- QueryEmbedderTest: cache, delay, pause, cache during the pause, warm-up.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ShDspHaZGwHoRZCsPBJzsM
2026-11-17 18:26:19 +01:00
bachirandClaude Opus 5.5 a656427aec materio_sapi: RankFusionTest as a Drupal UnitTestCase with PHPUnit attributes (T1)
Runs with vendor/bin/phpunit -c web/core: 6 tests, 8 assertions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ShDspHaZGwHoRZCsPBJzsM
2026-11-17 12:57:42 +01:00
bachirandClaude Opus 5.5 26a623b4f6 drupal/core-dev ^11.4 as dev dependency: PHPUnit, phpstan, coder (T1)
Installed with -W -m: 76 dev packages and 4 production packages changed,
symfony/dom-crawler 8.0.12 -> 7.4.22 (core-dev 11.4 needs 7.4; used by
wa72/htmlpagedom for printable), sebastian/diff 7.0.1 -> 6.0.2 (core config
diff), symfony/filesystem and symfony/yaml 7.4.18 -> 7.4.23. Printable HTML
and PDF, config diff and search identical before and after. deploy.sh runs
composer install --no-dev: no dev package on the server. allow-plugins:
phpstan/extension-installer and phpcodesniffer-composer-installer allowed,
php-http/discovery and tbachert/spi denied.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ShDspHaZGwHoRZCsPBJzsM
2026-11-17 12:57:42 +01:00
bachirandClaude Opus 5.5 797a5714f1 materio_sapi: hybrid search, keyword and kNN results merged by RRF (H5)
RankFusion::fuse(): exact matches (references, phrase, all words) first, in
their order; then the OR query and the kNN neighbours merged by reciprocal
rank fusion (k = 60, ranks only). Base::neighbours() asks materio_ai for 200
neighbours of the phrase without references; no model call for a chosen
term, references alone, a missing service, or an error (logged, keyword
results only). Unit test RankFusionTest.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ShDspHaZGwHoRZCsPBJzsM
2026-11-17 12:43:04 +01:00
bachirandClaude Opus 5.5 8229a80c57 materio_sapi: references as exact matches, any case (H4)
referenceQuery() runs first: nodes whose field_reference is one of the
references of the phrase, uppercased (the field is case-sensitive: w0117 and
t0122 found nothing, B2), first and counted as exact. The reference condition
is removed from the OR query, where it restricted the results to the
referenced nodes (« bois R0208 » found nothing). References are removed from
the keywords; references alone run a single query (isReferenceSearch()).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ShDspHaZGwHoRZCsPBJzsM
2026-11-17 12:17:09 +01:00
bachirandClaude Opus 5.5 58ce1b0513 materio_sapi: OR query in terms mode, Solr syntax neutralized (H3)
The OR query no longer sends the input raw (direct mode): « fibre de verre \ »
broke Solr, « -bois » returned every other node as exact, « verre~ » ran a
fuzzy search. KeywordText turns syntax between words into a separator, drops
leading + - ! and symbol-only words (« || » broke the payload boost). Hyphens
are split for the OR query only, as the direct mode did. Same counts and exact
matches on S4, about twice as fast.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ShDspHaZGwHoRZCsPBJzsM
2026-11-17 12:10:00 +01:00
bachirandClaude Opus 5.5 ae69b5c03b materio_sapi: split sapiQuery, stop words removed, short-input exact queries (H2)
phraseQuery, andQuery and orQuery return [nid, uuid] lists built by
keywordQuery (duplicates removed by key, no more in_array over 10 000 rows);
filters code removed. KeywordText strips the stop words of the Solr field
type of the language, French elisions and request words: the custom types of
materio_sapi keep stop words (« de » alone matched 2 236 nodes). The phrase
and AND queries run for 6 meaningful words at most: beyond they find nothing
and the AND query could exceed maxClauseCount.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ShDspHaZGwHoRZCsPBJzsM
2026-11-17 11:53:13 +01:00
bachirandClaude Opus 5.5 7db02c8b30 materio_sapi: search keys kept as one phrase, filters ignored (H1)
parseRequest() no longer splits the input on commas (Tags::explode):
Base::cleanPhrase() collapses spaces and cuts at 150 characters. The phrase
is kept with its case for the model, lowercased in keys for the keyword
queries. The filters parameter of the assisted search is ignored.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ShDspHaZGwHoRZCsPBJzsM
2026-11-17 11:30:32 +01:00
bachirandClaude Opus 5.5 f1ebea91db materio_ai: neighbour search service with Solr kNN (I4)
NeighbourSearch::search() embeds a phrase and runs a Search API query on the
database index, tagged materio_ai_knn. KnnQuerySubscriber turns only this
query into {!knn f=knn1024_vector topK=N}: Search API filter queries
(content_access, language, index) stay as kNN pre-filters (Solr 9.1+), and
keyword queries are untouched. Sent in POST by http_method AUTO.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ShDspHaZGwHoRZCsPBJzsM
2026-11-17 10:51:32 +01:00
bachirandClaude Opus 5.5 cc19dedf92 materio_ai: mark a node for reindexing when its vector changes (I3)
Vectorizer::vectorize() calls trackItemsUpdated for each translation whose
vector was saved or deleted, also when the model fails half-way. With
index_directly the cron indexes them at the end of the request. drush mai-va
only marks them (batch tracking) and reminds to run drush sapi-i.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ShDspHaZGwHoRZCsPBJzsM
2026-11-17 10:40:39 +01:00
bachirandClaude Opus 5.5 480691fe3e materio_ai: write stored vectors into Solr documents at indexing (I2)
SolrDocumentSubscriber listens to PostCreateIndexDocumentsEvent and sets
knn1024_vector on each node document from the materio_ai_embedding table
(EmbeddingStorage::loadVectors, one query per batch, active model only).
No call to the model: a full reindex does not depend on Ollama.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ShDspHaZGwHoRZCsPBJzsM
2026-11-17 10:12:50 +01:00
bachirandClaude Opus 5.5 ce6124b707 materio_ai: dense vector field in the generated Solr configset (I1)
SolrConfigSubscriber listens to PostConfigFilesGenerationEvent (search_api_solr
4.x no longer calls hook_search_api_solr_config_files_alter) and appends the
knn_vector_1024 DenseVectorField (cosine, HNSW) and the knn1024_* dynamic field
(not stored). Solr 9.1 at least. Dependency on search_api_solr added.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ShDspHaZGwHoRZCsPBJzsM
2026-11-17 09:41:33 +01:00
bachirandClaude Opus 5.5 b93d791419 materio_ai: requeue nodes when a referenced term changes (V7)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ShDspHaZGwHoRZCsPBJzsM
2026-11-16 21:14:32 +01:00
bachirandClaude Opus 5.5 2a58602867 materio_ai: drush materio-ai:vectorize-all, resumable with progress (V6)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ShDspHaZGwHoRZCsPBJzsM
2026-11-16 21:01:34 +01:00
bachirandClaude Opus 5.5 7d60678232 materio_ai: vectorization queue on node save, hash check and retry (V5)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ShDspHaZGwHoRZCsPBJzsM
2026-11-16 20:50:05 +01:00
bachirandClaude Opus 5.5 96a255fcbc materio_ai: corpus adds distributor and synonyms, includes every published node (V4)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ShDspHaZGwHoRZCsPBJzsM
2026-11-16 20:45:49 +01:00
bachirandClaude Opus 5.5 3659b9e2a1 materio_ai: corpus builder for materials and themes (V4)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ShDspHaZGwHoRZCsPBJzsM
2026-11-16 20:34:06 +01:00
bachirandClaude Opus 5.5 86ca518c6c materio_ai: embedding table and storage service (V3)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ShDspHaZGwHoRZCsPBJzsM
2026-11-16 20:16:37 +01:00
bachirandClaude Opus 5.5 45f21b2e49 materio_ai: Ollama embedding client with timeout, num_thread and dimension check (V2)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ShDspHaZGwHoRZCsPBJzsM
2026-11-16 19:46:22 +01:00
bachirandClaude Opus 5.5 890c80eb12 materio_ai: module skeleton, settings and schema (V1)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ShDspHaZGwHoRZCsPBJzsM
2026-11-16 19:35:09 +01:00
bachirandClaude Opus 5.5 6072f70553 search_api_solr Solr 9 cache config: maxBooleanClauses 2048
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 19:08:59 +01:00
bachir 5846e0f4d3 empty flag dossier name fix 2026-11-11 18:00:44 +01:00
bachir d733b99ae5 gin dark mode commerce sidebar display fix 2026-09-30 16:27:42 +02:00
bachir 1abaa040f9 term_reference_tree widgget tracklist remove btn fix 2026-09-30 15:44:19 +02:00
bachir da9c9c3868 materiau edit form more lines for memo field 2026-09-29 09:43:09 +02:00
bachir ac3c22c179 term_reference_tree display fix 2026-09-29 09:37:22 +02:00
bachir 9136dc3ddb term_reference_tree bug fix 2026-09-29 00:05:08 +02:00
bachir 6b8c1d9353 removed contact & ban modules 2026-09-26 18:13:48 +02:00
bachir 30b1fc31d4 composer include js-cooky library 2026-09-26 16:51:16 +02:00
bachir f7c16211f8 Remove config_filter from lock (orphan since config_split 2.x) + starterkit profile bump 2026-09-26 13:16:20 +02:00
bachir baae8d0758 Uninstall config_filter (no longer required by config_split 2.x) 2026-09-26 13:14:34 +02:00
bachir 5b53b563c0 Uninstall admin_toolbar_links_access_filter (obsolete, in core since 10.3) + starterkit profile bump 2026-09-26 10:54:34 +02:00
bachir 4a50053e09 npm run prod 2026-09-26 01:24:06 +02:00
bachir 40da4ce904 Add missing patches referenced by composer.json (gitignored *.patch files needed for prod deploy) 2026-09-26 01:15:00 +02:00
bachir 62c814d57d Drupal from 10.6.17 to 11.4.7 2026-09-26 01:10:59 +02:00
bachir 89d68ac548 removed simplenews_mailjet_subscriptions, replaced it by features in custom module materio_mailjet 2026-09-25 20:48:46 +02:00
bachir ef699e9748 inline_entity_form ^3 2026-09-25 15:48:23 +02:00
bachir 126cbe2107 workflow patch, login_tracker tackeover, user_csv_import, string_translation_ui, path_alias_xt 2026-09-25 14:50:12 +02:00
bachir e6724eba34 composer removed 3 contrib modules D11 incompatibles 2026-09-25 12:13:39 +02:00
bachir 99918ceed4 pmu 3 contrib modules D11 incompatibles 2026-09-25 11:23:26 +02:00
bachir 7e7acd6266 webform security updates 2026-09-25 11:12:09 +02:00
bachir e871291fa3 updated term_reference_tree & rerolled patch 2026-09-24 22:39:25 +02:00
bachir 01a5157177 cleaned old unused anymore themes 2026-09-23 21:47:43 +02:00
bachir c15072ce78 forgot starterkit profile when uninstalled adminimal 2026-09-23 21:43:06 +02:00
bachir 5bb35aa1ec admin display improvements 2026-09-23 21:14:58 +02:00
bachir 0e59bf5129 switched admin theme to GIN (plus custom module for terme_reference_tree display) 2026-09-23 20:39:00 +02:00
bachir 82354d58b2 more modules update (forgot starter-kit) 2026-09-23 18:34:14 +02:00
bachir df9f4f2336 more modules update 2026-09-23 18:33:14 +02:00
bachir 217b08290f materio_simplenews & materio_graphql fix 2026-09-23 14:57:56 +02:00
bachir c38d01ee2b massive custom modules and themes D11 compatibility 2026-09-23 14:16:41 +02:00
bachir 21092ae992 updated composer/installer 2026-09-23 13:57:31 +02:00
bachir 2573e56763 fixed admin views user: removed login_history relation 2026-09-23 13:51:07 +02:00
bachir b33e39aaa5 upgraded commerce_stripe 2026-09-22 22:57:05 +02:00
bachir 67a4f7c52f upgraded commerce to 3 2026-09-22 22:12:53 +02:00
bachir b11afd5fb1 restored workflow to 2.1.13 2026-09-22 22:02:18 +02:00
bachir 50e10dfc6a upgraded classy 2026-09-22 21:56:56 +02:00
bachir b0f6e9f2ec restored classy, more modules upgrades 2026-09-22 21:46:36 +02:00
bachir 34f42856e7 forgot to drush cex 2026-09-22 21:34:32 +02:00
bachir 53cbcbe06e updated composer platforme & drush to 13 2026-09-22 21:31:05 +02:00
bachir e51e62f16d updated composer platforme & drush to 13 2026-09-22 20:04:45 +02:00
bachir 37c400ed59 composer removed currency & plugin 2026-09-21 20:34:32 +02:00
bachir bf8506c2b5 restored google_analitycs 2026-09-21 20:14:35 +02:00
bachir 57c1236a6a more updates; pmu payement and currency (next will composer remove thene) 2026-09-21 20:01:23 +02:00
bachir 3d8b376d22 updated all easy updatable contrib modules 2026-09-21 15:57:12 +02:00
bachir 8d5646c83d contrib modules updates 2026-09-20 17:55:40 +02:00
bachir 4e3c318f28 fixed drupal/webform composer.json 2026-09-20 13:18:28 +02:00
bachir 29506e0b2e downgraded to php 8.1 2026-09-20 12:57:18 +02:00
bachir c2f594ef2f updated drupal to 10.6.17, updated webform, updated drush to 13, changed submodule profile url to gitea (gogs shot down) 2026-09-20 00:52:34 +02:00
bachir e6f4df78e5 deactivated newsletter inscription form 2026-09-10 20:39:48 +02:00
bachir b75dff7d2a protected newsletter inscription form with honeypot 2026-09-10 14:36:06 +02:00
bachir 8ce8cd3fa9 removed mailjet secrets api key from config, revocked the key 2026-09-10 12:38:39 +02:00
bachir a5b9c83fa4 removed strip secret key from config, revocked the key 2026-09-10 10:43:46 +02:00
bachir 48c31420a7 search results in changed order #3584 2026-09-09 16:02:39 +02:00
bachir c196eb470d admin can edit commerce product variations 2026-09-01 15:45:22 +02:00
bachir dad722078e user role root fields thesaurus & samples 2026-07-17 14:37:36 +02:00
bachir 754b273eb0 commited packaged-lock after removing sentry from theme 2026-07-17 14:34:22 +02:00
bachir 141d393d70 gitignored opencode.jon 2026-07-17 14:20:25 +02:00
bachir 79b7047ed9 improved flag performances issues without a patch but with hook_module_implements_alter in materio_flag 2026-07-17 14:16:40 +02:00
bachir 1640f3629b fixed materiau samples mélange bug 2026-07-17 12:52:08 +02:00
bachir 76598e3ca0 Rebuild theme dist (searchform fix + Sentry removal)
Compiled bundles for the SearchForm search-results fix and the Sentry/
GlitchTip removal. The SENTRY_RELEASE prelude is now gone from every
chunk as expected.
2026-07-15 21:18:58 +02:00
bachir 513cdd6f9f Remove Sentry/GlitchTip integration
- main.js: drop @sentry/browser + @sentry/vue init.
- webpack.config.prod.js: drop sentryWebpackPlugin (and its dotenv/env
  plumbing that only served Sentry release/source-map upload).
- package.json: remove @sentry/browser, @sentry/vue, @sentry/webpack-plugin.

Note: run 'npm install' to update package-lock before the next build.
2026-07-15 21:16:58 +02:00
bachir 2f5a230370 SearchForm: fix inconsistent/mixed search results
- 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.
2026-07-15 21:11:53 +02:00
bachir 3bbc26e5b7 updated W contrib modules 2025-10-14 19:11:51 +02:00
bachir ffa79f9872 updated V contrib modules 2025-10-14 19:08:38 +02:00
bachir 17448e4faf updated U contrib modules 2025-10-14 18:57:21 +02:00
bachir d2dc84e54f updated T contrib modules, taxonomy_term_tree needs repatch 2025-10-14 18:44:59 +02:00
bachir f4123bac89 updated S contrib modules, search_api simplenews 2025-10-14 17:04:08 +02:00
bachir 9d54e8c553 updated R contrib modules, role_expire upgrade 2025-10-14 16:51:00 +02:00
bachir 908c61700c updated P contrib modules, patched pwa 2025-10-14 16:35:01 +02:00
bachir bcda2568a7 updated M contrib modules, patched mailjet 2025-10-14 16:02:11 +02:00
bachir 343760582e linkit upgrad. Mailet update, removed 2 obsolet patch, repatched simplenews_mailet_subscrition 2025-10-10 17:44:21 +02:00
bachir 7b9a2b2f67 updated I contrib modules 2025-10-10 16:36:55 +02:00
bachir 001719b583 removed image_effects contrib module & unused hd_watermark image style 2025-10-10 16:25:59 +02:00
bachir 486d73106f updated G contrib modules 2025-10-10 16:04:51 +02:00
bachir 5974397cd4 repatched flag again (peformance issues is only with home) 2025-10-09 17:52:07 +02:00