Install
Works with Drupal: ^11.3 || ^12Using Composer to manage Drupal site dependencies
Alternative installation files
Download tar.gz
117.53 KB
MD5: 3f718ec2676ae678d5520ef86dfd96cc
SHA-1: bec66e1a1f8fb20b532546093456b6a178cdd470
SHA-256: f2fca26e31005c732b1a573c597d18d014c9cb1bc26da9f2abc08ef3c178520d
Download zip
177.19 KB
MD5: b827657170b20ec7b381bf986fc80d51
SHA-1: 2733457339d18200e8d0cad325371a0bc64e2143
SHA-256: 77285c0db3ab05937a375cda4a2a595ddb1199fcf5a844c20fb5210002817c29
Release notes
Build a VVJ view with AI (new optional sub-module), a working v1 to v2 upgrade audit, and a fix for a console error in background tabs.
Requirements
- Drupal
^11.3 || ^12, PHP 8.3+. Views and Filter (core). - The new
vvj_core_aisub-module is optional and needs the AI module (drupal/ai ^1.2). It is declared^11.3only, because AI does not yet declare Drupal 12 support. Everything else in VVJ Core, and every VVJ format, installs on Drupal 12 without it.
What's new
- VVJ Core AI (new sub-module, optional). Build a VVJ view with AI is a button on the Views list page (
/admin/structure/views/vvj-ai). Choose a VVJ format, the content type, the fields or a view mode (only for formats that use one) and how many items; describe what you want; the AI names the view and picks its fields and sort from your site's own fields.- The view is created as a block by default (a page on request), with a fixed count and no pager, and it is created disabled so you can check it first. An existing view is never edited.
- Each format's features are switched on and named after the view is created (10 formats, 53 features).
- A prompts and best-practices panel sits under the format select; "Use this prompt" also fills in Fields or View mode.
- Refused before the paid AI call is made: an image-first format (Hero, Parallax) with no image field, and a page path the site already uses.
- Created views get the access content permission (Views' own default is none).
- A missing label falls back to the format's short name; a machine name already taken gets the next free one (
_2to_99) instead of a refusal; a provider timeout reports the site's limit and where to raise it.
composer.jsonnow suggestsdrupal/ai, so the sub-module's dependency is named in the package.
Fixes
- v1 to v2 option conversion. Views coming from 1.x kept v1 option shapes (numbers stored as strings, booleans as integers, options renamed during 1.x) and failed the v2 schema; two renamed options silently stopped working. The shared upgrade audit can now convert them (
normalize()/normalizeAll()), and each format module's update hook calls it. Format modules can add their own per-option renames throughVvjStylePluginBase::upgradeLegacyOptions(). - The upgrade audit told you nothing.
drush vvj:upgradereported "no drift" unconditionally, found no views unless--modulewas given, and printed "Migration complete." without changing anything. All three are fixed. - Console error in background tabs. Autoplaying formats called the browser's view-transition API while the page was hidden, and the browser rejected it ("Transition was aborted because of invalid state. Document hidden") on every tick. No transition is started while the page is hidden; the state change still runs. Affects all ten formats.
After updating
Run drush updb then drush cr. The update removes the settings and agent left by an earlier development version of vvj_core_ai (it does nothing on a site that never had one). Update VVJ Core before the VVJ format modules: their new update hooks use the converter added here.
Known limitations
- The label the AI writes is used as the block's visible title and can read like a description; check it after creation.
- Prompt quality is working, not yet proven good across every format.