AI credits: Warn at 80% usage in the sidebar and above the Classic composer - #4722
Draft
gcsecsey wants to merge 3 commits into
Draft
AI credits: Warn at 80% usage in the sidebar and above the Classic composer#4722gcsecsey wants to merge 3 commits into
gcsecsey wants to merge 3 commits into
Conversation
gcsecsey
marked this pull request as draft
August 28, 2026 17:44
gcsecsey
force-pushed
the
gcsecsey/ai-credits-usage-notices
branch
from
August 31, 2026 11:57
7e845fe to
cb27ce7
Compare
1 task
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.
Related issues
How AI was used in this PR
I used Opus 5 for implementation and tests.
Proposed Changes
This PR adds a dismissible warning at 80% to the sidebar, with a purchase CTA. It is also shown again at these points:
Classic has no sidebar cards, so its warning sits above the composer instead. It has no composer strip either, so that one slot covers the 90% step as well.
The copy is the approved wording from the exploration in #4446. Still I'd appreciate a final look @shaunandrews.
Testing Instructions
Use the balance setup steps in 236947-ghe-Automattic/wpcom.
At 83% usagewithAdd AI credits, and the composer shows no strip.At 92% usage, and the sidebar shows nothing. This is the duplication the issue is about.Check both color schemes, a narrow window, and an RTL locale such as Arabic.
Pre-merge Checklist