Redesign plugin settings UI and add version rollback feature - #4
Conversation
…tabs - Bundle section now shows detailed per-tier feature cards (layers, tokens, form styles, components etc.) instead of vague one-liners - CSS delivery: adds "Install a previous version" rollback picker backed by a new slashed_list_framework_versions AJAX endpoint; the existing download handler already accepts a version param, so the infrastructure was already there - WP sidebar: "SLASHED" first submenu renamed to "Plugin Settings"; "Tokens" renamed to "Design Settings" - Variables and Classes tabs removed — Cheatsheet already covers both with search + filter toggle between Variables / Classes / All
ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Free Run ID: 📒 Files selected for processing (7)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughRedesigns admin settings: bundle selector becomes selectable cards; adds version rollback UI and backend AJAX for version listing; consolidates Variables/Classes into Cheatsheet and renames Tokens to Design Settings; adds a Hooks admin page; adds a WCAG palette optimizer in the Bricks admin app. ChangesSettings Page Redesign & Admin Organization
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Note 🎁 Summarized by CodeRabbit FreeYour organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting https://app.coderabbit.ai/login. Comment |
Bundle tab removed from SPA — HTML font size and class hints settings now live in the Plugin Settings PHP page alongside the other site config. Hooks tab removed from SPA — replaced by a standalone PHP subpage (Filter Hooks) that renders the full hook reference without needing the Svelte bundle to be present. Cheatsheet header now shows the active bundle name with a link to Plugin Settings to change it. WCAG tab gains a Palette Optimizer: click "Suggest accessible palette" and the tool finds the most accessible BASE, Neutral, and Action values by searching HSL lightness space while keeping Primary/Secondary/Tertiary fixed. Results show proposed swatches + contrast ratios; "Apply to tokens" writes them directly via the REST API.
Summary
This PR significantly improves the SLASHED plugin's admin interface by redesigning the CSS bundle selector with a modern card-based layout, adding a version rollback feature, and consolidating design token documentation tabs.
Key Changes
Admin Settings UI Redesign
Version Rollback Feature
ajax_list_framework_versions()to fetch available release tags from jsdelivrMenu & Navigation Updates
Code Quality
Implementation Details
&) viawp_kses()__()andesc_html()https://claude.ai/code/session_01F6yRLAhfRuUGheCRTLfEFG
Summary by CodeRabbit
New Features
Changes