Commit Graph

2040 Commits

Author SHA1 Message Date
Tienson Qin
b2034753aa fix: sort pages by backlinks count
fixed https://github.com/logseq/db-test/issues/441
2025-08-24 13:36:49 +08:00
Tienson Qin
cd13713513 feat: sort groups for views (#12046)
* Add two properties for groups sorting

1. :logseq.property.table/sort-groups-by
2. :logseq.property.table/sort-groups-desc?

* Add ui for groups sort by and order

* enhance: sort by journal day desc by default

* rename to :*.view/sort-groups-by-property to make it clear that

property type is :property.

* suggested by copilot

* fix: name

* Group by Page instead of "Block Page"
2025-08-14 13:14:34 +08:00
Tienson Qin
38e049e1c5 fix: stale embedding check (#12049)
* fix: slow stale embedding check

* fix: mark all blocks for embedding when full embedding

Also, store hnsw index for each batch so that embedding can continue
when aborted by switching graph or closing the app.

* remove embedding/re-embedding-graph-data!

* enhance: mod+c mod+s to rebuild both keyword and semantic search
2025-08-13 13:47:52 +08:00
Gabriel Horner
241c1c104e refactor: have one fn to fetch ~/logseq/graphs dir
Also add deps.edn to cli dep which is needed for reuse with frontend
2025-08-11 17:05:39 -04:00
Gabriel Horner
887d91d2ac enhance: start CLI dep and implement list command
Also move common db graph list to shared ns and move common prefix
constants to common-config
2025-08-11 17:05:39 -04:00
Tienson Qin
12e1f35cc4 enhance(ux): filter by empty and not empty value 2025-08-10 22:53:05 +08:00
Tienson Qin
921d815491 fix: filter datetime rows filter out rows with empty value
fixed https://github.com/logseq/db-test/issues/386
2025-08-10 21:14:53 +08:00
rcmerci
ca4b5c5266 fix(export): ignore :logseq.property/created-by-ref when export-edn 2025-08-08 14:10:05 +08:00
Gabriel Horner
707f49bc4f fix: nbb-logseq bundling and quirky datascript requires (#12032)
* fix: nbb-logseq bundling and quirky datascript requires

* fix: bump nbb-logseq for node version incompatibility
2025-08-06 13:16:50 -04:00
Tienson Qin
d84d3f9652 enhance(ux): set/unset #Page to convert between page and block (#11970)
* enhance(ux): add/remove #Page to toggle page/block

* enhance(ux): "p t" to set tags for selected blocks

Updated "p a" to toggle displaying all properties including hidden ones.

* feat: cmd+k move blocks

* fix: block could be converted to page and create invalid nodes

Pages with block namespace parents is nonsensical and pages in
property values led to multiple validation errors. Also guard
against class and property pages as namespace parents

* fix: warn on failed cut+paste or indent/outdent of page blocks. Better to warn than silent failure which leaves user confused on
what happened. 

---------

Co-authored-by: Gabriel Horner <gabriel@logseq.com>
2025-08-05 17:45:57 +08:00
Tienson Qin
1fe46682e4 Merge branch 'master' into feat/hnswlib+transformer-js 2025-08-01 00:14:28 +08:00
Tienson Qin
8c402676a9 fix: page references with same name in one block (#12017)
* fix: page references with the same name in one block

* fix: empty :block/name for Library pages

* fix: invalid call to uuid-string?

trace suddenly showing up in multiple CLI calls

---------

Co-authored-by: Gabriel Horner <gabriel@logseq.com>
2025-08-01 00:09:31 +08:00
Tienson Qin
67a0f7cd8c Merge branch 'master' into feat/hnswlib+transformer-js 2025-07-31 20:08:29 +08:00
Tienson Qin
4455dfca8d fix: backlinks context doesn't work for file graphs 2025-07-30 17:31:28 +08:00
Tienson Qin
110f5b18e5 Merge branch 'master' into feat/hnswlib+transformer-js 2025-07-28 12:29:32 +08:00
Gabriel Horner
09e60ae296 fix: deleting last extends value doesn't revert to Root
Fixes https://github.com/logseq/db-test/issues/387
2025-07-24 10:50:33 -04:00
Tienson Qin
6a22385f0b replace uuid ref with block title when embedding 2025-07-23 20:54:29 +08:00
Tienson Qin
2c27aee09d use db/id for hnsw label
Because db/id is unique, auto-increment so that old ids are not re-used.
2025-07-21 20:14:14 +08:00
Tienson Qin
4b0cb79d0d fix: vector search 2025-07-16 04:33:05 +08:00
Tienson Qin
2d50ca5ce2 Merge branch 'master' into feat/hnswlib+transformer-js 2025-07-11 18:15:33 +08:00
Gabriel Horner
bb6ed709e5 refactor: use get-journal-page for finding a journal page
Only updated this in DB graph files since this is where they are
the most useful
2025-07-09 14:04:02 -04:00
Gabriel Horner
eabee3fe1c chore: mv db only fns to db ns
Also add related names to linter
2025-07-09 13:26:12 -04:00
Gabriel Horner
da7f9f1dcd fix: hiding #Task on mobile affects desktop
Don't hide #Task on desktop which is still useful.
Rather default mobile to hiding which has the added benefit
of handling other tags e.g. #Query.  Follow up to #11903
2025-07-08 12:11:43 -04:00
Tienson Qin
122b6b7a45 Merge branch 'master' into feat/capacitor-new 2025-07-07 16:20:19 +08:00
Tienson Qin
e259be0c51 feat: quick add (#11986)
* feat: quick add

* enhance(ux): auto open block for editing for quick add

* enhance(ux): show notification after quick add

* add migration for quick add page
2025-07-07 16:18:53 +08:00
Tienson Qin
d0c54bb2b6 fix: lint 2025-07-03 17:34:38 +08:00
Tienson Qin
d46e97fafe perf: linked references
1. don't use recursive rule `block-parent`
2. using `:block/path-ref` to get both parent and children
3. run `hidden-ref?` check for refs only (not path-refs)
2025-07-03 17:34:14 +08:00
Tienson Qin
38cdc875e0 perf: get-class-extends 2025-07-02 15:23:30 +08:00
Tienson Qin
18d607a27e fix: lint 2025-07-02 15:23:01 +08:00
Tienson Qin
d4b37189a0 perf: linked references
1. don't use recursive rule `block-parent`
2. using `:block/path-ref` to get both parent and children
3. run `hidden-ref?` check for refs only (not path-refs)
2025-07-02 15:23:01 +08:00
Tienson Qin
2023d87f8e perf: get-class-extends 2025-07-02 15:21:25 +08:00
Tienson Qin
a5c3dda958 fix: lint 2025-07-01 23:05:25 +08:00
Tienson Qin
d8a07234c1 perf: linked references
1. don't use recursive rule `block-parent`
2. using `:block/path-ref` to get both parent and children
3. run `hidden-ref?` check for refs only (not path-refs)
2025-07-01 22:50:19 +08:00
Tienson Qin
90a776edf1 enhance(ux): hide #Task by default on mobile 2025-07-01 08:54:35 +08:00
Tienson Qin
13305e3169 Merge branch 'master' into feat/capacitor-new 2025-07-01 08:06:47 +08:00
Tienson Qin
702255adea fix: don't create unnecessary linked/unlinked reference views 2025-06-29 15:43:35 +08:00
Gabriel Horner
a1967ef748 fix: db lint
also move class fn to db-class
2025-06-29 15:21:09 +08:00
Gabriel Horner
1ae6e5ceb5 fix: build doesn't fail if one extends
doesn't have a class-db id. Also fix export
which should always export extends unless it's the default
2025-06-29 15:21:09 +08:00
Gabriel Horner
268889d0b7 chore: rename sqlite.build :build/class-parent to :build/class-extends
Matches new property name and its arity. :build/class-parent deprecated
2025-06-29 15:21:09 +08:00
Tienson Qin
c07d8a6a6e fix: tests 2025-06-29 15:21:09 +08:00
Tienson Qin
ded9c8e517 fix: update :build/class-parent to multiple values 2025-06-29 15:21:09 +08:00
Tienson Qin
6902578358 add migration for tag extends 2025-06-29 15:21:09 +08:00
Tienson Qin
cc39c1c1fb refactor: extends support multiple tags 2025-06-29 15:21:09 +08:00
charlie
b6e3e98990 Merge branch 'master' into feat/capacitor-new 2025-06-28 11:06:25 +08:00
Tienson Qin
3cd604787f fix: remove block.temp/* attrs from vector tx-data 2025-06-27 22:30:35 +08:00
Gabriel Horner
32a29f5f3d enhance(dev): CLI can diff other export types 2025-06-26 17:02:14 -04:00
Gabriel Horner
16ac807894 enhance: import + sqlite.build supports classes and properties
from multiple namespaces
2025-06-26 16:57:39 -04:00
Gabriel Horner
0cb5c99502 enhance(dev): CLI can export other types e.g. graph-ontology 2025-06-26 12:12:50 -04:00
Tienson Qin
7037a84137 fix: failed to export EDN because default value property refed 2025-06-26 18:40:06 +08:00
charlie
593aca94c0 fix: lint 2025-06-26 17:15:38 +08:00