Gabriel Horner
0f1f8873f3
fix: existing tags and alias are now excluded
...
if they already exist on a block. Also fixed lower case version
of properties not being excluded. Also fixed lint in component ns
2023-08-16 15:40:24 -04:00
Andelf
08e22c44af
fixup! fix(sqlite): multitab support
2023-08-16 18:54:30 +08:00
Andelf
0836e4f6cc
fix(sqlite): multitab support
2023-08-16 18:45:20 +08:00
Andelf
fd0ccf2add
fix(sqlite): graph list and unlinking for in-browser graph
2023-08-16 18:31:02 +08:00
Andelf
eb4476c0b6
fix(sqlite): wrong db query
2023-08-16 14:54:51 +08:00
Tienson Qin
6087d3dfbd
fix: browser db loading
2023-08-16 13:37:35 +08:00
Gabriel Horner
172ee0ae24
Provide sqlite.cli for reusable sqlite fns
...
Already had to do read-graph 3 times and will soon need to it outside
logseq so worth putting this behind an api ns
2023-08-15 18:08:44 -04:00
Gabriel Horner
bcc37eb298
Update publishing to optionally work with db graphs
...
Also updated commandline script
2023-08-15 16:35:03 -04:00
Andelf
849173d081
fix(sqlite,browser): dup today journal page
2023-08-15 23:15:25 +08:00
Andelf
7cf2d5d387
chore: DB version for browser support ( #10016 )
...
- impl storage
- still not working: refreshing, init code
2023-08-15 21:07:31 +08:00
Tienson Qin
4bff0b975f
Add :block/link to ref-type-attributes
2023-08-15 19:22:49 +08:00
Tienson Qin
d75e5c6e72
chore: rename :block/instance to :block/link
2023-08-15 15:15:49 +08:00
Tienson Qin
e2c28aa91a
enhance: hide block refs count for blocks created in property
2023-08-07 18:53:28 +08:00
Tienson Qin
668a17c2af
enhance: be able to collapse/expand properties
2023-08-07 17:31:34 +08:00
Tienson Qin
6ec79d48cb
feat: property icon emoji picker
2023-08-07 15:03:03 +08:00
Tienson Qin
5d2e65b8f8
enhance: use row layout for multiple pages
2023-08-04 12:21:09 +08:00
Gabriel Horner
6537f0dfab
Loosen property name check for db graphs
...
properties don't need to be keywords for db graphs since property names
aren't involved in property storage. This change allows for property
names to have whitespace and be invalid edn.
See #6753 for example bugs that db-validation-property-name? catches
2023-08-03 17:00:49 -04:00
Gabriel Horner
47cea36e7d
fix: add back disallowing adding hidden built-in properties
...
Without this adding a built in prop and value leads to it disappearing
with no explanation. Also cleaned up gp-property into sections mostly
to differentiate between file and db graph properties
2023-08-03 10:11:23 -04:00
Gabriel Horner
d3ba0de946
fix: user can't add hidden built-in properties to blocks
...
Allowing this leads to errors e.g. user adds 'query-properties' property
and then adding value throws error b/c of internal schema type :coll
2023-08-02 15:39:18 -04:00
rcmerci
aff2620505
persist edit-operation
2023-08-02 22:54:05 +08:00
Gabriel Horner
e85557bacd
Fix graph-parser lint
...
Also bump property perf for db-graph as it's a little slower but
still within reasonable range
2023-08-01 16:48:35 -04:00
Gabriel Horner
991c0994e5
All query-dsl tests pass for db graphs
...
Add to CI. Also fix graph-parser lint and typo
2023-08-01 16:34:48 -04:00
Tienson Qin
4f24c80b33
fix: add back support for alias and tags
2023-08-02 03:09:55 +08:00
Tienson Qin
15cb78fbf7
fix: add pre-configured properties when creating a new db graph
2023-08-02 01:49:23 +08:00
Gabriel Horner
791bd90d88
Fix frontend code breaking a deps library again
...
Please run `yarn test` in a dep to ensure it still works /cc
@tiensonqin. See 84b80e8b76
for previous
examples
2023-08-01 11:18:10 -04:00
Tienson Qin
8e9a189ba1
handle whiteboard built-in properties
2023-08-01 21:48:36 +08:00
Tienson Qin
db5e0a6571
handle pdf annotation properties
2023-08-01 21:23:00 +08:00
Tienson Qin
dbcd082f08
wip: handle built-in properties
2023-08-01 19:03:16 +08:00
Gabriel Horner
0b09b6af56
Fix db lint
2023-07-28 10:46:40 -04:00
Gabriel Horner
84b80e8b76
Fix electron code breaking db deps again
...
Introduced by last commit /cc @rcmerci. This has happened previously at
0c533a9032
and
8a1c54173b
. Please run `yarn test` in
deps/db to catch this
2023-07-28 10:27:24 -04:00
rcmerci
be7cb85e35
update some rtc related ns
2023-07-28 18:52:51 +08:00
Gabriel Horner
0ad7796b19
Fix db lints
2023-07-27 16:45:11 -04:00
Gabriel Horner
cd4059c890
Add support for page property queries
...
page-property-queries test passes
2023-07-27 11:57:10 -04:00
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