Release whiteboard to everyone (#8853)

* chore: release whiteboards for everyone

Also, toggle it on by default

* fix: e2e test

* add onboarding tour test

---------

Co-authored-by: Konstantinos Kaloutas <konstantinos@logseq.com>
This commit is contained in:
Tienson Qin
2023-03-21 19:37:21 +08:00
committed by GitHub
parent 1a6a888aa5
commit a92588a18b
10 changed files with 56 additions and 62 deletions

View File

@@ -11,6 +11,8 @@
[frontend.modules.outliner.core :as outliner]
[frontend.modules.outliner.file :as outliner-file]
[frontend.state :as state]
[frontend.config :as config]
[frontend.storage :as storage]
[frontend.util :as util]
[logseq.graph-parser.util :as gp-util]
[logseq.graph-parser.whiteboard :as gp-whiteboard]
@@ -417,3 +419,12 @@
(catch :default e
(js/console.error e)))
(history/resume-listener!))
(defn onboarding-show
[]
(when (not (or (state/sub :whiteboard/onboarding-tour?)
(config/demo-graph?)
(util/mobile?)))
(state/pub-event! [:whiteboard/onboarding])
(state/set-state! [:whiteboard/onboarding-tour?] true)
(storage/set :whiteboard-onboarding-tour? true)))