Problem/Motivation
The AI Dashboard module aggregates AI-related overviews in one place, but ai_metering's key numbers are only visible on its own report pages (/admin/reports/ai-metering). There is no way to surface metering data on the dashboard, so cost visibility - the module's core value - is missing from the central AI overview.
Proposed Resolution
Add a block plugin (e.g. AiMeteringSummaryBlock) that renders the most important metrics in a single compact row: total calls, total tokens, estimated cost in the configured display currency, and quota utilisation for the current month. Reuse the existing CostReporter and QuotaManager services rather than querying the tables directly, and link the block to the full dashboard. Since it is a plain block, ai_dashboard can place it without a hard dependency; add a kernel test covering the block build.
AI Assistance
Yes, AI was used to explore the issue.
Issue fork ai_metering-3610798
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
codeitwisely commentedComment #5
codeitwisely commented@marcus_johansson will be available in the next release
Comment #6
codeitwisely commented