Closed (fixed)
Project:
AI Metering
Version:
1.0.0-alpha1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
19 Jun 2026 at 14:52 UTC
Updated:
6 Jul 2026 at 04:15 UTC
Jump to comment: Most recent
Two issues in the editor breakdown table on the AI Metering dashboard:
log_base_url is computed in the controller but is not declared in hook_theme(), so the value never reaches the template and the {% if log_base_url %} guard is always false.data-col indices were not updated when the Provider column was added, so clicking "Calls" sorts by Provider, "Cost" sorts by Tokens, and "Quota" sorts by Cost./admin/reports/ai-metering with at least one usage row.
Declare log_base_url in the ai_metering_dashboard theme variables so the Details link reaches the template.
Correct the data-col indices on the sort buttons and table headers to match the current column order (Provider is index 1, Calls is 2, Cost is 4, Quota is 5).
log_base_url to the ai_metering_dashboard theme variables in hook_theme().data-col indices in the template.Yes, the Details link now appears in each editor row; sort buttons target the correct columns.
N/A
N/A
N/A
Comments
Comment #2
codeitwisely commentedComment #13
codeitwisely commented