Part (c), item 4 of t72: the customer sees their usage.
## What changes
- **Agent:** `GET /api/v1/metering/usage` (tenant-scoped) returns:
- `month` (Europe/Berlin);
- `pruefungen` and `prueftage` from the counters;
- `extra_targets` now, and `extra_peak`;
- the plan's `included_targets`, `monthly_pruefungen` and `prueftag_cap`;
- `plan_known`, which is false when the registry didn't answer. The limits are then unknown, not unlimited.
- **Dashboard:** one row under the targets page header:
- for example "Nutzung in diesem Monat · 37 von 100 Prüfungen · 1 Prüftag (Limit 5) · 2 zusätzliche Prüfobjekte";
- Enterprise shows "… Prüfungen, unbegrenzt";
- an unknown plan shows only "… gezählte Prüfungen";
- the hover text says what counts.
- The `extra_peak` field gets its stored value once #929 is merged. Until then the summary uses the current count as the floor.
## Tests
- **Texts:** the wording for each case.
- **Dashboard:** which lines show for Standard, Enterprise and an unknown plan.
- **Mongo:** the `metering_counters` integration test now also reads the month summary.
Not built locally, per the CI-only rule.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
- GET /api/v1/metering/usage: the tenant's counted Prüfungen and
Prüftage this month (Europe/Berlin), the extra targets now and the
month's peak, with the plan's limits and whether the plan could be
read.
- The targets page shows it in one row: "37 von 100 Prüfungen",
Prüftage with the cap, and the extra targets. Enterprise reads
"unbegrenzt"; an unknown plan shows only the count, never a limit it
cannot know. The hover text says what counts.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Part (c), item 4 of t72: the customer sees their usage.
What changes
GET /api/v1/metering/usage(tenant-scoped) returns:month(Europe/Berlin);pruefungenandprueftagefrom the counters;extra_targetsnow, andextra_peak;included_targets,monthly_pruefungenandprueftag_cap;plan_known, which is false when the registry didn't answer. The limits are then unknown, not unlimited.extra_peakfield gets its stored value once #929 is merged. Until then the summary uses the current count as the floor.Tests
metering_countersintegration test now also reads the month summary.Not built locally, per the CI-only rule.
🤖 Generated with Claude Code
43a974037bto5262cd447a5262cd447ato686b8b0863