Clarify schema-safe choice icon values - #8
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Warning Review limit reached
More reviews will be available in 49 minutes and 44 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits. 🚦 How do rate limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan refill rate. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, the refill rate gradually slows as usage increases. The highest same-day bursts are limited more strictly. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
🤖 Augment PR SummarySummary: This PR clarifies what “schema-safe” choice icons look like and tightens the exported typing to steer users toward portable, serializable configurations. Changes:
Technical Notes: Runtime behavior remains the same (image detection is prefix-based); this change is primarily documentation and type-surface guidance. 🤖 Was this summary useful? React with 👍 or 👎 |
| * Code-defined options may pass a React element. | ||
| */ | ||
| icon?: string | ReactElement; | ||
| }; |
There was a problem hiding this comment.
FieldsChoice.icon is narrowed from ReactNode to string | ReactElement, which is a potentially breaking public type change for TS consumers (e.g., icons previously typed as ReactNode values like arrays or null will no longer typecheck). If this is intentional, it may be worth treating as a semver-relevant change or explicitly calling out the incompatibility in release notes.
Severity: medium
🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage.
Motivation
Description
### Choice Iconssection that documents schema-safe string tokens, image-source strings, and code-only React elements, and includes JSON examples.FieldsChoice.iconinsrc/types.tstostring | ReactElementand add inline documentation explaining supported serialized shapes versus code-defined icons.Testing
npm run typecheckwhich succeeded.npm run check(publint/format checks) which succeeded.npm run buildwhich produced thedist/artifacts successfully.Codex Task
Closes #5