diff --git a/CHANGES.md b/CHANGES.md index ee2b39900..8164f0a6b 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -2,6 +2,10 @@ ## 2.1.1 +### :sparkles: New features + +- Consolidate templates new order and naming [Taiga #8392](https://tree.taiga.io/project/penpot/task/8392) + ### :bug: Bugs fixed - Fix pencil loader [Taiga #8348](https://tree.taiga.io/project/penpot/issue/8348) diff --git a/backend/resources/app/onboarding.edn b/backend/resources/app/onboarding.edn index 20c9f9fc3..d0810dd9f 100644 --- a/backend/resources/app/onboarding.edn +++ b/backend/resources/app/onboarding.edn @@ -1,4 +1,16 @@ -[{:id "tutorial-for-beginners" +[{:id "wireframing-kit" + :name "Wireframe library" + :file-uri "https://github.com/penpot/penpot-files/raw/binary-files/wireframing-kit.penpot"} + {:id "prototype-examples" + :name "Prototipe template" + :file-uri "https://github.com/penpot/penpot-files/raw/binary-files/prototype-examples.penpot"} + {:id "plants-app" + :name "UI mockup example" + :file-uri "https://github.com/penpot/penpot-files/raw/binary-files/Plants-app.penpot"} + {:id "penpot-design-system" + :name "Design system example" + :file-uri "https://github.com/penpot/penpot-files/raw/binary-files/Penpot-Design-system.penpot"} + {:id "tutorial-for-beginners" :name "Tutorial for beginners" :file-uri "https://github.com/penpot/penpot-files/raw/binary-files/tutorial-for-beginners.penpot"} {:id "lucide-icons" @@ -7,12 +19,6 @@ {:id "font-awesome" :name "Font Awesome" :file-uri "https://github.com/penpot/penpot-files/raw/binary-files/Font-Awesome.penpot"} - {:id "plants-app" - :name "Plants app" - :file-uri "https://github.com/penpot/penpot-files/raw/binary-files/Plants-app.penpot"} - {:id "wireframing-kit" - :name "Wireframing Kit" - :file-uri "https://github.com/penpot/penpot-files/raw/binary-files/wireframing-kit.penpot"} {:id "black-white-mobile-templates" :name "Black & White Mobile Templates" :file-uri "https://github.com/penpot/penpot-files/raw/binary-files/Black-White-Mobile-Templates.penpot"} @@ -30,10 +36,4 @@ :file-uri "https://github.com/penpot/penpot-files/raw/binary-files/Open-Color-Scheme.penpot"} {:id "flex-layout-playground" :name "Flex Layout Playground" - :file-uri "https://github.com/penpot/penpot-files/raw/binary-files/Flex-Layout-Playground.penpot"} - {:id "prototype-examples" - :name "Prototipe template" - :file-uri "https://github.com/penpot/penpot-files/raw/binary-files/prototype-examples.penpot"} - {:id "penpot-design-system" - :name "Design system example" - :file-uri "https://github.com/penpot/penpot-files/raw/binary-files/Penpot-Design-system.penpot"}] + :file-uri "https://github.com/penpot/penpot-files/raw/binary-files/Flex-Layout-Playground.penpot"}] diff --git a/frontend/src/app/main/data/dashboard.cljs b/frontend/src/app/main/data/dashboard.cljs index 02fb05be4..6e5e53d1a 100644 --- a/frontend/src/app/main/data/dashboard.cljs +++ b/frontend/src/app/main/data/dashboard.cljs @@ -299,19 +299,7 @@ (ptk/reify ::libraries-fetched ptk/UpdateEvent (update [_ state] - (let [templates-a-b-test? (cf/external-feature-flag "dashboard-01" "test") - remove-ids (if templates-a-b-test? - #{"wireframing-kit" "prototype-examples" "plants-app" "penpot-design-system"} - #{"prototype-examples" "penpot-design-system"}) - libraries (cond->> libraries - :always - (remove #(contains? remove-ids (:id %))) - templates-a-b-test? - (concat [{:id "wireframing-kit", :name "Wireframe library"} - {:id "prototype-examples", :name "Prototype template"} - {:id "plants-app", :name "UI mockup example"} - {:id "penpot-design-system", :name "Design system example"}]))] - (assoc state :builtin-templates libraries))))) + (assoc state :builtin-templates libraries)))) (defn fetch-builtin-templates []