usage capability percent#249
Merged
Merged
Conversation
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new "Plan limits" section to the usage page, providing visibility into live capability usage versus plan limits for organizations. It includes a new backend API endpoint to aggregate and serve this data, frontend integration to display progress bars for each measurable capability, and comprehensive tests. The changes touch both backend (API, logic, and tests) and frontend (API integration and UI).
Backend: Capability usage aggregation and API
capability-usage.ts) that aggregates current usage and configured caps for all measurable capabilities (resource limits and consumption quotas), excluding boolean gates and config ceilings likeaudit.retention_days. Usage is computed using existing logic for resource counts and quota consumption, and unlimited caps are represented asnull.GET /api/v1/usage/capabilitiesendpoint that returns the per-capability usage and limit for the authenticated organization, with validation and membership checks. [1] [2] [3]Frontend: Usage page enhancements
Documentation
CHANGELOG.mdwith a detailed entry describing the new capability usage feature, its backend and frontend behavior, and its exclusions.