Commit Graph

142 Commits

Author SHA1 Message Date
Gabriel Horner
b250e262d2 enhance: journal pages and blocks are created on their journal day
Fixes https://github.com/logseq/db-test/issues/77
2024-11-13 14:22:25 -05:00
Gabriel Horner
1a7a2b25ed chore: add a couple assertions for between queries
from #11565. Also stop logging errors for valid between queries and
deleted unused test code
2024-11-11 16:32:35 -05:00
Gabriel Horner
0036a5d9de fix: invalid throws and remove unused values
Caught by updating to latest kondo
2024-10-31 14:12:09 -04:00
Tienson Qin
61d91bd16d refactor: remove # heading chars from block/title
fixes https://github.com/logseq/db-test/issues/129
2024-10-14 16:53:23 +08:00
Gabriel Horner
d4b7720573 fix: remove last {{query reference seen in db graphs
Also fix return val of previous commit
2024-09-25 14:24:02 -04:00
Gabriel Horner
30a652631d fix: incorrect return values when edn parsing fails for queries
safe-read-string assumed all parsed strings were maps by returning {}
on failure. This could lead to subtle bugs in our new query layer and
other non-map features like hiccup
2024-09-25 11:39:29 -04:00
Tienson Qin
fb2cc14444 fix: don't parse parent from namespace pages 2024-09-25 01:54:42 +08:00
Tienson Qin
263a2bf219 feat: add #Cards and :logseq.property/query
Some enhancements:
1. DSL query is a property value (:default type) for better UX.
2. Cards can be selected on the flashcards dialog.
2024-09-24 18:19:05 +08:00
Gabriel Horner
afe4280c6a refactor: DRY up spread out definition of db's
namespace/parent feature. Following up to #11517, provide vars
so it's clear how a feature is used and coupled throughout the codebase
2024-09-23 14:53:12 -04:00
Tienson Qin
b2e69dd846 fix: lint 2024-09-23 17:26:03 +08:00
Tienson Qin
250d7303d1 fix: disallow renaming normal pages to journals
fixes https://github.com/logseq/db-test/issues/118
2024-09-23 17:14:39 +08:00
Gabriel Horner
9423eda275 fix: imported queries don't have #Query
Fixes LOG-3233. Also fix some test idents not being valid
2024-09-17 12:27:46 -04:00
Gabriel Horner
45f8922d6e fix: tag block with #Query
when user types it or when pasted. Fix following up #11508
2024-09-16 17:39:03 -04:00
Gabriel Horner
c594f3c49a fix: update config ux to deprecate :journal/page-title-format
In #11491 we deprecated this config but didn't update config to let
users know. Also disable re-index warning which doesn't apply to db graphs
2024-09-13 08:51:07 -04:00
Gabriel Horner
de6c6aedd2 chore: bump nbb-logseq for datascript bump in #11483 2024-08-26 11:22:40 -04:00
Gabriel Horner
f2b38b5963 fix: stop shadowing vars in deps and turn on related lint
Follow up to last commit. Added some exceptions for cljs.core
to minimize change for now
2024-08-23 16:58:08 -04:00
Gabriel Horner
fc518f0756 fix: block not collapsing for simple queries 2024-08-09 14:39:50 -04:00
Gabriel Horner
20eac03cea refactor: mv common worker/frontend ns to frontend/common
Move common core.async, date and search utils to frontend/common.
Part of LOG-3171
2024-08-09 11:18:32 -04:00
Gabriel Horner
48df03a1fa fix: finish removing arweave
Follow up to a6e0b0a092
2024-08-08 09:24:02 -04:00
Gabriel Horner
c660096937 fix: common test failing due to code organization
datascript based utils should be in db dep. common is for dependency free
namespaces
2024-08-08 09:24:02 -04:00
Tienson Qin
beaa1709bb fix: image paste not work on production 2024-08-08 13:55:08 +08:00
Tienson Qin
75463c4df4 fix: don't depend frontend.(db|state) in worker ns 2024-08-08 10:34:03 +08:00
Gabriel Horner
46c5110701 fix: document and validate a db only config.edn option
Also fix another outdated comment
2024-07-30 17:20:12 -04:00
Tienson Qin
b3a786db02 Merge branch 'feat/db' into refactor/narrow-gap-between-page-and-block 2024-07-29 13:36:00 +08:00
Gabriel Horner
d3f9defb6d chore: bump nbb to latest datascript 2024-07-26 21:27:10 -04:00
Tienson Qin
3799ddd5f4 fix: display tags for pages in cmdk 2024-07-26 12:17:47 +08:00
Gabriel Horner
22cd0b3e50 fix: use nbb compatible math fn 2024-07-25 10:33:56 -04:00
Tienson Qin
eaf35e4a27 Merge branch 'feat/db' into refactor/narrow-gap-between-page-and-block 2024-07-25 16:07:54 +08:00
rcmerci
04e7d2c17b enhance: generate db-ident block's uuid like:
00000002-<hash-of-db-ident>-<fill-with-0>
2024-07-25 11:18:29 +08:00
Tienson Qin
d847023dc1 Refactor: rename :block/content to :block/title 2024-07-10 22:33:44 +08:00
Tienson Qin
a1f352773b refactor: rename :block/original-name to :block/title 2024-07-10 21:43:03 +08:00
Tienson Qin
1854286cf0 refactor: persistent views stored using blocks 2024-07-07 21:05:14 +08:00
Gabriel Horner
e24b386079 Bump nbb with latest datascript
Test fixes are reasonable as datascript catches more invalid uses of
query
2024-06-27 18:07:44 -04:00
Gabriel Horner
d4a323805d fix: deps lints 2024-06-20 09:14:59 -04:00
rcmerci
be41c8bae7 chore: add some comments 2024-06-20 17:01:58 +08:00
rcmerci
dc785a92a7 refactor: make journal-day page's uuid like this
00000001-2024-0620-0000-000000000000
2024-06-20 17:01:58 +08: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
04e71a9a23 Bump datascript for nbb-logseq 2024-05-22 09:37:16 -04:00
Tienson Qin
b4bfd5cc9a chore: use clj-fractional-indexing 2024-05-22 15:21:35 +08:00
Tienson Qin
a5a7a781eb fix: keep the last repeated datom (different value) in batch tx 2024-05-15 07:54:31 +08:00
Tienson Qin
ce4cad2cc7 Refactor/move property handler to outliner dep (#11311)
The end goal is to get rid of `db/transact!` and send outliner ops to
the db worker.

Currently, some property ops are async, set-block-property! will also
need to be async because when setting a non-ref value (e.g. a number
str "2"), we need to query whether a block with the value exists, this
unfortunately, will be an async query, so we're risking turning more
functions to async in the future which makes it hard to reason about
the implementation.
2024-05-13 18:16:21 +08:00
Gabriel Horner
161c5c8565 Merge branch 'master' into feat/db 2024-05-09 08:41:40 -04:00
rcmerci
f69094713f enhance: move missionary-util to src/main/frontend/common/ 2024-05-08 21:56:52 +08:00
Andelf
da78593eb1 fix(sync): cannot delete some nested files
Close #11278
2024-05-08 16:42:41 +08:00
Gabriel Horner
489e7f3422 fix: :default-queries for db graphs
closes LOG-3042. Moved :default-queries to default-config as this allows
for any future fix to automatically update for a user. There's also a
breaking change with this config key from :block/journal? so moving this
to default-config makes the migration easier e.g. just tell users to
remove the config key
2024-05-07 18:03:50 -04:00
Tienson Qin
976e5c2f6b fix: generate n keys for fractional index 2024-05-08 00:37:17 +08:00
Gabriel Horner
719ba8cdbe Merge branch 'feat/db' into refactor/db-properties-schema 2024-05-06 08:38:32 -04:00
rcmerci
b0673fc850 refactor(rtc): remake async upload-graph 2024-05-05 18:20:00 +08:00
rcmerci
9bd1b41441 refactor(rtc): ws2 support s3-presign-url resp 2024-05-05 14:30:15 +08:00
rcmerci
64cd588c1a refactor(rtc): update debug ui with new-impl 2024-05-04 19:35:35 +08:00