From 991a0d85406e267d1e624fa8975936a88a97b231 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Thu, 2 Apr 2026 17:23:39 +0000 Subject: [PATCH] :recycle: Convert debug shape info components to * suffix Rename shape-link, cells-render, debug-shape-attr to * suffix in debug_shape_info.cljs; update all internal call sites from [:& ...] to [:> ...]. --- .../ui/workspace/sidebar/debug_shape_info.cljs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/frontend/src/app/main/ui/workspace/sidebar/debug_shape_info.cljs b/frontend/src/app/main/ui/workspace/sidebar/debug_shape_info.cljs index 69ce4ca670..7947c08423 100644 --- a/frontend/src/app/main/ui/workspace/sidebar/debug_shape_info.cljs +++ b/frontend/src/app/main/ui/workspace/sidebar/debug_shape_info.cljs @@ -64,13 +64,13 @@ :points :points-render :layout-grid-cells :cells-render}) -(mf/defc shape-link +(mf/defc shape-link* [{:keys [id objects]}] [:a {:class (stl/css :shape-link) :on-click #(st/emit! (dw/select-shape id))} (dm/str (dm/get-in objects [id :name]) " #" id)]) -(mf/defc cells-render +(mf/defc cells-render* [{:keys [cells objects]}] [:div {:class (stl/css :cells-render)} (for [[id cell] cells] @@ -87,20 +87,20 @@ [:div {:class (stl/css :cell-shape)} (if (empty? (:shapes cell)) [:div ""] - [:& shape-link {:id (first (:shapes cell)) :objects objects}])]])]) + [:> shape-link* {:id (first (:shapes cell)) :objects objects}])]])]) -(mf/defc debug-shape-attr +(mf/defc debug-shape-attr* [{:keys [attr value objects]}] (case (get custom-renderer attr) :shape-link - [:& shape-link {:id value :objects objects}] + [:> shape-link* {:id value :objects objects}] :shape-list [:div {:class (stl/css :shape-list)} (for [id value] - [:& shape-link {:key (dm/str "child-" id) - :id id :objects objects}])] + [:> shape-link* {:key (dm/str "child-" id) + :id id :objects objects}])] :matrix-render [:div (dm/str (gmt/format-precision value 2))] @@ -114,7 +114,7 @@ [:div {:key (dm/str "point-" idx)} (dm/fmt "(%, %)" (:x point) (:y point))])] :cells-render - [:& cells-render {:cells value :objects objects}] + [:> cells-render* {:cells value :objects objects}] [:div {:class (stl/css :attrs-container-value)} (str value)])) @@ -147,4 +147,4 @@ :key (dm/str "att-" idx "-" attr)} [:div {:class (stl/css :attrs-container-name)} (d/name attr)] - [:& debug-shape-attr {:attr attr :value value :objects objects}]])))]]))])) + [:> debug-shape-attr* {:attr attr :value value :objects objects}]])))]]))]))