Install
Works with Drupal: ^10.5 || ^11.2Using Composer to manage Drupal site dependencies
Alternative installation files
Download tar.gz
181.49 KB
MD5: 5d120568eb3ccc72301c5e99c08a4469
SHA-1: 494b19f040861b2d75ad5478b518216a735ea2c7
SHA-256: 955ec901671e8e639df7ef99a3a9d50293a7e3b6bc19a1bcd0fe75ae9ea31e93
Download zip
272.15 KB
MD5: 8bf21f8511ebdafb236625d9fb32dbe6
SHA-1: 803fb74235da17d7a841f7e8d018f4de11f22b3a
SHA-256: 9d60291e2a1da8430d01d9bfe095ca78f93aaa6afaacd9e75375625617e32c52
Release notes
First stable release: alert channel plugins (email/webhook), monthly rollup with retention purge, automatic data purge on account deletion, personal usage and site-wide summary blocks, and a full UX pass on both dashboards.
Added
- Add an alert channel plugin system with webhook delivery; email and webhook ship out of the box, third-party modules can add Slack/Teams without a patch (#3608699).
- Add a monthly rollup table and retention purge for the usage log; old raw rows are purged without losing historical dashboard totals (#3608701).
- Add a "Personal AI usage" block and profile tab so editors can watch their own monthly usage and quota (#3610799).
- Add a site-wide AI usage summary block (#3610798).
- Record per-call latency in
ai_metering_usage(#3604343). - Record the calling feature/context for each AI call and surface it in the usage log, enabling cost-per-feature (and eventually cost-per-agent) attribution (#3610924).
- List every provider an editor used that month in the usage report, instead of only the dominant one (#3610993).
- Track embeddings operations correctly; embeddings were previously never measured due to a type-mismatch crash in the post-generate subscriber (#3609167).
- Record local OpenAI-compatible endpoints (e.g. Ollama via the OpenAI-compatible API) as local instead of cloud, so they no longer consume the cloud token quota (#3609168).
- Extract dashboard charts into cacheable "top active" blocks (editors and roles), each behind its own lazy-builder placeholder (#3613099).
Changed
- Full UX pass on both dashboards: exposed filters replaced with searchable Choices.js widgets, export buttons consolidated into a single consistent dropbutton across all three surfaces (per-editor, by-role, usage log), copy and terminology cleanup ("Editor" renamed to "User", filter moved above KPIs), and SQL-level pagination on both dashboards (#3611743, #3613117).
- Remove stale "(preview)" framing from the by-role dashboard and its Reports-page entry (#3613068).
- Replace bare cloud/local Unicode glyphs with inline SVG icons, fixing tofu-box rendering on systems without full emoji font coverage (#3610909).
- Replace the
ReflectionPropertyreroute hack withdrupal/ai's publicgetPlugin()API; real fallback token counts are now logged (#3604247). - Rename "Usage Dashboard" to "Dashboard by User" and "drupal/ai Core Settings" to "Drupal AI Settings" on the hub page for naming consistency; shorten and update several hub page and menu link descriptions (#3613292).
Fixed
- Fix inert budget/threshold Save buttons on the per-editor dashboard (#3611735).
- Fix the per-user dashboard: sorting now applies in SQL before pagination (previously unordered, and the "Sort by" buttons only reordered whichever page was already visible); a stable secondary sort by user ID prevents reshuffling on ties (#3613214).
- Fix a duplicate empty-state message: an empty month showed both the top-active chart's own "no usage" message and the table's identical one; the chart section is now hidden when there are no rows for the selected month (#3613292).
Internal
- Break up
AiMeteringController::dashboard()andexportLogJson()into focused private methods (#3613069). - Extract export logic from
AiMeteringControllerinto a dedicatedUsageExportService(#3613150). - Extract the per-user dashboard sort logic duplicated between
QuotaManagerandRollupManagerinto a sharedDashboardSortTrait(#3613258). - Extract the lazy-builder placeholder logic duplicated between
AiMeteringControllerandAiMeteringByRoleControllerinto a sharedTopActiveLazyBuilderTrait(#3613262). - Fix remaining cspell, eslint, and stylelint CI warnings; the pipeline is now fully green, including previously
allow_failurejobs (#3608770). - Add a
## [1.0.0]CHANGELOG.md entry covering every issue merged since beta1 (#3613307).
Privacy
- Purge usage data on user deletion; reassign usage to the anonymous account on account cancellation with content retained (#3608700).
Contributors
Thanks to ultimike and marcus_johansson for issue reports and feedback that shaped this release.