fix: slow query ux (#11548)

* enhance: intuitive query input

* fix: Manually editing Query property doesn't update its results

fix https://linear.app/logseq/issue/LOG-3249/manually-editing-query-property-doesnt-update-its-results

* fix: don't close popup when editing hidden property

* enhance: display query setting icon when hovering title

* Use block's title as query if its query is still empty

* enhance: display both simple and advanced query as below when not collapsed
This commit is contained in:
Tienson Qin
2024-09-28 02:52:06 +08:00
committed by GitHub
parent 2b782c601b
commit 879a30593a
14 changed files with 142 additions and 123 deletions

View File

@@ -81,7 +81,7 @@
[repo cards-id]
(let [now-inst-ms (inst-ms (js/Date.))
cards (when (and cards-id (not= (keyword cards-id) :global)) (db/entity cards-id))
query (:block/title (:logseq.property/query cards))
query (:block/title cards)
result (query-dsl/parse query {:db-graph? true})
q '[:find [?b ...]
:in $ ?now-inst-ms %