Repository navigation
Conversation
…or it The Seer credit check now says why it denied credit. useSeerCreditCheck returns the denialReason, and every surface passes it to the out-of-credits CTA, which now requires it. When the reason is daily_cap_exceeded, or a billing member has auto-reload on, the notice says the org hit its daily usage limit and when the limit resets, at the next midnight UTC. Billing members configure auto-reload. Members get no button, since asking admins for credits doesn't lift the limit. This replaces the copy for orgs whose auto-reload ran out of top-ups. In the chat, Autofix cards send their denial reason with their out-of-credits report, so the chat's single notice shows the daily limit too. Autofix's out-of-credits copy now says auto-reload and daily usage limit, instead of auto top-up and daily token limit. Refs CW-3098 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Story previewsPreview the stories changed in this PR on the Vercel deployment:
Preview deployment: https://sentry-omh1nu6az.sentry.dev |
This branch was successfully deployed
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.
The Seer credit check now says why it denied credit (
denialReason, from #130857), and the out-of-credits notice uses it. When an org hits its daily usage limit, the notice says so and when the limit resets, instead of telling people to add credits.daily_cap_exceeded): "Your organization hit its daily usage limit, so you cannot continue messaging Seer.", then "This will reset at …", the next midnight UTC in the viewer's timezone. Billing members get Configure auto-reload, where the limit is set. Members are told to ask their admin and get no button, since "Contact Admin" asks for credits, which won't lift the limit. Autofix gets the same notice for its own steps.denialReasonis now a required prop ofSeerOutOfCreditsCta, so every surface passes its own check's reason: the chat, the Autofix tab and drawer, the issue sidebar, the issue preview and Autofix cards. In the chat, Autofix cards send their reason with the out-of-credits report they already make, so the chat's single notice shows the limit too.The design also shows today's usage ("Daily usage limit 950/1000 credits"). No endpoint returns that yet, so it's left for a follow-up that adds it to the Seer wallet endpoint.
The chat shots are from a local devserver with the credit check mocked to deny; the rest are from the notice's stories. Before is master.
The daily usage limit notices are new: billing member in the chat, member in the chat, and billing member in Autofix.
Refs CW-3098
🤖 Generated with Claude Code