fix: update bundle set to optimal/optimal-components/optimal-utilities/full - #77
Conversation
|
Warning Review limit reached
More reviews will be available in 1 minute and 17 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 ignored due to path filters (2)
📒 Files selected for processing (13)
✨ 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 |
PR Summary by QodoFix plugin to use new 4-bundle framework set (drop 'essential') Description
Diagram
High-Level Assessment
Files changed (7)
|
…k set The framework no longer ships a slashed.essential.css bundle. The four built bundles are now optimal, optimal-components, optimal-utilities, and full (matching bundle.config.json). This commit updates every location that referenced the old three-bundle set: - class-settings.php: ALLOWED_BUNDLES updated; get_css_bundle() migrates stored 'essential' → 'optimal' transparently for existing users - class-framework-updater.php: BUNDLES download list updated - class-admin.php: bundle picker replaced with 4 cards in a 2×2 grid; descriptions rewritten to accurately match what each bundle contains - readme.txt: CSS bundles description section updated - scripts/sync-plugin-dist.js: BUNDLES list updated - scripts/update-framework.js: BUNDLES list + comment updated - scripts/verify-sync.js: DIST_BUNDLES list + comment updated - dist/: essential.css removed; optimal-components.css and optimal-utilities.css added (both stamped v0.6.13)
b854f35 to
894505e
Compare
Code Review by Qodo
1.
|
- class-token-store.php: ALLOWED_CSS_BUNDLES updated to new 4-bundle set - class-rest-controller.php: import handler migrates 'essential'→'optimal' before validating against the updated allowlist - slashed-bricks.php: standalone get_css_bundle() migrates 'essential'→ 'optimal' explicitly; docblock updated - slashed-gutenberg.php: SLASHED_GUTENBERG_ALLOWED_BUNDLES updated; standalone get_css_bundle() adds 'essential'→'optimal' migration; docblock updated - phpstan-bootstrap.php: SLASHED_GUTENBERG_ALLOWED_BUNDLES placeholder updated to match the real constant's new value - license.txt: third-party file list updated to the four shipped bundles
Summary
slashed.essential.cssand replaced the three-bundle set (essential,optimal,full) with four bundles:optimal,optimal-components,optimal-utilities,full. The plugin had not been updated, so the updater was trying to download a non-existent asset and the settings allowed an invalid bundle value.get_css_bundle()transparently migrates any stored'essential'→'optimal'at read time; no user action or page-save required.Files changed
includes/class-settings.phpALLOWED_BUNDLESupdated;'essential'→'optimal'migration addedincludes/class-framework-updater.phpBUNDLESdownload list updatedincludes/class-admin.phpreadme.txtscripts/sync-plugin-dist.jsBUNDLESlist updatedscripts/update-framework.jsBUNDLESlist + JSDoc comment updatedscripts/verify-sync.jsDIST_BUNDLESlist + comment updatedTest plan
'essential'stored in options → loadsslashed.optimal.csswithout any settings savescripts/verify-sync.jspasses against a synced dist/slashed.essential.cssremains anywhere in the pluginGenerated by Claude Code