From 27ac0b74697b15199f3629800a665a5e89824965 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?andr=C3=A9s=20gonz=C3=A1lez?= Date: Fri, 15 May 2026 10:53:43 +0200 Subject: [PATCH] :bug: Unify layout creation telemetry for plugins and MCP (#9654) * :bug: Unify layout creation telemetry for plugins and MCP * :books: Update changelog for version 2.15.4 Signed-off-by: Andrey Antukh --------- Signed-off-by: Andrey Antukh Co-authored-by: Andrey Antukh --- CHANGES.md | 6 ++++++ frontend/src/app/plugins/shape.cljs | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index b37c175a45..c34b2ade88 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,11 @@ # CHANGELOG +## 2.15.4 (Unreleased) + +### :bug: Bugs fixed + +- Emit `create-shape-layout` for flex/grid layout creation from plugins and MCP (same event as workspace) [Github #9652](https://github.com/penpot/penpot/issues/9652) + ## 2.15.3 ### :bug: Bugs fixed diff --git a/frontend/src/app/plugins/shape.cljs b/frontend/src/app/plugins/shape.cljs index 0aeb837589..2725a58e9f 100644 --- a/frontend/src/app/plugins/shape.cljs +++ b/frontend/src/app/plugins/shape.cljs @@ -1017,7 +1017,7 @@ :else (do (st/emit! (dwsl/create-layout-from-id id :flex :from-frame? true :calculate-params? false) - (se/event plugin-id "create-layout" :layout "flex")) + (se/event plugin-id "create-shape-layout" :layout "flex")) (flex/flex-layout-proxy plugin-id file-id page-id id))))) :addGridLayout @@ -1032,7 +1032,7 @@ :else (do (st/emit! (dwsl/create-layout-from-id id :grid :from-frame? true :calculate-params? false)) - (se/event plugin-id "create-layout" :layout "grid") + (se/event plugin-id "create-shape-layout" :layout "grid") (grid/grid-layout-proxy plugin-id file-id page-id id))))) ;; Make masks for groups