From 567d1f226ba5ac9f74e8ce473aeaadbdb6c5cbe3 Mon Sep 17 00:00:00 2001 From: DanielS Date: Thu, 9 Jul 2026 16:12:57 +0200 Subject: [PATCH] feat(admin): add product dependencies and clean up labels - Add addProductDependency and removeProductDependency actions - Create DependencyPopover and integrate in live editor UI - Render green requirements and red exclusions badges - Remove technical parentheses from category checkbox labels --- shop/app/admin/layout.tsx | 4 +- .../wysiwyg/components/dependency-popover.tsx | 130 ++++++++++++++++++ shop/app/admin/wysiwyg/wysiwyg-client.tsx | 93 ++++++++++++- shop/lib/actions/products.ts | 58 ++++++++ 4 files changed, 280 insertions(+), 5 deletions(-) create mode 100644 shop/app/admin/wysiwyg/components/dependency-popover.tsx diff --git a/shop/app/admin/layout.tsx b/shop/app/admin/layout.tsx index 8c9bfbb..b53d84e 100644 --- a/shop/app/admin/layout.tsx +++ b/shop/app/admin/layout.tsx @@ -40,7 +40,7 @@ export default async function AdminLayout({ Admin Panel - +