Merge branch 'master' into enhance/mobile-silk

This commit is contained in:
Tienson Qin
2025-08-05 21:09:05 +08:00
4 changed files with 15 additions and 8 deletions

View File

@@ -1,10 +1,10 @@
(ns frontend.modules.instrumentation.posthog
(:require [frontend.config :as config]
[frontend.util :as util]
(:require ["posthog-js$default" :as posthog]
[cljs-bean.core :as bean]
[frontend.config :as config]
[frontend.mobile.util :as mobile-util]
[frontend.version :refer [version]]
["posthog-js" :as posthog]
[cljs-bean.core :as bean]))
[frontend.util :as util]
[frontend.version :refer [version]]))
(goog-define POSTHOG-TOKEN "")
(def ^:const masked "masked")

View File

@@ -48,6 +48,13 @@
[repo]
(get-in @*vector-search-state [:repo->index-info repo :indexing?]))
(defn- hidden-entity?
[entity]
(or (ldb/hidden? entity)
(let [page (:block/page entity)]
(and (ldb/hidden? page)
(not= (:block/title page) common-config/quick-add-page-name)))))
(defn- stale-block-filter-preds
"When `reset?`, ignore :logseq.property.embedding/hnsw-label-updated-at in block"
[reset?]
@@ -57,7 +64,7 @@
(and (or (nil? db-ident)
(not (string/starts-with? (namespace db-ident) "logseq.")))
(not (string/blank? title))
(not (ldb/hidden? title))
(not (hidden-entity? b))
(nil? (:logseq.property/view-for b))
(not (keyword-identical?
:logseq.property/description