mirror of
https://github.com/penpot/penpot.git
synced 2025-03-09 14:21:42 -05:00
✨ Do not show the templates modal on onboarding
This commit is contained in:
parent
3d8f757712
commit
75a8f85ebb
8 changed files with 38 additions and 42 deletions
|
@ -19,7 +19,7 @@
|
|||
it("choose solo option", () => {
|
||||
cy.getBySel("onboarding-welcome-title").should("exist");
|
||||
cy.getBySel("fly-solo-op").click();
|
||||
cy.getBySel("onboarding-templates-title").should("exist");
|
||||
cy.getBySel("empty-placeholder").should("exist");
|
||||
});
|
||||
|
||||
it("choose team option and cancel", () => {
|
||||
|
@ -49,7 +49,7 @@
|
|||
cy.get("input[type=submit]").first().click();
|
||||
cy.get("#email").should("exist");
|
||||
cy.get(".skip-action").click();
|
||||
cy.getBySel("onboarding-templates-title").should("exist");
|
||||
cy.getBySel("empty-placeholder").should("exist");
|
||||
});
|
||||
|
||||
it("choose team option, set team name and invite", () => {
|
||||
|
@ -61,7 +61,7 @@
|
|||
cy.get("#email").should("exist");
|
||||
cy.get("#email").type("test@test.com");
|
||||
cy.get("input[type=submit]").first().click();
|
||||
cy.getBySel("onboarding-templates-title").should("exist");
|
||||
cy.getBySel("empty-placeholder").should("exist");
|
||||
});
|
||||
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"autoprefixer": "^10.4.2",
|
||||
"cypress": "^9.4.1",
|
||||
"cypress": "^9.5.0",
|
||||
"cypress-file-upload": "^5.0.8",
|
||||
"gettext-parser": "^4.2.0",
|
||||
"gulp": "4.0.2",
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
[:div.grid-item]]
|
||||
|
||||
(true? default?)
|
||||
[:div.grid-empty-placeholder.drafts
|
||||
[:div.grid-empty-placeholder.drafts {:data-test "empty-placeholder"}
|
||||
[:div.text
|
||||
[:& i18n/tr-html {:label "dashboard.empty-placeholder-drafts"}]]]
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
;; the onboarding templates modal.
|
||||
on-fly-solo
|
||||
(fn []
|
||||
(tm/schedule 400 #(st/emit! (modal/show {:type :onboarding-templates}))))
|
||||
(tm/schedule 400 #(st/emit! (modal/hide))))
|
||||
|
||||
;; When user choices the option of `team up`, we proceed to show
|
||||
;; the team creation modal.
|
||||
|
@ -121,14 +121,12 @@
|
|||
on-success
|
||||
(mf/use-callback
|
||||
(fn [_form response]
|
||||
(let [project-id (:default-project-id response)
|
||||
team-id (:id response)]
|
||||
(let [team-id (:id response)]
|
||||
(st/emit!
|
||||
(modal/hide)
|
||||
(rt/nav :dashboard-projects {:team-id team-id}))
|
||||
(tm/schedule 400 #(st/emit!
|
||||
(modal/show {:type :onboarding-templates
|
||||
:project-id project-id}))))))
|
||||
(modal/hide))))))
|
||||
|
||||
on-error
|
||||
(mf/use-callback
|
||||
|
|
|
@ -74,7 +74,7 @@
|
|||
:data-test "close-templates-btn"} i/close]]
|
||||
|
||||
[:div.modal-content
|
||||
[:h3 {:data-test "onboarding-templates-title"} (tr "onboarding.templates.title")]
|
||||
[:h3 (tr "onboarding.templates.title")]
|
||||
[:p (tr "onboarding.templates.subtitle")]
|
||||
|
||||
[:div.templates
|
||||
|
|
|
@ -257,9 +257,8 @@ msgstr "You still have no files here"
|
|||
#, markdown
|
||||
msgid "dashboard.empty-placeholder-drafts"
|
||||
msgstr ""
|
||||
"There are no files here yet. If you want to try some templates you can go "
|
||||
"to the [Libraries & templates "
|
||||
"section](https://penpot.app/libraries-templates.html)"
|
||||
"Oh no! You have no files yet! If you want to try with some templates go "
|
||||
"to [Libraries & templates](https://penpot.app/libraries-templates.html)"
|
||||
|
||||
msgid "dashboard.export-frames"
|
||||
msgstr "Export artboards to PDF..."
|
||||
|
|
|
@ -261,9 +261,8 @@ msgstr "Todavía no hay ningún archivo aquí"
|
|||
#, markdown
|
||||
msgid "dashboard.empty-placeholder-drafts"
|
||||
msgstr ""
|
||||
"Aún no tienes archivos. Si quieres probar alguna plantilla visita nuestra "
|
||||
"seccion de [Bibliotecas y "
|
||||
"plantillas](https://penpot.app/libraries-templates.html)"
|
||||
"¡Oh, no! ¡Aún no tienes archivos! Si quieres probar con alguna plantilla ve a "
|
||||
"[Bibliotecas y plantillas](https://penpot.app/libraries-templates.html)"
|
||||
|
||||
msgid "dashboard.export-frames"
|
||||
msgstr "Exportar tableros a PDF..."
|
||||
|
|
|
@ -79,7 +79,7 @@
|
|||
|
||||
"@sentry/browser@^6.17.4":
|
||||
version "6.17.4"
|
||||
resolved "https://registry.yarnpkg.com/@sentry/browser/-/browser-6.17.4.tgz#c2711a12e89dab4abecd9a04716c07c86712fa5a"
|
||||
resolved "https://registry.npmjs.org/@sentry/browser/-/browser-6.17.4.tgz"
|
||||
integrity sha512-ezLZ/FP2ZJPPemzGKMiu8RCHvuRYfDYXbkQb9KhUbpylJokL4GSRZHy8EYkcHugnvAiov7p8cdj7QgOZQPDAgw==
|
||||
dependencies:
|
||||
"@sentry/core" "6.17.4"
|
||||
|
@ -89,7 +89,7 @@
|
|||
|
||||
"@sentry/core@6.17.4":
|
||||
version "6.17.4"
|
||||
resolved "https://registry.yarnpkg.com/@sentry/core/-/core-6.17.4.tgz#ac23c2a9896b27fe4c532c2013c58c01f39adcdb"
|
||||
resolved "https://registry.npmjs.org/@sentry/core/-/core-6.17.4.tgz"
|
||||
integrity sha512-7QFgw+I9YK/X1Gie0c7phwT5pHMow66UCXHzDzHR2aK/0X3Lhn8OWlcGjIt5zmiBK/LHwNfQBNMskbktbYHgdA==
|
||||
dependencies:
|
||||
"@sentry/hub" "6.17.4"
|
||||
|
@ -100,7 +100,7 @@
|
|||
|
||||
"@sentry/hub@6.17.4":
|
||||
version "6.17.4"
|
||||
resolved "https://registry.yarnpkg.com/@sentry/hub/-/hub-6.17.4.tgz#af4f5f745340d676be023dc3038690b557111f4d"
|
||||
resolved "https://registry.npmjs.org/@sentry/hub/-/hub-6.17.4.tgz"
|
||||
integrity sha512-6+EvPcrPCwUmayeieIpm1ZrRNWriqMHWZFyw+MzunFLgG8IH8G45cJU1zNnTY9Jwwg4sFIS9xrHy3AOkctnIGw==
|
||||
dependencies:
|
||||
"@sentry/types" "6.17.4"
|
||||
|
@ -109,7 +109,7 @@
|
|||
|
||||
"@sentry/minimal@6.17.4":
|
||||
version "6.17.4"
|
||||
resolved "https://registry.yarnpkg.com/@sentry/minimal/-/minimal-6.17.4.tgz#6a35dbdb22a1c532d1eb7b4c0d9223618cb67ccd"
|
||||
resolved "https://registry.npmjs.org/@sentry/minimal/-/minimal-6.17.4.tgz"
|
||||
integrity sha512-p1A8UTtRt7bhV4ygu7yDNCannFr9E9dmqgeZWC7HrrTfygcnhNRFvTXTj92wEb0bFKuZr67wPSKnoXlkqkGxsw==
|
||||
dependencies:
|
||||
"@sentry/hub" "6.17.4"
|
||||
|
@ -118,7 +118,7 @@
|
|||
|
||||
"@sentry/tracing@^6.17.4":
|
||||
version "6.17.4"
|
||||
resolved "https://registry.yarnpkg.com/@sentry/tracing/-/tracing-6.17.4.tgz#17c2ab50d9e4cdf727b9b25e7f91ae3a9ea19437"
|
||||
resolved "https://registry.npmjs.org/@sentry/tracing/-/tracing-6.17.4.tgz"
|
||||
integrity sha512-UV6wWH/fqndts0k0cptsNtzD0h8KXqHInJSCGqlWDlygFRO16jwMKv0wfXgqsgc3cBGDlsl8C4l6COSwz9ROdg==
|
||||
dependencies:
|
||||
"@sentry/hub" "6.17.4"
|
||||
|
@ -129,12 +129,12 @@
|
|||
|
||||
"@sentry/types@6.17.4":
|
||||
version "6.17.4"
|
||||
resolved "https://registry.yarnpkg.com/@sentry/types/-/types-6.17.4.tgz#36b78d7c4a6de19b2bbc631bb34893bcad30c0ba"
|
||||
resolved "https://registry.npmjs.org/@sentry/types/-/types-6.17.4.tgz"
|
||||
integrity sha512-RUyiXCKf61k2GIMP7FQX0naoSew4zLxe+UrtbjwVcWU4AFPZfH7tLNtTpVE85zAKbxsaiq3OD2FPtTZarHcwxQ==
|
||||
|
||||
"@sentry/utils@6.17.4":
|
||||
version "6.17.4"
|
||||
resolved "https://registry.yarnpkg.com/@sentry/utils/-/utils-6.17.4.tgz#4f109629d2e7f16c5595b4367445ef47bfe96b61"
|
||||
resolved "https://registry.npmjs.org/@sentry/utils/-/utils-6.17.4.tgz"
|
||||
integrity sha512-+ENzZbrlVL1JJ+FoK2EOS27nbA/yToeaJPFlyVOnbthUxVyN3TTi9Uzn9F05fIE/2BTkOEk89wPtgcHafgrD6A==
|
||||
dependencies:
|
||||
"@sentry/types" "6.17.4"
|
||||
|
@ -498,7 +498,7 @@ atob@^2.1.2:
|
|||
|
||||
autoprefixer@^10.4.2:
|
||||
version "10.4.2"
|
||||
resolved "https://registry.yarnpkg.com/autoprefixer/-/autoprefixer-10.4.2.tgz#25e1df09a31a9fba5c40b578936b90d35c9d4d3b"
|
||||
resolved "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.2.tgz"
|
||||
integrity sha512-9fOPpHKuDW1w/0EKfRmVnxTDt8166MAnLI3mgZ1JCnhNtYWxcJ6Ud5CO/AVOZi/AvFa8DY9RTy3h3+tFBlrrdQ==
|
||||
dependencies:
|
||||
browserslist "^4.19.1"
|
||||
|
@ -847,7 +847,7 @@ caniuse-lite@^1.0.30001286:
|
|||
|
||||
caniuse-lite@^1.0.30001297:
|
||||
version "1.0.30001306"
|
||||
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001306.tgz#582592afe243bad2223081b8abab07bf289cc699"
|
||||
resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001306.tgz"
|
||||
integrity sha512-Wd1OuggRzg1rbnM5hv1wXs2VkxJH/AA+LuudlIqvZiCvivF+wJJe2mgBZC8gPMgI7D76PP5CTx8Luvaqc1V6OQ==
|
||||
|
||||
caseless@~0.12.0:
|
||||
|
@ -1414,10 +1414,10 @@ cypress-file-upload@^5.0.8:
|
|||
resolved "https://registry.npmjs.org/cypress-file-upload/-/cypress-file-upload-5.0.8.tgz"
|
||||
integrity sha512-+8VzNabRk3zG6x8f8BWArF/xA/W0VK4IZNx3MV0jFWrJS/qKn8eHfa5nU73P9fOQAgwHFJx7zjg4lwOnljMO8g==
|
||||
|
||||
cypress@^9.4.1:
|
||||
version "9.4.1"
|
||||
resolved "https://registry.yarnpkg.com/cypress/-/cypress-9.4.1.tgz#1a4ba706435829c24b7edf350c2b059e05da9084"
|
||||
integrity sha512-+JgMG9uT+QFx97JU9kOHE3jO3+0UdkQ9H1oCBiC7A74qme7Jkdy2sYDBCPjjGczutnWnGUTMRlwiNMP/Uq6LrQ==
|
||||
cypress@^9.5.0:
|
||||
version "9.5.0"
|
||||
resolved "https://registry.npmjs.org/cypress/-/cypress-9.5.0.tgz"
|
||||
integrity sha512-rC5QPolKsVjJ8QJZ7IeZ6HlKM4gswBGZc0XvoAJNL8urQCSL8zTX0A/ai/h35WfF47NQ0iSZnwIXBlHX3MOUIQ==
|
||||
dependencies:
|
||||
"@cypress/request" "^2.88.10"
|
||||
"@cypress/xvfb" "^1.2.4"
|
||||
|
@ -2581,7 +2581,7 @@ gulp-rename@^2.0.0:
|
|||
|
||||
gulp-sass@^5.1.0:
|
||||
version "5.1.0"
|
||||
resolved "https://registry.yarnpkg.com/gulp-sass/-/gulp-sass-5.1.0.tgz#bb3d9094f39a260f62a8d0a6797b95ab826f9663"
|
||||
resolved "https://registry.npmjs.org/gulp-sass/-/gulp-sass-5.1.0.tgz"
|
||||
integrity sha512-7VT0uaF+VZCmkNBglfe1b34bxn/AfcssquLKVDYnCDJ3xNBaW7cUuI3p3BQmoKcoKFrs9jdzUxyb+u+NGfL4OQ==
|
||||
dependencies:
|
||||
lodash.clonedeep "^4.5.0"
|
||||
|
@ -2749,7 +2749,7 @@ he@1.1.1:
|
|||
|
||||
highlight.js@^11.4.0:
|
||||
version "11.4.0"
|
||||
resolved "https://registry.yarnpkg.com/highlight.js/-/highlight.js-11.4.0.tgz#34ceadd49e1596ee5aba3d99346cdfd4845ee05a"
|
||||
resolved "https://registry.npmjs.org/highlight.js/-/highlight.js-11.4.0.tgz"
|
||||
integrity sha512-nawlpCBCSASs7EdvZOYOYVkJpGmAOKMYZgZtUqSRqodZE0GRVcFKwo1RcpeOemqh9hyttTdd5wDBwHkuSyUfnA==
|
||||
|
||||
hmac-drbg@^1.0.1:
|
||||
|
@ -3637,7 +3637,7 @@ lodash._topath@^3.0.0:
|
|||
|
||||
lodash.clonedeep@^4.5.0:
|
||||
version "4.5.0"
|
||||
resolved "https://registry.yarnpkg.com/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz#e23f3f9c4f8fbdde872529c1071857a086e5ccef"
|
||||
resolved "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz"
|
||||
integrity sha1-4j8/nE+Pvd6HJSnBBxhXoIblzO8=
|
||||
|
||||
lodash.isarguments@^3.0.0:
|
||||
|
@ -3772,7 +3772,7 @@ lru-queue@^0.1.0:
|
|||
|
||||
luxon@^2.3.0:
|
||||
version "2.3.0"
|
||||
resolved "https://registry.yarnpkg.com/luxon/-/luxon-2.3.0.tgz#bf16a7e642513c2a20a6230a6a41b0ab446d0045"
|
||||
resolved "https://registry.npmjs.org/luxon/-/luxon-2.3.0.tgz"
|
||||
integrity sha512-gv6jZCV+gGIrVKhO90yrsn8qXPKD8HYZJtrUDSfEbow8Tkw84T9OnCyJhWvnJIaIF/tBuiAjZuQHUt1LddX2mg==
|
||||
|
||||
make-dir@^3.0.0:
|
||||
|
@ -3815,7 +3815,7 @@ map-visit@^1.0.0:
|
|||
|
||||
marked@^4.0.12:
|
||||
version "4.0.12"
|
||||
resolved "https://registry.yarnpkg.com/marked/-/marked-4.0.12.tgz#2262a4e6fd1afd2f13557726238b69a48b982f7d"
|
||||
resolved "https://registry.npmjs.org/marked/-/marked-4.0.12.tgz"
|
||||
integrity sha512-hgibXWrEDNBWgGiK18j/4lkS6ihTe9sxtV4Q1OQppb/0zzyPSzoFANBa5MfsG/zgsWklmNnhm0XACZOH/0HBiQ==
|
||||
|
||||
matchdep@^2.0.0:
|
||||
|
@ -4042,7 +4042,7 @@ nan@^2.12.1:
|
|||
|
||||
nanoid@^3.2.0:
|
||||
version "3.2.0"
|
||||
resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.2.0.tgz#62667522da6673971cca916a6d3eff3f415ff80c"
|
||||
resolved "https://registry.npmjs.org/nanoid/-/nanoid-3.2.0.tgz"
|
||||
integrity sha512-fmsZYa9lpn69Ad5eDn7FMcnnSR+8R34W9qJEijxYhTbfOWzr22n1QxCMzXLK+ODyW2973V3Fux959iQoUxzUIA==
|
||||
|
||||
nanomatch@^1.2.9:
|
||||
|
@ -4701,7 +4701,7 @@ postcss@^7.0.16:
|
|||
|
||||
postcss@^8.4.6:
|
||||
version "8.4.6"
|
||||
resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.6.tgz#c5ff3c3c457a23864f32cb45ac9b741498a09ae1"
|
||||
resolved "https://registry.npmjs.org/postcss/-/postcss-8.4.6.tgz"
|
||||
integrity sha512-OovjwIzs9Te46vlEx7+uXB0PLijpwjXGKXjVGGPIGubGpq7uh5Xgf6D6FiJ/SzJMBosHDp6a2hiXOS97iBXcaA==
|
||||
dependencies:
|
||||
nanoid "^3.2.0"
|
||||
|
@ -5223,7 +5223,7 @@ rxjs@^7.4.0:
|
|||
|
||||
rxjs@~7.5.2:
|
||||
version "7.5.2"
|
||||
resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-7.5.2.tgz#11e4a3a1dfad85dbf7fb6e33cbba17668497490b"
|
||||
resolved "https://registry.npmjs.org/rxjs/-/rxjs-7.5.2.tgz"
|
||||
integrity sha512-PwDt186XaL3QN5qXj/H9DGyHhP3/RYYgZZwqBv9Tv8rsAaiwFH1IsJJlcgD37J7UW5a6O67qX0KWKS3/pu0m4w==
|
||||
dependencies:
|
||||
tslib "^2.1.0"
|
||||
|
@ -5252,7 +5252,7 @@ safe-regex@^1.1.0:
|
|||
|
||||
sass@^1.49.7:
|
||||
version "1.49.7"
|
||||
resolved "https://registry.yarnpkg.com/sass/-/sass-1.49.7.tgz#22a86a50552b9b11f71404dfad1b9ff44c6b0c49"
|
||||
resolved "https://registry.npmjs.org/sass/-/sass-1.49.7.tgz"
|
||||
integrity sha512-13dml55EMIR2rS4d/RDHHP0sXMY3+30e1TKsyXaSz3iLWVoDWEoboY8WzJd5JMnxrRHffKO3wq2mpJ0jxRJiEQ==
|
||||
dependencies:
|
||||
chokidar ">=3.0.0 <4.0.0"
|
||||
|
@ -5343,7 +5343,7 @@ shadow-cljs-jar@1.3.2:
|
|||
|
||||
shadow-cljs@2.17.2:
|
||||
version "2.17.2"
|
||||
resolved "https://registry.yarnpkg.com/shadow-cljs/-/shadow-cljs-2.17.2.tgz#41df03aaf84b339dbcf036a627b454a0424760bb"
|
||||
resolved "https://registry.npmjs.org/shadow-cljs/-/shadow-cljs-2.17.2.tgz"
|
||||
integrity sha512-XE9jWWBlT80fosk6+6AADiQZ9q33zgovh+v6vmeBBsOtYGILgVAFYZZvOzoRY7oEXz12IUzMpKxbA7WFjj5I0w==
|
||||
dependencies:
|
||||
node-libs-browser "^2.2.1"
|
||||
|
@ -5512,7 +5512,7 @@ snapdragon@^0.8.1:
|
|||
|
||||
source-map-js@^1.0.2:
|
||||
version "1.0.2"
|
||||
resolved "https://registry.yarnpkg.com/source-map-js/-/source-map-js-1.0.2.tgz#adbc361d9c62df380125e7f161f71c826f1e490c"
|
||||
resolved "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz"
|
||||
integrity sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==
|
||||
|
||||
source-map-resolve@^0.5.0:
|
||||
|
@ -6057,7 +6057,7 @@ tslib@^1.9.3:
|
|||
|
||||
tslib@^2.1.0:
|
||||
version "2.3.1"
|
||||
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.3.1.tgz#e8a335add5ceae51aa261d32a490158ef042ef01"
|
||||
resolved "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz"
|
||||
integrity sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==
|
||||
|
||||
tslib@~2.1.0:
|
||||
|
|
Loading…
Add table
Reference in a new issue