|
@@ -59,7 +59,8 @@
|
|
[logseq.db.schema :as db-schema]
|
|
[logseq.db.schema :as db-schema]
|
|
[promesa.core :as p]
|
|
[promesa.core :as p]
|
|
[rum.core :as rum]
|
|
[rum.core :as rum]
|
|
- [logseq.graph-parser.config :as gp-config]))
|
|
|
|
|
|
+ [logseq.graph-parser.config :as gp-config]
|
|
|
|
+ [frontend.components.whiteboard :as whiteboard]))
|
|
|
|
|
|
;; TODO: should we move all events here?
|
|
;; TODO: should we move all events here?
|
|
|
|
|
|
@@ -96,7 +97,9 @@
|
|
(util/uuid-string? (second (:sync-meta %)))) repos)
|
|
(util/uuid-string? (second (:sync-meta %)))) repos)
|
|
(sync/<sync-start)))))
|
|
(sync/<sync-start)))))
|
|
(ui-handler/re-render-root!)
|
|
(ui-handler/re-render-root!)
|
|
- (file-sync/maybe-onboarding-show status)))))))
|
|
|
|
|
|
+ (file-sync/maybe-onboarding-show status)
|
|
|
|
+ (when (user-handler/alpha-or-beta-user?)
|
|
|
|
+ (whiteboard/onboarding-show))))))))
|
|
|
|
|
|
(defmethod handle :user/logout [[_]]
|
|
(defmethod handle :user/logout [[_]]
|
|
(file-sync-handler/reset-session-graphs)
|
|
(file-sync-handler/reset-session-graphs)
|
|
@@ -687,6 +690,12 @@
|
|
(route-handler/redirect! {:to :page
|
|
(route-handler/redirect! {:to :page
|
|
:path-params {:name (:block/name page-entity)}}))))))
|
|
:path-params {:name (:block/name page-entity)}}))))))
|
|
|
|
|
|
|
|
+(defmethod handle :whiteboard/onboarding [[_ opts]]
|
|
|
|
+ (state/set-modal!
|
|
|
|
+ (fn [close-fn] (whiteboard/onboarding-welcome close-fn))
|
|
|
|
+ (merge {:close-btn? false
|
|
|
|
+ :center? true
|
|
|
|
+ :close-backdrop? false} opts)))
|
|
|
|
|
|
(defmethod handle :file-sync/onboarding-tip [[_ type opts]]
|
|
(defmethod handle :file-sync/onboarding-tip [[_ type opts]]
|
|
(let [type (keyword type)]
|
|
(let [type (keyword type)]
|