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
8253477a9d
fix regression - pages can add schema or page properties
2023-08-03 14:22:23 -04:00
Gabriel Horner
19d52c178b
fix: still disallow invalid property names
...
Issues with using tag or page ref syntax on pages still exist
with db graphs
2023-08-03 11:17:19 -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
Tienson Qin
99ecf6cd42
fix: use select/select component for new property input
2023-08-03 18:53:50 +08:00
Tienson Qin
d3329856af
fix: put alias before tags
2023-08-03 16:24:21 +08:00
Tienson Qin
cdb6d5d7ae
fix: hide page configure for built-in property pages
...
Also, disabled page delete and rename for built-in property pages
2023-08-03 16:01:35 +08:00
Gabriel Horner
24f38f232f
fix: block property deletion
...
e.g. select "Delete property"
2023-08-02 17:30:06 -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
Gabriel Horner
a85e7d4b2a
fix: User shouldn't be able to alter built in properties
...
Allowing this causes all kinds of bugs. Also trivial type fix
for last commit
2023-08-02 14:53:22 -04:00
Gabriel Horner
2c53a1b121
fix: don't display built in property types to user
...
Also add :keyword type as a couple built in properties use it
2023-08-02 12:25:03 -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
50a897153b
fix: alias page crashes if there's a non-page block with alias property
2023-08-02 03:23:51 +08:00
Tienson Qin
bd79b4b7e4
enhance: put alias and tags before other properties
2023-08-02 03:12:53 +08: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
73ce46483b
handle more properties including title, icon, public and filters
2023-08-01 20:50:13 +08:00
Tienson Qin
84f09e01dc
fix: heading level
2023-08-01 20:39:01 +08:00
Tienson Qin
2913af2d96
fix: order list
2023-08-01 20:14:49 +08:00
Tienson Qin
3cc7977d93
fix: heading
2023-08-01 19:16:44 +08:00
Tienson Qin
dbcd082f08
wip: handle built-in properties
2023-08-01 19:03:16 +08:00
Tienson Qin
3333f890ea
fix: entity fn calls
2023-08-01 14:46:48 +08:00
Tienson Qin
8ed57c04c9
fix: page add-property! for db based graphs
2023-08-01 14:18:36 +08:00
Tienson Qin
3ec4c6bedd
remove handler.editor.property
2023-08-01 13:59:06 +08:00
Gabriel Horner
81ae67cdbe
Add timestamp support to sort-by for db graphs
2023-07-31 16:34:33 -04:00
Gabriel Horner
8e360405d6
Fix sort-by for user properties with db graphs
...
sort-by-queries test passes except for timestamps.
Had to introduce another query to resolve property uuids.
Made it as efficient as possible with datoms and pull.
Refactored load-test-files to support journal files and
allow page and block properties from one file
2023-07-31 16:07:23 -04:00
Gabriel Horner
316759eab3
chore: use data- prefix for more intention revealing names
...
data- is a common prefix for indicating an attribute's content is used
to store data for the html app
2023-07-28 16:04:41 -04:00
Gabriel Horner
1d8c1716bf
Allow pages to add/edit/delete their own properties
2023-07-28 16:04:12 -04: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
28692201f0
Render more property val types in query table
...
Add support for ref (single/many) and many non-ref
2023-07-27 17:39:57 -04:00
Gabriel Horner
0ad7796b19
Fix db lints
2023-07-27 16:45:11 -04:00
Gabriel Horner
dca3b3198d
Fix query table not rendering for db graphs
...
Also cleanup result-table component, shui specific setup shouldn't be run
by v1 tables and vice versa
2023-07-27 16:34:20 -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
6cd3b18ed9
Add missing ns docstrings
2023-07-27 10:51:46 -04:00
Gabriel Horner
7bca841afe
Fix lints again to try to keep branch as green as possible
2023-07-27 10:15:27 -04:00
Tienson Qin
1671f540fb
Move property-edit to file-based.property
...
Also, util.property -> file-based.property.util
2023-07-27 11:47:08 +08:00
Gabriel Horner
4a5dd5bd83
Allow dsl-query tests to run from existing :block/content
...
Generate :file/blocks from content thus allowing more tests to run
under db graph. Also loosened a couple query-dsl tests to pass
with db graphs without sacrificing test accuracy
2023-07-26 16:07:41 -04:00
Gabriel Horner
05fdd179de
fix property type not selected in form's dropdown
2023-07-26 10:25:35 -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
01ff0e9a16
Save multi value properties as sets
...
Sets are easier to query
2023-07-24 16:56:53 -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