feat(site): show total agent hours consumption on the licenses page - #27953
Draft
jaaydenh wants to merge 1 commit into
Draft
feat(site): show total agent hours consumption on the licenses page#27953jaaydenh wants to merge 1 commit into
jaaydenh wants to merge 1 commit into
Conversation
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.
Adds a "Total agent hours" consumption panel to the Licenses page, surfacing the
agent_runtime_hoursentitlement introduced in #27796.The new
TotalAgentHoursCardrenders full width directly above the Agent Workspace Builds panel. It shows a usage bar with Used/Limit labels and an info tooltip next to the title. The bar color and tooltip copy track the same thresholds the backend uses for license warnings: green below the soft limit, orange once usage reaches the soft limit, and red once usage reaches the purchased allocation (values at or beyond the threshold count as reached, matchingappendAgentRuntimeHoursWarning). When a soft limit exists, the tooltip states the actual soft-limit percentage computed fromsoft_limit / limit. The panel is hidden entirely when the feature is disabled, which is how the backend reports a zero-hour allocation.Storybook stories cover the green/orange/red states, the capped over-allocation bar, missing usage data, the hidden state, the invalid-limit error state, and each tooltip message via play interactions. The page view story verifies the panel renders above Agent Workspace Builds.
Stacked on #27796.
closes CODAGT-855.