From 39bc84705c601ba4f8a673814fd64b00af6255ae Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 28 May 2026 05:42:23 +0000 Subject: [PATCH 1/3] feat(bricks): CSS bundle selector in admin panel, remove legacy admin page - Add `css_bundle` plugin setting (essential / optimal / full) so admins can choose which SLASHED CSS file is loaded on the frontend - Add `slashed_bricks_get_css_bundle()` helper; update `slashed_bricks_get_css_url()` and `class-enqueue.php` to use the configured bundle instead of hardcoded optimal - Extend REST `/settings` endpoint to accept and persist `css_bundle`; both `html_font_size` and `css_bundle` are now optional (partial-update semantics) - Add CSS Bundle selector to BundleTab.svelte, send both settings on save - Promote Svelte admin page to the top-level SLASHED menu (slug `slashed-bricks`, position 59, dashicons-art); remove the legacy jQuery admin page from the load chain - Rebuild admin-app bundle https://claude.ai/code/session_01Gq4QNEeg6sk74oSWqatzH4 --- .../admin-app/src/components/BundleTab.svelte | 21 ++-- integrations/bricks/assets/admin-app/app.css | 2 +- integrations/bricks/assets/admin-app/app.js | 22 ++-- .../includes/class-admin-page-svelte.php | 100 ++++++------------ .../bricks/includes/class-enqueue.php | 5 +- .../bricks/includes/class-rest-controller.php | 37 ++++--- integrations/bricks/slashed-bricks.php | 48 ++++++--- 7 files changed, 115 insertions(+), 120 deletions(-) diff --git a/integrations/bricks/admin-app/src/components/BundleTab.svelte b/integrations/bricks/admin-app/src/components/BundleTab.svelte index 3e982b72..571ac486 100644 --- a/integrations/bricks/admin-app/src/components/BundleTab.svelte +++ b/integrations/bricks/admin-app/src/components/BundleTab.svelte @@ -1,11 +1,8 @@