Commit Graph

2083 Commits

Author SHA1 Message Date
Gabriel Horner
c23513eaa8 fix: non :default property reuses existing entities
Also add tests for this and a common set-block-property case
2024-06-19 22:17:03 -04:00
Tienson Qin
626e0b67e8 fix: store latest file stat
Fixes LOG-3143
2024-06-20 09:22:35 +08:00
Tienson Qin
adae8ef5eb fix: get-block-and-children returns sorted blocks
Fix unit tests
2024-06-20 07:56:30 +08:00
Gabriel Horner
b35f30e203 fix: circular dependency between outliner and frontend
by moving batch-tx into outliner dep. Outliner dep is
now fully independent and we are able to write unit tests
for all outliner namespaces unlike before
2024-06-19 17:21:22 -04:00
Gabriel Horner
7b787a8fb2 fix: db lint 2024-06-19 14:39:39 -04:00
Tienson Qin
71dc122a75 fix: copy block properties doesn't work
Fixes LOG-3160
2024-06-20 00:39:08 +08:00
Gabriel Horner
16248f0bd2 fix: unable to build :default property for sqlite.build
Also add tests for different built-in cases and addressed
related TODO
2024-06-18 16:29:01 -04:00
Gabriel Horner
de730e236a fix: outliner lint 2024-06-18 11:03:55 -04:00
Gabriel Horner
ee77145caf fix: :checkbox property not working in simple queries and rules
Also fix booleans not rendering in query table
2024-06-18 10:38:09 -04:00
Tienson Qin
c3f30a9dc9 fix: lint 2024-06-18 21:37:12 +08:00
Tienson Qin
0bd6c05e69 refactor: add page outliner ops
The rule is to avoid calling worker modules from UI, all db
transactions should go through apply-outliner-ops.
2024-06-18 05:21:00 +08:00
charlie
5b0ed592f0 fix(ux): sometimes the block children can't be collapsed 2024-06-17 17:54:19 +08:00
charlie
5e8e3edc5d enhance(ui): refactor the classic modals with the shui dialog 2024-06-17 13:27:20 +08:00
Tienson Qin
96be194de5 Refactor: use last modified time to decide if file has been changed
Previously, we're using file content.

Fixes LOG-3161
2024-06-16 11:00:40 +08:00
Tienson Qin
54e54ebd63 fix: get-pid not works for non-built-in properties in file graphs 2024-06-15 23:20:13 +08:00
Tienson Qin
b294896f8a fix: reuse page uuids when parsing files
This commit also removes `with-id?` because it's too confusing.

Fixes LOG-3143
2024-06-15 22:52:30 +08:00
Tienson Qin
4281274512 fix: graph parser tests 2024-06-15 21:08:25 +08:00
Gabriel Horner
244a86557f chore: rename :property/value to :property.value/content
property-value is widely being used to refer to the entity or value
associated with a property entity. Naming the content of a
property-entity :property/value is confusing. property-value content is
a unique name and consistent with :block/content. Also rename related
fns which had similarly confusing names
2024-06-14 18:11:20 -04:00
Gabriel Horner
04a6aa141e fix: remove unused dep from db 2024-06-14 16:56:27 -04:00
Gabriel Horner
9a8c91c0cc chore: mv logseq.db.sqlite.db into sqlite.cli
for more explicit name and purpose. Also updated outdated db readme
and removed unused fns in logseq.db.sqlite.db
2024-06-14 16:53:19 -04:00
Gabriel Horner
8ba5c15f93 fix: remove cli namespace dependency from electron namespaces
Added a :discouraged-namespace linter check for future times.
Had to add clj-kondo configs for db and outliner since they
were incorrectly inheriting the frontend config, specifically
the :discouraged-namespace linter. Also removed a 'm/=>' in outliner dep
b/c it would've created a complex clj-kondo setup for malli that
would need to be updated for both top-level clj-kondo and deps/outliner
2024-06-14 15:50:05 -04:00
Gabriel Horner
95db811f55 fix: frontend tests shouldn't depend on sqlite3
frontend.test.helper was accidentally coupled to sqlite3 via
logseq.outliner.db-pipeline. Split out sqlite3 dependent fns to
logseq.outliner.cli so it's clear this shouldn't be coupled to frontend
2024-06-14 14:41:24 -04:00
Gabriel Horner
0f122e9a7e fix: schema graph generation
Regressed with property value change. Also updated debug file and
fixed a missing built-in property ns which caused an invalid debug file
2024-06-14 11:38:14 -04:00
Tienson Qin
d588df622e fix: :block/uuid not created for property value pages
Related to LOG-3124
2024-06-14 22:15:56 +08:00
Tienson Qin
c7827ee268 fix: can't create alias property for file based graph 2024-06-14 21:00:32 +08:00
Tienson Qin
1858180476 fix: don't create bi-directional alias
related to LOG-3124
2024-06-14 20:00:37 +08:00
Gabriel Horner
5f2371486e fix: simple query for :number properties
also fixes deps db tests
2024-06-13 23:16:17 -04:00
Gabriel Horner
137f388edd enhance: property ref values can store their
original value optionally with :property/value.
Currently applies to :url and :number and not :default
as :default is meant to be a block and thus highly coupled
to :block/content. By introducing this, functionality that relies
on original property values automatically work e.g.
sorting by :number property for query results just works
2024-06-13 23:03:18 -04:00
Gabriel Horner
57241d0644 Revert "fix: :block/content should be string including :number properties"
This reverts commit 8a6b44bb31.
2024-06-13 21:25:21 -04:00
charlie
6c7c282a03 fix(pdf): insert keyword property value for the file based graphs 2024-06-13 17:25:05 +08:00
Tienson Qin
4d684a5ec9 fix: throw exception if calling db property fns for file graphs 2024-06-13 14:50:20 +08:00
Tienson Qin
0ce2ee42db Revert "refactor: use files instead of sqlite for electron db storage"
This reverts commit c2c5ab80aa.
2024-06-13 13:04:00 +08:00
Tienson Qin
ec25550455 Revert "chore: remove unused fn"
This reverts commit 1ec30bbf1a.
2024-06-13 13:04:00 +08:00
Tienson Qin
596089f161 Revert "fix: add missing fs-extra package"
This reverts commit 032cad0318.
2024-06-13 13:04:00 +08:00
Tienson Qin
6d4f3425cd Revert "fix: nbb compatibility for mv to file db for electron"
This reverts commit 4403b5e52a.
2024-06-13 13:04:00 +08:00
Gabriel Horner
03f797fde3 fix: outliner lint and doc formatting 2024-06-12 15:24:04 -04:00
Tienson Qin
1dc72d79f2 fix: separate page/create impl for db and file graphs
Also, move rtc page create impl to its own fn.
2024-06-12 06:39:06 +08:00
Gabriel Horner
1b51d28682 fix: outliner lint 2024-06-11 16:49:14 -04:00
Gabriel Horner
4403b5e52a fix: nbb compatibility for mv to file db for electron
Followup to c2c5ab80aa
2024-06-11 16:44:19 -04:00
Gabriel Horner
0e1ada2ef6 enhance: bb task for creating graphs from EDN file
Converted inferred graph to an EDN file now that this task exists. Also
merge last of tasks.create-graph to relevant ns so that external users
can also create such tasks
2024-06-11 10:09:37 -04:00
Tienson Qin
2d3f152454 fix: simplify page delete and fix rtc issues 2024-06-11 20:23:57 +08:00
Tienson Qin
032cad0318 fix: add missing fs-extra package 2024-06-11 20:00:32 +08:00
Tienson Qin
1ec30bbf1a chore: remove unused fn 2024-06-11 19:58:54 +08:00
Tienson Qin
c2c5ab80aa refactor: use files instead of sqlite for electron db storage 2024-06-11 08:30:49 +08:00
Gabriel Horner
dbf263ed7c fix: unbound vars caught by lint
also updated property type for previous commit
2024-06-10 17:12:03 -04:00
Gabriel Horner
0ce4e1b65e fix: query table not displaying user property columns
Also fixed rendering property values for all property types
2024-06-10 16:05:33 -04:00
Gabriel Horner
2d1073fa5b fix: remove outdated clauses for property values
This became outedated with to property values as refs
2024-06-10 13:26:21 -04:00
Gabriel Horner
16cfb76c9b fix: update :query/result-transforms to work with db graphs
since they are the future. Leave example disabled by default as it's
not important to have :sort-by-priority enabled by default and working
for both file and db graphs
2024-06-10 12:38:40 -04:00
Gabriel Horner
04b25a9240 chore: add basic tests for sqlite.build
and added a couple db-graph specific for query-dsl. Also
moved fns in pu that should be in db-pu
2024-06-10 11:52:39 -04:00
Tienson Qin
03a0e99b65 enhance: add block-order malli schema 2024-06-09 11:39:00 +08:00