Commit Graph

16320 Commits (61e7feecb8ab43db25233f5ad670f20166c0143a)

Author SHA1 Message Date
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 4b5ba7c600 fix: query table not rendering for :number property values 2024-06-14 17:47:56 -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 56063ed2bf fix: tweak message and update docs for updated replace cmd flow 2024-06-14 14:22:44 -04:00
Tienson Qin ff050779ec fix: import chosen graph 2024-06-15 01:17:07 +08:00
Tienson Qin af716b50d4 fix: save db before git commit 2024-06-15 00:48:57 +08:00
Tienson Qin 05f14033c4 chore: remove better-sqlite3 from electron 2024-06-15 00:29:39 +08:00
Tienson Qin cc20d96fda chore: don't store version dbs in /logseq/bak
This can increase space usage a lot, also, git is a much better way
compared to /bak.
2024-06-15 00:22:26 +08:00
Tienson Qin e0fafe4725 enhance: notify db saved only for manual triggers 2024-06-15 00:03:39 +08:00
Tienson Qin 4cca2e5f69 enhance: remove sqlite usage from Electron
Use periodic db export instead. Manual saving db to the disk can be
triggered by `mod+s`.
2024-06-14 23:58:49 +08: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
Tienson Qin abe4f045b5 fix: clear editor action too when exits editing 2024-06-14 19:27:55 +08:00
Tienson Qin eef6ccb883 fix: can't use datepicker for /Deadline
Fixes LOG-3095
2024-06-14 19:13:14 +08:00
rcmerci acd06e1e9e enhance(rtc): ensure refed-blocks from remote existing in client 2024-06-14 18:48:04 +08:00
charlie b3c6be393e enhance(api): create page with properties for the db graphs 2024-06-14 16:22:28 +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 7fa3fdf190 Revert "fix: tests"
This reverts commit d893e04925.
2024-06-13 21:25:21 -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 8eb93dc879 chore: remove debug log 2024-06-13 23:55:49 +08:00
charlie 9690c14a9b fix(ui): can't close the class editor modal from the cmdk action 2024-06-13 23:54:41 +08:00
charlie 518e2bf0fb enhance(api): enhance pages related apis 2024-06-13 23:53:10 +08:00
Gabriel Horner 4eb9364814 fix: frontend lint 2024-06-13 10:44:47 -04:00
rcmerci 61df440c6e fix(rtc): update :refed-blocks schema 2024-06-13 21:51:52 +08:00
rcmerci e07a572a22 fix(rtc): fix schema 2024-06-13 21:03:50 +08:00
Tienson Qin fdb22d0c72 fix: worker db pull non exists page 2024-06-13 21:01:01 +08:00
charlie 6c7c282a03 fix(pdf): insert keyword property value for the file based graphs 2024-06-13 17:25:05 +08:00
rcmerci 0692edc17d enhance(rtc): update data-from-ws-schema 2024-06-13 16:19:00 +08:00
Tienson Qin 6dd17c14f5 enhance: prefer d/entity than d/pull if possible 2024-06-13 15:12:59 +08:00
Tienson Qin 0e87965a10 fix: load full page first before setting pdf type 2024-06-13 15:04:51 +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 71584905a7 Move set-block-properties! to property handler 2024-06-13 14:37:12 +08:00
Tienson Qin 452b79d350 fix: page format 2024-06-13 14:31:17 +08:00
charlie 8de948f504 fix(pdf): insert highlight blocks for the file based graph 2024-06-13 14:27:37 +08:00
charlie 76ce3f72e8 fix(pdf): insert highlight blocks for the file based graph 2024-06-13 14:18:00 +08:00
Tienson Qin 3ce8100be7 feat: enable git for sqlite
Use the trick from https://stackoverflow.com/a/21789167.
2024-06-13 13:04:00 +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
charlie 02663da968 fix(ui): can't close the page class modal 2024-06-13 09:49:04 +08:00