Gabriel Horner
2bd7a8d496
Fix querying for multi non-ref vals and single page-ref
...
Also fixed db lint
2023-07-25 17:27:43 -04:00
Gabriel Horner
3f52860cf1
Fix perf issue with property rules for db graphs
...
Use multiple clauses instead as confirmed by perf test.
Using multiple clauses made rule preparation for d/q more complex
so introduced extract-rules
2023-07-25 17:20:17 -04:00
Gabriel Horner
e9fecfa280
Fix property rules for advanced queries with db graphs
...
and provide a rules var just for db graphs.
Also simplify query-dsl db-graph support as query-dsl/parse-query
doesn't need to know about db graphs for how it's used
2023-07-25 13:53:18 -04:00
Gabriel Horner
0ca7d1a4de
Fix multi-valued properties and enable first property graph test
...
Run db prop test with: DB_GRAPH=1 node static/tests.js -i focus
2023-07-24 16:42:36 -04:00
Gabriel Horner
4920b3a98e
Fix lints and fix graph-parser cljs tests
...
not running due to missing db dep
2023-07-24 14:06:57 -04:00
Gabriel Horner
40237b912f
Remove nonexistent :block/unordered from test
2023-07-24 12:32:08 -04:00
Gabriel Horner
5f91e6cf0f
Merge branch 'master' into feat/db
2023-07-24 12:21:19 -04:00
Gabriel Horner
ba53bf297c
Remove last use of :block/unordered
...
This was coming directly from the block's ast so it was harder to trace
2023-07-24 10:26:02 -04:00
Gabriel Horner
2b90b0462a
Remove explicit :block/unordered that should already be deleted
2023-07-24 10:26:02 -04:00
Gabriel Horner
b46959f670
Fix: basic property queries not working
...
{{query (property :foo "bar")}} and {{query (property :foo)}} should now
work
2023-07-21 17:27:03 -04:00
Gabriel Horner
48009adaf9
chore: reuse common helper for stringifying datoms
2023-07-20 18:37:22 -04:00
Gabriel Horner
d7eeea28dd
Add a test that ensures file and db graphs have expected datoms
2023-07-20 18:27:07 -04:00
Tienson Qin
b32d2caa2d
fix: built in pages don't have client side timestamps
2023-07-19 17:34:04 +08:00
Tienson Qin
eb35d45d73
Remove :block/properties-text-values for db based graphs
2023-07-19 12:25:11 +08:00
Gabriel Horner
dc2707e398
Remove unused :page_uuid datoms
2023-07-18 13:38:30 -04:00
Gabriel Horner
9310e9e449
Fix db lints
...
Split out a common fn from restore-initial-data to make it
more readable
2023-07-17 12:56:01 -04:00
Tienson Qin
23d3091fce
Added :block/instance to db schema
2023-07-10 16:44:51 +08:00
Tienson Qin
3820cb7ff6
feat: structured pages
2023-07-10 03:01:40 +08:00
Konstantinos Kaloutas
fb63c32a56
Revert "defer loading html2canvas"
...
This reverts commit 16e0c3713f .
2023-07-10 00:54:54 +08:00
Konstantinos Kaloutas
b7710e570c
Revert "defer loading code-editor"
...
This reverts commit 4f067f4003 .
2023-07-10 00:54:54 +08:00
Konstantinos Kaloutas
20c54c82e3
defer loading code-editor
2023-07-10 00:54:54 +08:00
Konstantinos Kaloutas
1e30a2030f
defer loading html2canvas
2023-07-10 00:54:54 +08:00
Tienson Qin
a0d6107d99
feat: class && configuration
2023-07-09 21:35:06 +08:00
Gabriel Horner
671453aadb
Add nbb script to demonstrate datascript querying a sqlite db
...
Also give test vars more appropriate name
2023-07-08 16:20:42 -04:00
Gabriel Horner
47e1b06f76
Move over restore-other-data and add a test for it
2023-07-08 02:11:35 -04:00
Gabriel Horner
586749c918
Move over restore-initial-data and add the first sqlite to datascript test
2023-07-07 16:43:31 -04:00
Gabriel Horner
62c550e26d
Updated timestamp column types to match actual usage
2023-07-06 14:11:58 -04:00
Gabriel Horner
fa01aefa24
Add an explicit new-db! for new db graphs to simplify other fns
...
Previously open-db! and upsert-blocks! had graph creation
and connection responsibilities. These shouldn't be needed if
new and existing databases have clear entry points
2023-07-04 13:06:21 -04:00
Gabriel Horner
016f7848ce
Add some basic constraints to blocks
...
Without the uuid and type constraints we wouldn't be able to use the
data. Without unique names, it'd be easy for the app to create long running
bugs with duplicate pages
2023-07-03 16:21:23 -04:00
Gabriel Horner
ceb9a1d726
Load more latest journals to reduce the likelihood of an initially buggy journals view
...
Reduces the likelihood of
https://linear.app/logseq/issue/LOG-2650/journals-view-shows-outdated-and-uneditable-journal-pages
occurring but it can still happen for more than 3 journal pages
2023-07-03 14:53:42 -04:00
Gabriel Horner
d82e388ea3
Fix: file pages should save their name
2023-07-03 10:54:30 -04:00
Gabriel Horner
045c51cded
Use sqlite.db ns in electron.db
...
- Add more tests for sqlite.db
- Update readme and CI for db's tests
2023-06-30 17:36:01 -04:00
Ben Yorke
6f984d45ef
cmdk
2023-06-30 20:59:05 +02:00
Gabriel Horner
2ab6370dda
Add tests for core sqlite db fns
...
These core db fns have been split out to be platform agnostic
so they can be run on CLI or non electron platforms
2023-06-30 11:45:39 -04:00
Ben Yorke
4e2d980955
button and cmdk
2023-06-30 09:37:07 +02:00
Ben Yorke
1e264c9c76
Update codemirror
2023-06-30 09:35:34 +02:00
Ben Yorke
a7b9c01586
Add native gradient support
2023-06-30 09:35:32 +02:00
Ben Yorke
641a38afa6
Setting of radix colors
2023-06-30 09:33:35 +02:00
Ben Yorke
fe874cf163
adr shui
2023-06-30 09:32:53 +02:00
Gabriel Horner
b56cbf0fd2
Fix: one more exception to rule linter
2023-06-28 09:28:42 -04:00
Tienson Qin
c81e114a1c
fix: lint
2023-06-28 15:20:22 +08:00
Tienson Qin
d078e207ae
fix: export pages test
2023-06-28 14:25:25 +08:00
Gabriel Horner
7d46784c40
Fix: common lint
2023-06-27 16:44:41 -04:00
Gabriel Horner
75ff4db4aa
Fix: circular dependencies again b/n deps <-> frontend
...
Breaks setup of deps/ and most tests
2023-06-27 16:39:10 -04:00
Gabriel Horner
c11e94ed59
Fix default-page creation for start-conn
2023-06-27 14:39:31 -04:00
rcmerci
0c4e9bf4d4
split db-version query rules
2023-06-27 19:28:12 +08:00
rcmerci
f6080b3657
update property query rules
2023-06-27 15:21:37 +08:00
Tienson Qin
70406332dc
fix: namespace whiteboard pages import
2023-06-27 14:00:33 +08:00
Tienson Qin
23d918dcc2
Merge branch 'master' into feat/db
2023-06-26 20:10:41 +08:00
Andelf
a59ecb370d
chore(deps): bump diff-merge to 0.1.0
2023-06-26 19:20:04 +08:00