Condense source CSS comments to concise headers and section labels - #396
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 31 minutes and 36 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 review availability. 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, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (28)
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
- Revert badge-essential and badge-optimal sizes to pre-PR values (56.2/64.1 kB); changes were made without running npm run build so the computed values were wrong - Restore truncated .sr-only atomic contract note in accessibility.css - Add .sf-focus-shadow !important rationale and forced-colors WCAG 2.4.7 note - Restore a:link WebKit UA specificity trap comment in base.css - Add .sf-not-prose specificity exception note in macros.css - Fix 4-space → 2-space indentation for standalone class rules in macros.css and layout.css - Add .sf-cq, .sf-imposter RTL, and @container var() notes in layout.css - Add .is-disabled cursor inheritance note in states.css - Add autofill WebKit dark-mode note and chevron FieldText note in forms.css - Add LumLocker and section-theming light-dark() notes in themes.css - Add animation-duration unconditional note in motion.css Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Pdaz7HQGBUBm59X7AU4Qep
651ccc3 to
616ea4b
Compare
PR Summary by QodoCondense CSS source comments and preserve API docs via metadata-first index generation Description
Diagram
High-Level Assessment
Files changed (28)
|
Code Review by Qodo
Context used✅ Compliance rules (platform):
5 rules 1.
|
…IVIDER_RUN collectComments() marked a comment as isHeader only when it both matched "SLASHED —" AND contained a long divider run. Old verbose banners had divider runs; new condensed headers do not, so they were classified as plain notes and could become the nearest-comment description for the first class/token in a file. Fix: drop the DIVIDER_RUN requirement from isHeader. "SLASHED —" at offset 0 (start < 4) is sufficient to identify a file-header comment and exclude it from contextAt() lookups. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Pdaz7HQGBUBm59X7AU4Qep
Summary
Streamlined all source CSS file headers and inline comments to follow a new concise policy. Removed verbose architectural explanations, usage examples, and detailed rationales from source files, moving that content to dedicated documentation (new
docs/source-comment-policy.md). Source comments now serve as quick reference only; full API documentation is maintained separately indocs/llm-guide.mdand the configurator.Key changes
/* Focus */instead of multi-line focus documentation)docs/source-comment-policy.mdto codify the approach and redirect readers to authoritative docsscripts/gen-api-index.jsto prefer curated metadata, fall back to previous index, then use concise source banners—preserving public API docs without requiring verbose source commentscore/macros.css,core/layout.css,core/base.css,core/reset.css,core/tokens.css,core/tokens.layout.css,core/tokens.macros.css,core/accessibility.css,core/states.css,core/themes.css,core/motion.css,core/print.css,core/layers.css,optional/theme-example.css,optional/components.css,optional/forms.css,optional/utilities.css,optional/overrides-example.css,optional/config-example.css,optional/tokens.components.css,optional/tokens.palette.css,optional/legacy.cssImplementation details
docs/llm-guide.mdand the configurator UIhttps://claude.ai/code/session_01Pdaz7HQGBUBm59X7AU4Qep