mirror of
https://github.com/penpot/penpot.git
synced 2025-05-12 07:16:37 +02:00
Merge remote-tracking branch 'origin/main' into develop
This commit is contained in:
commit
1fd2b3fff8
8 changed files with 41 additions and 16 deletions
10
CHANGES.md
10
CHANGES.md
|
@ -12,6 +12,16 @@
|
||||||
### :heart: Community contributions by (Thank you!)
|
### :heart: Community contributions by (Thank you!)
|
||||||
|
|
||||||
|
|
||||||
|
## 1.5.1-alpha
|
||||||
|
|
||||||
|
### :bug: Bugs fixed
|
||||||
|
|
||||||
|
- Fix issue with bitmap image clipboard.
|
||||||
|
- Fix issue when removing all path points.
|
||||||
|
- Increase default team invitation token expiration to 48h.
|
||||||
|
- Fix wrong error message when an expired token is used.
|
||||||
|
|
||||||
|
|
||||||
## 1.5.0-alpha
|
## 1.5.0-alpha
|
||||||
|
|
||||||
### :sparkles: New features
|
### :sparkles: New features
|
||||||
|
|
|
@ -39,8 +39,8 @@
|
||||||
:opt-un [::uri]))
|
:opt-un [::uri]))
|
||||||
|
|
||||||
(defmethod ig/init-key ::reporter
|
(defmethod ig/init-key ::reporter
|
||||||
[_ {:keys [receiver] :as cfg}]
|
[_ {:keys [receiver uri] :as cfg}]
|
||||||
(l/info :msg "intializing mattermost error reporter")
|
(l/info :msg "intializing mattermost error reporter" :uri uri)
|
||||||
(let [output (a/chan (a/sliding-buffer 128)
|
(let [output (a/chan (a/sliding-buffer 128)
|
||||||
(filter #(= (:level %) "error")))]
|
(filter #(= (:level %) "error")))]
|
||||||
(receiver :sub output)
|
(receiver :sub output)
|
||||||
|
@ -63,6 +63,7 @@
|
||||||
(let [uri (:uri cfg)
|
(let [uri (:uri cfg)
|
||||||
text (str "Unhandled exception (@channel):\n"
|
text (str "Unhandled exception (@channel):\n"
|
||||||
"- detail: " (cfg/get :public-uri) "/dbg/error-by-id/" id "\n"
|
"- detail: " (cfg/get :public-uri) "/dbg/error-by-id/" id "\n"
|
||||||
|
"- profile-id: `" (:profile-id cdata) "`\n"
|
||||||
"- host: `" host "`\n"
|
"- host: `" host "`\n"
|
||||||
"- version: `" version "`\n"
|
"- version: `" version "`\n"
|
||||||
(when error
|
(when error
|
||||||
|
|
|
@ -309,7 +309,7 @@
|
||||||
team (db/get-by-id conn :team team-id)
|
team (db/get-by-id conn :team team-id)
|
||||||
itoken (tokens :generate
|
itoken (tokens :generate
|
||||||
{:iss :team-invitation
|
{:iss :team-invitation
|
||||||
:exp (dt/in-future "6h")
|
:exp (dt/in-future "48h")
|
||||||
:profile-id (:id profile)
|
:profile-id (:id profile)
|
||||||
:role role
|
:role role
|
||||||
:team-id team-id
|
:team-id team-id
|
||||||
|
|
|
@ -72,18 +72,26 @@
|
||||||
(rx/subs
|
(rx/subs
|
||||||
(fn [tdata]
|
(fn [tdata]
|
||||||
(handle-token tdata))
|
(handle-token tdata))
|
||||||
(fn [error]
|
(fn [{:keys [type code] :as error}]
|
||||||
(case (:code error)
|
(cond
|
||||||
:email-already-exists
|
(and (= :validation type)
|
||||||
|
(= :invalid-token code)
|
||||||
|
(= :token-expired (:reason error)))
|
||||||
|
(let [msg (tr "errors.token-expired")]
|
||||||
|
(ts/schedule 100 #(st/emit! (dm/error msg)))
|
||||||
|
(st/emit! (rt/nav :auth-login)))
|
||||||
|
|
||||||
|
(= :email-already-exists code)
|
||||||
(let [msg (tr "errors.email-already-exists")]
|
(let [msg (tr "errors.email-already-exists")]
|
||||||
(ts/schedule 100 #(st/emit! (dm/error msg)))
|
(ts/schedule 100 #(st/emit! (dm/error msg)))
|
||||||
(st/emit! (rt/nav :auth-login)))
|
(st/emit! (rt/nav :auth-login)))
|
||||||
|
|
||||||
:email-already-validated
|
(= :email-already-validated code)
|
||||||
(let [msg (tr "errors.email-already-validated")]
|
(let [msg (tr "errors.email-already-validated")]
|
||||||
(ts/schedule 100 #(st/emit! (dm/warn msg)))
|
(ts/schedule 100 #(st/emit! (dm/warn msg)))
|
||||||
(st/emit! (rt/nav :auth-login)))
|
(st/emit! (rt/nav :auth-login)))
|
||||||
|
|
||||||
|
:else
|
||||||
(let [msg (tr "errors.generic")]
|
(let [msg (tr "errors.generic")]
|
||||||
(ts/schedule 100 #(st/emit! (dm/error msg)))
|
(ts/schedule 100 #(st/emit! (dm/error msg)))
|
||||||
(st/emit! (rt/nav :auth-login)))))))))
|
(st/emit! (rt/nav :auth-login)))))))))
|
||||||
|
|
|
@ -85,7 +85,8 @@
|
||||||
;; https://tree.taiga.io/project/uxboxproject/issue/1083
|
;; https://tree.taiga.io/project/uxboxproject/issue/1083
|
||||||
;; {:value "viewer" :label (tr "labels.viewer")}]
|
;; {:value "viewer" :label (tr "labels.viewer")}]
|
||||||
|
|
||||||
initial (mf/use-memo (mf/deps team) (constantly {:team-id (:id team)}))
|
initial (mf/use-memo (mf/deps team) (constantly {:team-id (:id team)
|
||||||
|
:role "editor"}))
|
||||||
form (fm/use-form :spec ::invite-member-form
|
form (fm/use-form :spec ::invite-member-form
|
||||||
:initial initial)
|
:initial initial)
|
||||||
on-success
|
on-success
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
|
|
||||||
(ns app.main.ui.onboarding
|
(ns app.main.ui.onboarding
|
||||||
(:require
|
(:require
|
||||||
|
[app.config :as cf]
|
||||||
[app.common.spec :as us]
|
[app.common.spec :as us]
|
||||||
[app.main.data.dashboard :as dd]
|
[app.main.data.dashboard :as dd]
|
||||||
[app.main.data.messages :as dm]
|
[app.main.data.messages :as dm]
|
||||||
|
@ -38,9 +39,9 @@
|
||||||
[:div.modal-right
|
[:div.modal-right
|
||||||
[:div.modal-title
|
[:div.modal-title
|
||||||
[:h2 "Welcome to Penpot!"]]
|
[:h2 "Welcome to Penpot!"]]
|
||||||
[:span.release "Alpha version 1.0"]
|
[:span.release "Alpha version " (:main @cf/version)]
|
||||||
[:div.modal-content
|
[:div.modal-content
|
||||||
[:p "We are very happy to introduce you to the very first Alpha 1.0 release."]
|
[:p "We are very happy to introduce you to the very first Alpha release."]
|
||||||
[:p "Penpot is still at development stage and there will be constant updates. We hope you enjoy the first stable version."]]
|
[:p "Penpot is still at development stage and there will be constant updates. We hope you enjoy the first stable version."]]
|
||||||
[:div.modal-navigation
|
[:div.modal-navigation
|
||||||
[:button.btn-secondary {:on-click next} "Continue"]]]
|
[:button.btn-secondary {:on-click next} "Continue"]]]
|
||||||
|
|
|
@ -535,6 +535,10 @@ msgstr "The registration is currently disabled."
|
||||||
msgid "errors.terms-privacy-agreement-invalid"
|
msgid "errors.terms-privacy-agreement-invalid"
|
||||||
msgstr "You must accept our terms of service and privacy policy."
|
msgstr "You must accept our terms of service and privacy policy."
|
||||||
|
|
||||||
|
#: src/app/main/ui/auth/verify_token.cljs
|
||||||
|
msgid "errors.token-expired"
|
||||||
|
msgstr "Token expired"
|
||||||
|
|
||||||
#: src/app/main/data/media.cljs, src/app/main/ui/workspace/sidebar/options/menus/exports.cljs, src/app/main/ui/handoff/exports.cljs
|
#: src/app/main/data/media.cljs, src/app/main/ui/workspace/sidebar/options/menus/exports.cljs, src/app/main/ui/handoff/exports.cljs
|
||||||
msgid "errors.unexpected-error"
|
msgid "errors.unexpected-error"
|
||||||
msgstr "An unexpected error occurred."
|
msgstr "An unexpected error occurred."
|
||||||
|
@ -1111,9 +1115,7 @@ msgstr "Verify new email"
|
||||||
|
|
||||||
#: src/app/main/ui/settings/change_email.cljs
|
#: src/app/main/ui/settings/change_email.cljs
|
||||||
msgid "modals.change-email.info"
|
msgid "modals.change-email.info"
|
||||||
msgstr ""
|
msgstr "We'll send you an email to your current email “%s” to verify your identity."
|
||||||
"We'll send you an email to your current email “%s” to verify your "
|
|
||||||
"identity."
|
|
||||||
|
|
||||||
#: src/app/main/ui/settings/change_email.cljs
|
#: src/app/main/ui/settings/change_email.cljs
|
||||||
msgid "modals.change-email.new-email"
|
msgid "modals.change-email.new-email"
|
||||||
|
@ -1137,9 +1139,7 @@ msgstr "Yes, delete my account"
|
||||||
|
|
||||||
#: src/app/main/ui/settings/delete_account.cljs
|
#: src/app/main/ui/settings/delete_account.cljs
|
||||||
msgid "modals.delete-account.info"
|
msgid "modals.delete-account.info"
|
||||||
msgstr ""
|
msgstr "By removing your account you’ll lose all your current projects and archives."
|
||||||
"By removing your account you’ll lose all your current projects and "
|
|
||||||
"archives."
|
|
||||||
|
|
||||||
#: src/app/main/ui/settings/delete_account.cljs
|
#: src/app/main/ui/settings/delete_account.cljs
|
||||||
msgid "modals.delete-account.title"
|
msgid "modals.delete-account.title"
|
||||||
|
|
|
@ -556,6 +556,10 @@ msgstr "El registro está actualmente desactivado."
|
||||||
msgid "errors.terms-privacy-agreement-invalid"
|
msgid "errors.terms-privacy-agreement-invalid"
|
||||||
msgstr "Debes aceptar nuestros términos de servicio y política de privacidad."
|
msgstr "Debes aceptar nuestros términos de servicio y política de privacidad."
|
||||||
|
|
||||||
|
#: src/app/main/ui/auth/verify_token.cljs
|
||||||
|
msgid "errors.token-expired"
|
||||||
|
msgstr "Token expirado"
|
||||||
|
|
||||||
#: src/app/main/data/media.cljs, src/app/main/ui/workspace/sidebar/options/menus/exports.cljs, src/app/main/ui/handoff/exports.cljs
|
#: src/app/main/data/media.cljs, src/app/main/ui/workspace/sidebar/options/menus/exports.cljs, src/app/main/ui/handoff/exports.cljs
|
||||||
msgid "errors.unexpected-error"
|
msgid "errors.unexpected-error"
|
||||||
msgstr "Ha ocurrido un error inesperado."
|
msgstr "Ha ocurrido un error inesperado."
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue