feat(site/src/pages/DeploymentSettingsPage/LicensesSettingsPage): show agent usage in minutes and restructure license product grid - #28608
Draft
tracyjohnsonux wants to merge 3 commits into
Draft
Conversation
…w agent usage in minutes and restructure license product grid
…standard border color for dashed agents cards
…er agents after AI governance
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.
Visual updates to the licenses page (
/deployment/licenses), frontend only. Agent usage is now displayed in minutes instead of hours, the per-license Products area uses a responsive 2-up grid, agents-only licenses report Minutes in the license row, every license shows a Coder Agents trial or community card when it has no agents grant, and legacy AI Governance seats render inside Products instead of a separate Add-ons section.Changes
flex-wrap+min-w-[320px] flex-1cards (which stretched a wrapped card to full width) withgrid grid-cols-1 lg:grid-cols-2, so cards stay 2-up and only stack at narrow widths.floor(actual_ms / 60_000); allocation and thresholds = claim hours × 60. Copy updated ("Total Agent minutes", "Agent minutes used", "Agent minutes exceeded").TotalAgentHoursCardrenamed toTotalAgentMinutesCardwith bar math and warnings converted.user_limitclaim shows a Minutes column (used / allocation,Unlimitedfor-1) in place of Users, hides the Coder Workspaces card, and labels itself "Coder Agents"./deployment/premium, "View docs").No API or backend changes; all values derive from existing entitlement fields (
actual_ms) and license JWT claims.Testing
pnpm check(biome),tsc -p ., and knip pass.LicenseCard.test.tsx(3 tests) and the Storybook vitest project for the directory (12 files, 101 tests) pass, including new stories for the licensed-minutes, agents-only, trial, and community states.Implementation notes and decisions
LicensesSettingsPage.tsxquery wiring, which this PR does not touch. feat: report Community Agent Time usage #28489 (community Agent Time usage) is the backend change that populatesactual_mswithout ausage_periodon unlicensed deployments; the community/trial cards consume that as-is. No file conflicts.agent_runtime_hours_allocation > 0or-1) and carries nouser_limitclaim. A license bundling seats and agent hours keeps the Users column (covered by theAgentHoursWithSeatsKeepsUsersColumnstory).lgviewport breakpoint; below that the settings content area is too narrow for two 320px cards.TotalAgentHoursCard→TotalAgentMinutesCard(component, file, stories) so the name matches what it renders.🤖 This PR was generated by Coder Agents on behalf of @tracyjohnsonux.