Implemented the Plan Detail view to display consumption overages or forfeitures

This commit is contained in:
2026-09-22 19:17:53 -03:00
parent ea164cdcd6
commit 9ac5ffb11d
22 changed files with 1221 additions and 25 deletions

View File

@@ -4,6 +4,7 @@ function createConsumptionTrendController({
DEFAULT_CONSUMPTION_TREND_PERIOD,
appendBackgroundRequestLog,
consumptionTrendState,
createPlanDetailSection,
renderConsumptionTrendChart,
requestConsumerTokenServiceOnce,
sendRuntimeMessage,
@@ -44,7 +45,7 @@ function createConsumptionTrendController({
const chart = document.createElement("div");
chart.className = "opportunities-extension-consumption-chart";
chart.setAttribute("aria-live", "polite");
header.append(periodControls);
header.append(createPlanDetailSection(plan), periodControls);
section.append(header, chart);
return section;
}