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.

Command icon 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

marcus_johansson created an issue. See original summary.

codeitwisely’s picture

Assigned: Unassigned » codeitwisely

  • 489a24a5 committed on 1.0.x
    Issue #3610798 by codeitwisely: Add a site-wide AI usage summary block
    
codeitwisely’s picture

@marcus_johansson will be available in the next release

codeitwisely’s picture

Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.