Skip to content

Show Studio Code AI usage quota in the agentic Usage settings tab - #4296

Merged
bcotrim merged 1 commit into
agentic-settings-usage-tabfrom
show-ai-quota-in-agentic-usage-tab
Jul 22, 2026
Merged

Show Studio Code AI usage quota in the agentic Usage settings tab#4296
bcotrim merged 1 commit into
agentic-settings-usage-tabfrom
show-ai-quota-in-agentic-usage-tab

Conversation

@sejas

@sejas sejas commented Jul 22, 2026

Copy link
Copy Markdown
Member

Related issues

  • Related to the agentic Settings Usage tab work on agentic-settings-usage-tab

How AI was used in this PR

AI assisted with porting the quota logic from the legacy settings panel and with automated review passes (simplification + code review); all changes were verified with typecheck, lint, and unit tests.

Proposed Changes

  • Add AI Usage progress bar to Usage tab

Testing Instructions

  1. npm start with the agentic UI enabled and log in to a WordPress.com account that has a Studio Code cost cap.
  2. Open Settings → Usage: the AI credits section should show "X% of monthly limit used (resets on DATE)" with a progress bar reflecting the percentage.
  3. Go offline (e.g. disable network): the section should show "You're currently offline".
  4. Verify the legacy settings dialog (classic UI → Settings) still shows the same quota line — it now reads the schema from the shared module.
Before After
Screenshot 2026-07-22 at 11 15 26 Screenshot 2026-07-22 at 11 48 10

Pre-merge Checklist

  • Have you checked for TypeScript, React or other console errors?
@sejas sejas self-assigned this Jul 22, 2026
@sejas
sejas requested a review from bcotrim July 22, 2026 10:53
@sejas sejas mentioned this pull request Jul 22, 2026
1 task

@bcotrim bcotrim left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the adjustment @sejas 🙇

@bcotrim
bcotrim merged commit daebb08 into agentic-settings-usage-tab Jul 22, 2026
11 checks passed
@bcotrim
bcotrim deleted the show-ai-quota-in-agentic-usage-tab branch July 22, 2026 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

2 participants