Tienson Qin
6a976ca0e2
Deprecate more db attributes for db graphs
2024-04-28 22:29:47 +08:00
rcmerci
e9f5137a86
refactor(rtc): add frontend.worker.rtc.ws2
...
- backoff reconnect websocket
- auto reconnect closed websocket when sending data
- support timeout when receiving data from websocket
- support cancel
2024-04-28 20:02:00 +08:00
Tienson Qin
5d4ae66d86
revert: remove :block/properties
2024-04-28 19:44:53 +08:00
Tienson Qin
d0e2a0991b
fix: :string could be entity for closed values
2024-04-28 18:06:50 +08:00
Tienson Qin
c4e0bda579
fix: add :string to user faced and disable :default for closed value
2024-04-28 17:48:33 +08:00
Tienson Qin
6272dd112a
fix: use :string instead of :default type for built-in property
2024-04-28 17:06:26 +08:00
Tienson Qin
5a8065db88
fix: template not working for file graphs
2024-04-28 15:18:45 +08:00
Tienson Qin
b90eb36e83
perf: load datoms instead of pull data when app loads
2024-04-28 09:23:13 +08:00
Gabriel Horner
1b3b3afd32
fix: invalid placeholder for :date and :page
2024-04-26 09:22:46 -04:00
charlie
82a1a18762
refactor(ui): simplify the old shui codes and remove support for the table.v2
2024-04-26 16:47:53 +08:00
Gabriel Horner
edca3049c0
chore: remove unused fn
2024-04-25 11:24:08 -04:00
Gabriel Horner
3681ac354b
fix: move db-pipeline and datascript-report back to outliner dep
...
graph-parser is primarily a file graph dep that is maintained separately
from db graphs. We want to move as many namespaces out of it as
possible. Also moved differing count assertions to
their respective tests
2024-04-25 11:22:14 -04:00
Gabriel Horner
cb22dca5e0
fix: db tests
2024-04-25 09:39:02 -04:00
Tienson Qin
b84ea96160
fix: handle more non-consecutive cases
2024-04-25 20:39:15 +08:00
Tienson Qin
331aa50379
fix: delete blocks might be consecutive but reversed
2024-04-25 20:28:06 +08:00
Tienson Qin
d82c7fa2f5
fix: tests
2024-04-25 17:33:37 +08:00
Tienson Qin
b55c064305
fix: move :block/path-res calculation to dep graph-parser
2024-04-25 16:50:04 +08:00
Tienson Qin
bcd04dba05
fix: file graph issues
2024-04-25 15:57:14 +08:00
Tienson Qin
349542b7b9
fix: add journal to all pages filter
2024-04-25 14:59:14 +08:00
Gabriel Horner
878d69f342
fix: graph parser tests
...
extract and dependent namespaces require a db now and :block/path-refs
is no longer being handled in this dep
2024-04-24 16:55:24 -04:00
Gabriel Horner
c87c077d29
enhance: new classes can be case sensitive
2024-04-24 15:18:20 -04:00
Gabriel Horner
297e408f6f
fix: db graphs can use case sensitive properties
2024-04-24 14:25:29 -04:00
Tienson Qin
d416687b7b
fix: :block/original-name shouldn't be unique
...
There're at least two use cases for same page original names:
1. multiple clients can create pages with the same title
2. multiple tagged blocks can have the same :block/original-name
2024-04-24 22:49:57 +08:00
Tienson Qin
706f3c76c2
fix: lazy load class and properties
2024-04-24 22:37:10 +08:00
Tienson Qin
e01a771d52
fix: add journal type to malli schema
2024-04-24 20:16:23 +08:00
Tienson Qin
96bdda45fb
fix: disable :block/type filter for now
2024-04-24 20:14:55 +08:00
Tienson Qin
8d9e6da41e
refactor: use :block/type for journal pages instead of :block/journal?
...
breaking change:
removes :block/journal attribute
2024-04-24 20:12:15 +08:00
Tienson Qin
558606e18d
fix: property test
2024-04-24 19:38:51 +08:00
Tienson Qin
fef4e896e1
fix: use existing property pair if exists
2024-04-24 19:13:48 +08:00
Tienson Qin
6d7d4497ff
fix: loading whiteboard
2024-04-24 18:19:12 +08:00
Tienson Qin
13edd74c2c
fix: can't save whiteboard updates
2024-04-24 17:59:01 +08:00
Tienson Qin
0a13e436be
fix: loading block property values
2024-04-24 16:53:08 +08:00
Tienson Qin
4cb2ac6a46
fix: load all classes when app starts
2024-04-24 13:37:34 +08:00
Gabriel Horner
2f0fc3c18c
fix: large graph creation having blank and incorrect block counts
...
large graph chunking assumed a certain tx order which isn't guaranteed.
There are also some edge cases where blocks could get separated from
each other which are now fixed. Also fixed a bug with validating user
properties and made small enhancement for query script
2024-04-23 09:25:07 -04:00
Gabriel Horner
2fad540d01
chore: cleanup setting :many property values
...
and validating them. Setting :many property values was spread
across fns, hard to understand and needlessly validating differently.
Removed type inferring for :many as it's not possible to do this from
the UI
2024-04-22 16:30:53 -04:00
Gabriel Horner
71f01b1115
fix: load user defined closed values
...
they aren't lazy loaded by the UI
2024-04-22 14:16:04 -04:00
Tienson Qin
912ddd6ca2
Merge branch 'feat/db' into refactor/db-properties-schema
2024-04-22 23:57:57 +08:00
Tienson Qin
a15066c862
perf: db reload
...
Load as less pages && closed values as we can to avoid loading too
much data.
We already know that transacting db attributes is slow, going to
investigate it later.
2024-04-22 23:48:40 +08:00
Gabriel Horner
543677ef32
fix: outliner lint
2024-04-22 11:14:14 -04:00
Gabriel Horner
0bee9b12c0
fix: frontend lints and remove dead code
2024-04-22 11:10:16 -04:00
Gabriel Horner
1b66755876
fix: outliner lint
2024-04-22 10:50:37 -04:00
Gabriel Horner
b09031579e
fix: remove outdated code which was causing circular deps in db dep
2024-04-22 10:41:00 -04:00
Tienson Qin
4a0736f62b
fix: property unit tests
2024-04-22 08:50:51 +08:00
Tienson Qin
5a595b1626
fix: property tests
2024-04-21 15:19:38 +08:00
Tienson Qin
44af2213ce
Merge branch 'feat/db' into refactor/db-properties-schema
2024-04-21 13:22:37 +08:00
Gabriel Horner
8f411fad42
enhance: allow user properties with other namespaces
...
to allow for imported properties to have a different namespace than the
one the editor generates. Update schema example graph which now imports
properties as :schema.property/X
2024-04-19 16:54:06 -04:00
Gabriel Horner
311cd13e1f
enhance: closed value membership validated everywhere
...
Frontend and lower-level validation now validate the same.
Also simplified metadata injection
2024-04-19 14:10:16 -04:00
Gabriel Horner
449d4d3600
fix: generate schema graph with new properties
...
Also remove unused bindings and basic validation to graph creation
2024-04-19 10:45:30 -04:00
Tienson Qin
b1bc1ca88a
chore: remove debug
2024-04-19 20:17:53 +08:00
Tienson Qin
20006eafa8
fix: update :block/page when moving between pages
2024-04-19 20:16:39 +08:00
Tienson Qin
113ff4e669
fix: can't move blocks to empty page
2024-04-19 19:54:11 +08:00
rcmerci
bffd1b5c8e
refactor: batch-tx
2024-04-19 17:48:48 +08:00
Tienson Qin
e7e5994e70
fix: batch tx counter name
2024-04-19 16:15:17 +08:00
Tienson Qin
0085accf70
refactor: batch tx
...
outliner-tx/transact! now operates outliner op one by one instead of
batching processing, the benefit is that we can safely rely on the ops
order, it simplifies code a lot too.
2024-04-19 16:11:42 +08:00
Tienson Qin
08c5cc18d0
refactor: simplify outliner move blocks
...
The new implementation doesn't rely on insert-blocks, instead, it
will move the blocks one by one, but using batch tx.
2024-04-19 16:11:42 +08:00
Gabriel Horner
0372cb6e62
fix: typing marker creates tasks e.g. DOING
2024-04-18 14:13:58 -04:00
Gabriel Horner
3f566b36de
fix: basic editing of background-image property
...
and other future :string properties
2024-04-18 10:48:26 -04:00
Gabriel Horner
9bab096def
fix: built-in string properties with internal :string type
...
Also fix a bug that caused numbered list to fail after first item
2024-04-18 09:06:10 -04:00
Tienson Qin
f0920ac89b
fix: another case of non-consecutive blocks move
2024-04-18 20:42:26 +08:00
Tienson Qin
40775e1f80
fix: move a child block to its parent's right sibling
2024-04-18 19:04:44 +08:00
Tienson Qin
2296eca383
chore: don't run fix non-consecutive when it's not needed
2024-04-18 18:43:16 +08:00
Tienson Qin
24e1aab914
fix: skip computing :block/left for non-consecutive blocks
2024-04-18 15:24:47 +08:00
Tienson Qin
ca197c439a
prn db transit if left/parent point to self detected
2024-04-18 14:24:53 +08:00
Tienson Qin
76248b4664
Add trace for debugging
2024-04-18 13:56:33 +08:00
Tienson Qin
9418607c50
Ensure :block/left and :block/parent not point to self
2024-04-18 13:52:05 +08:00
Gabriel Horner
390892e524
fix: build all closed value property types correctly
...
Fixes building of :url and :number closed value properties which
affected properties graph and would effect future built-in properties.
Also simplify translation of property values by keeping it only
in create-graph namespaces
2024-04-17 15:52:55 -04:00
charlie
df046850cc
enhance(shui): fix custom dropdown trigger content for the :as-child option
2024-04-17 23:28:02 +08:00
Gabriel Horner
71aa3fed7b
fix and enhanced validation of property values
...
Fixed close value validation of url and number.
Enhanced :default, :page and :date types with stricter checks.
Closed values are now validated at the malli-schema level
2024-04-17 11:12:27 -04:00
Tienson Qin
d4b2958af7
fix: add new closed value to :default type property
2024-04-17 21:18:00 +08:00
Tienson Qin
2a7e6accb0
refactor: force outliner.tree/-del to delete all children
...
Except the children have been moved.
2024-04-17 17:48:59 +08:00
rcmerci
ffb4bd5a8f
chore: update comment
2024-04-17 17:36:00 +08:00
rcmerci
6bce34524a
fix: check dep-cycle in sort-coll-by-dependency
2024-04-17 17:31:54 +08:00
charlie
dff255fd42
enhance(ux): WIP refactor the editor command modals with the shui components
2024-04-17 16:03:09 +08:00
Tienson Qin
1240052117
fix: undo redo
...
outliner.core/delete-blocks will filter top-level blocks first to
avoid deleting parent first and then children.
2024-04-17 14:54:31 +08:00
Gabriel Horner
37974a8e80
fix: built-in? not working
...
Also fix :entity type incorrectly allowing things to be edited as
:default when it's an internal property type. No longer need this as
:default can be used for closed :entity values
2024-04-16 14:57:43 -04:00
Gabriel Horner
0aa4bda66c
fix: inlined db-based-graph? calls in db-property
...
Addressed fixmes for db-based-graph fns that were inlined to prevent
circular dependencies b/n db-property and sqlite-util. Moved multi
graph fns to db-property-util and existing db-property-util to
db-property-build to address this
2024-04-16 14:43:28 -04:00
Tienson Qin
bacba9db6e
fix: delete property pair entities when deleting a property page
2024-04-17 01:56:34 +08:00
Gabriel Horner
6f5b744189
fix: use user-property type :default for public built-in properties
...
Fixes a property configuration issues since configuration works with
user-property types. Also remove :entity from UI as it is an internal
property type and we can now use :default type
2024-04-16 12:29:24 -04:00
Gabriel Horner
0853940a34
fix: closed :default values validate correctly
...
and values can be selected from UI. Also tweak query to expand
properties if available
2024-04-16 11:59:04 -04:00
Tienson Qin
2195c4b63a
fix: convert to ref type when updating a property to closed values
2024-04-16 23:24:53 +08:00
Tienson Qin
8554e15be7
fix: closed values for default type
2024-04-16 21:04:19 +08:00
rcmerci
842efe5958
test(undo): add random outliner-ops testcase
2024-04-16 18:58:40 +08:00
rcmerci
cf4e43e126
fix: remove wrong cond when delete-blocks
2024-04-16 18:58:40 +08:00
Tienson Qin
202576a862
fix: load property pairs for structured blocks
2024-04-16 16:30:03 +08:00
Tienson Qin
daafe5f4e0
fix: default type values
2024-04-16 15:56:43 +08:00
Gabriel Horner
1e1a17aaf4
fix: validation of single value for a :many property
...
Single value of a :many property wasn't being rolled up as a set,
in CLI or in app validation
2024-04-15 17:17:24 -04:00
Tienson Qin
09f65cf842
fix: lazy load properoty value blocks
2024-04-16 00:49:29 +08:00
Gabriel Horner
236a28764b
fix: new property values invalid because of placeholder
...
Also use cardinality in validation instead of previous hacky value-based
detection. Also disable closed-values generation so new graphs can
temporarily be valid
2024-04-15 12:22:21 -04:00
Gabriel Horner
8ec360759a
enhance(dev): humanize option for validation script
...
also fix nil entity query results
2024-04-15 09:36:09 -04:00
Tienson Qin
4828cfa17d
fix: handle situations when block values have been retracted
2024-04-15 21:05:11 +08:00
Tienson Qin
fb93a35fbc
fix: store text values as entities
2024-04-15 20:39:36 +08:00
Tienson Qin
e19879a12a
fix: cleanup property related data
2024-04-15 17:00:46 +08:00
Tienson Qin
3e0849cb16
fix: set more properties as hidden properties
2024-04-15 13:01:46 +08:00
Tienson Qin
81da3a9960
enhance: move tags and icon to properties area too
2024-04-15 12:52:53 +08:00
Tienson Qin
dd0de0b45f
fix: closed value icon
2024-04-15 12:11:45 +08:00
Tienson Qin
356f45b8e5
Merge branch 'feat/db' into refactor/db-properties-schema
2024-04-15 11:38:34 +08:00
charlie
1e6a7f9010
fix(ui): close all for the shui popups
2024-04-14 11:18:11 +08:00
Tienson Qin
ebe67390fa
perf: no need to get all the property pairs when asking for only one
2024-04-14 08:33:53 +08:00
Tienson Qin
e03b5a2322
fix: property pairs lazy load
2024-04-14 08:19:59 +08:00
Tienson Qin
47abd92155
fix: load property pairs too when lazy load a block
2024-04-14 08:13:10 +08:00
Tienson Qin
16a39c8e7b
fix: tags not displayed for blocks
2024-04-14 07:56:56 +08:00
rcmerci
836cedfd7f
fix(undo): sort&merge undo-ops
...
because maybe some ops depend-on others, e.g. insert parent first then
its children.
2024-04-13 19:53:38 +08:00
Gabriel Horner
8ac39b3cbb
fix: adding new properties for some property actions
...
Also removed duplicate helper fn
2024-04-12 21:53:04 -04:00
Gabriel Horner
b99af712b2
fix: validating user :many properties
...
User properties with :many cardinality were overriding each other
instead of aggregating
2024-04-12 17:33:56 -04:00
Gabriel Horner
8cbc0ac32a
fix: validate property values
2024-04-12 15:27:26 -04:00
Gabriel Horner
7003903edd
fix: new graph creates hidden pages all with same name '$$$'
2024-04-12 12:50:09 -04:00
Gabriel Horner
4771a97d09
fix: page-property rules to use latest schema
2024-04-12 12:29:47 -04:00
Gabriel Horner
4f3b7e7687
fix: ref checks in schema
...
attribute in the wrong schema and db graph only vars had file graph
keys. Also temp fix to avoid crashing ui with props
2024-04-12 12:15:59 -04:00
Gabriel Horner
b2a22498ea
fix: closed validation with new properties
...
Also fix group error reporting incorrectly and improve it by adding
:db/id
2024-04-12 11:32:03 -04:00
Gabriel Horner
354c0c1e42
fix: built-in? helper and most deps tests
...
Also fix validate script's count
2024-04-12 10:04:43 -04:00
Gabriel Horner
97367c3d4f
fix: add timestamps to built-in property pair
...
Also cleanup build-initial-properties and remove unused ns
2024-04-11 18:23:52 -04:00
Gabriel Horner
cbcff4bae8
fix: schema graph creation for previous properties schema
...
Also add db/id to query script and fix outdated case insensitive
constraint on property db idents
2024-04-11 17:46:49 -04:00
Gabriel Horner
e07fd51c83
fix: new db graph creates properties correctly
...
Also fix basic validation
2024-04-11 17:42:51 -04:00
Tienson Qin
1a9608bda1
fix: property handler with the new properties pair storage
2024-04-12 01:17:37 +08:00
Tienson Qin
89b40b4ad8
Extends entity for new :block/properties and direct property access
2024-04-12 00:05:20 +08:00
Tienson Qin
81e5d5f68f
fix: remove frontend.config usage from graph parser dep
2024-04-11 23:02:50 +08:00
Tienson Qin
00967481ad
Merge branch 'refactor/db-properties-schema' into refactor/db-remove-block-name-unique
2024-04-11 20:32:12 +08:00
Tienson Qin
419eac1b16
Merge branch 'feat/db' into refactor/db-properties-schema
2024-04-11 19:56:34 +08:00
Tienson Qin
da96052908
fix: safe check db before get-pid
2024-04-11 17:18:25 +08:00
Tienson Qin
e979e8158c
fix: add db schema for :editor/tx-batch-mode?
2024-04-11 16:45:20 +08:00
Gabriel Horner
527dae34dc
fix: class properties schema
2024-04-10 14:03:39 -04:00
Tienson Qin
7007fa7d41
fix: status and priority should be :entity type
2024-04-10 21:07:20 +08:00
Tienson Qin
8d128f420c
Merge branch 'refactor/db-properties-schema' into refactor/db-remove-block-name-unique
2024-04-10 16:14:47 +08:00
Gabriel Horner
4f8d76c79f
Merge branch 'feat/db' into refactor/db-properties-schema
2024-04-09 16:29:46 -04:00
Gabriel Horner
a42e5f659a
fix: new graphs don't create unused hidden pages for
...
date and page closed properties. Observed with properties graph
2024-04-09 14:53:47 -04:00
Gabriel Horner
c29d4a3a70
chore: property type vars should be in property.type
...
also remove unused :block and :uuid types
2024-04-09 14:07:46 -04:00
Gabriel Horner
fcecbcfa76
fix: switching page closed values
2024-04-09 09:49:59 -04:00
charlie
f77a6b42d9
chore(dev): chilly keys warning
2024-04-09 18:41:14 +08:00
Gabriel Horner
a608139975
fix: new db graph doesn't silently clobber db/ident's
...
if they conflict
2024-04-08 16:54:22 -04:00
Gabriel Horner
6a2b6d2913
fix: adding class properties can result
...
in clobbered db idents. Also rename fn to make its
purpose explicit
2024-04-08 16:32:27 -04:00
Gabriel Horner
ea1cc87d77
fix: properties silently clobbered each other if
...
they had the same unique db-ident. Ensure a unique db-ident with
automatic db-ident suffixes. Also add tests for this and add more
sanitization to property db idents
2024-04-08 15:06:39 -04:00
Tienson Qin
9f9bfbc5e6
Merge branch 'feat/db' into refactor/db-remove-block-name-unique
2024-04-08 23:56:46 +08:00
Tienson Qin
6df866a2d1
fix: handle more whiteboard properties
2024-04-08 22:56:14 +08:00
Tienson Qin
2940e86d74
fix: save whiteboard
2024-04-08 22:54:56 +08:00
charlie
618f3bd107
Merge branch 'master' into feat/db
2024-04-08 19:00:51 +08:00
Tienson Qin
cd38e0b9f9
fix: calculate :block/path-refs when adding new graph or re-index
2024-04-08 17:24:51 +08:00
charlie
57af873bf4
enhance(ux): support more align position for the shui dialog
2024-04-08 11:40:36 +08:00
Tienson Qin
210be5aaca
fix: creating redundant pages when editing a block
2024-04-08 01:25:48 +08:00
Tienson Qin
ede9e5df5d
fix: page names in refs not updated after renamed
2024-04-07 22:25:56 +08:00
Tienson Qin
a324d845b2
fix: don't parse refs from quoted string
2024-04-07 21:35:14 +08:00
Tienson Qin
b5f0f58efc
fix: missing refs for property text values when creating a page
2024-04-07 21:35:14 +08:00
Tienson Qin
dab2a6e563
fix: disable namespace for db based graphs
2024-04-07 17:29:21 +08:00
Tienson Qin
0b49d09fb1
fix: db schema validate
2024-04-07 17:26:58 +08:00
Tienson Qin
c815fa9823
fix: schema error for :class/schema.properties
2024-04-07 16:31:00 +08:00
Tienson Qin
75d35f9202
enhance: display exact invalid entity map for schema invalidations
2024-04-07 16:12:53 +08:00
Tienson Qin
f52993ec6d
fix: tests and lint warnings
2024-04-07 14:27:05 +08:00
Tienson Qin
6eb6e60b55
Bring back namespaces/page merge/nested pages
2024-04-07 13:48:55 +08:00
Tienson Qin
b9195e40e5
Merge branch 'refactor/db-properties-schema' into refactor/db-remove-block-name-unique
2024-04-06 07:59:06 +08:00
Gabriel Horner
009e5b6d62
enhance: consistently create sanitized property ident
...
for new properties. Also made build-new-property easier to
use by making property name optional
2024-04-05 16:55:40 -04:00
Gabriel Horner
3793cf6d81
fix: 2 fns that don't work in nbb b/c of :block/properties
2024-04-05 15:16:26 -04:00
Gabriel Horner
514b5b5d56
fix: numbered list in db graphs
2024-04-05 15:00:17 -04:00
Gabriel Horner
e7bd84850d
chore: clean up repeated uses of db attribute properties
2024-04-05 14:04:33 -04:00
Gabriel Horner
38849bf706
chore: cleanup different definitions of property
...
Also fixed some outdated docstrings
2024-04-05 13:27:39 -04:00
Gabriel Horner
6045969179
fix: db tests and rename empty-placeholder to
...
be consistent with other ident namespaces
2024-04-05 09:36:05 -04:00
Tienson Qin
0bc8d1c3b1
Merge branch 'refactor/db-properties-schema' into refactor/db-remove-block-name-unique
2024-04-05 15:16:13 +08:00
Tienson Qin
ac31842cec
Revert "Remove :block/macros"
...
This reverts commit 21d550de12
.
2024-04-05 15:12:56 +08:00
Tienson Qin
ea98a1623e
Merge branch 'refactor/db-properties-schema' into refactor/db-remove-block-name-unique
2024-04-05 09:56:39 +08:00
Tienson Qin
04b00322a3
fix: add class property
2024-04-05 09:47:23 +08:00
Gabriel Horner
14a3e5287b
enhance: ident validation
...
block properties and class idents now have specific validation.
Also cleaned up overlapping ident definitions and updated incorrect
docstrings
2024-04-04 21:39:10 -04:00
Gabriel Horner
608d627544
fix: add back properties validation
...
and fix closed validation. Also temporarily comment out properties graph parts
that are still invalid
2024-04-04 21:09:28 -04:00
Tienson Qin
b096b4673c
fix: use :entity type instead of :uuid for ref type values
2024-04-04 16:58:24 -04:00
Gabriel Horner
7c1f52d2a4
chore: add format to build-new-page
...
every use of it was adding it manually
2024-04-04 09:25:20 -04:00
Gabriel Horner
3e504f5ab9
dev: add more tests for page-property rule
2024-04-04 09:22:39 -04:00
Tienson Qin
eea1858040
fix: can't add alias
2024-04-04 18:16:23 +08:00
Tienson Qin
035fbb46c9
fix: use :entity type instead of :uuid for ref type values
2024-04-04 18:07:26 +08:00
Tienson Qin
8054150eef
fix: unit tests
2024-04-04 15:57:49 +08:00
Tienson Qin
bf539751a8
disable rtc merge tests for now
2024-04-04 15:57:49 +08:00
Tienson Qin
6167abe160
fix: extract page from whiteboard edn
2024-04-04 15:57:49 +08:00
Tienson Qin
1b32378884
more places to use db eid instead of page name
2024-04-04 15:57:49 +08:00
Tienson Qin
c018f1517d
perfer to use get-page instead of get-first-page-by-name
2024-04-04 15:57:48 +08:00
Tienson Qin
1f32893547
fix most issues on whiteboards
2024-04-04 15:57:48 +08:00
Tienson Qin
4a63f78aa8
fix: zoom into block
2024-04-04 15:57:48 +08:00
Tienson Qin
9df8918f94
Remove more :block/name lookup ref usage
2024-04-04 15:57:48 +08:00
Tienson Qin
60d4fca0ba
wip: remove :block/name uniqueness for db based graphs
...
This PR also remove supports for:
1. merge pages when renaming a page to existing page
2. namespaces such as a/b/c
3. nested page such as [[a [[nested page]]]]
Pages merge might be added back depends on RTC, but it should be
decoupled from renaming, otherwise it's too complex.
Namespaces and nested pages have been contributed some critical bugs
that lead data-loss, they're so complex together with page alias,
it's just impossible to have a good test coverage and ensure the app
is stable, especially when page rename and RTC.
2024-04-04 15:57:48 +08:00
Gabriel Horner
c448e9a0d0
enhance: convert has-page-property rule with tests
...
also started on page-property rule. Tests confirm that
binding won't be an issue unlike the previous version
of these rules
2024-04-03 17:20:44 -04:00
Gabriel Horner
a8a2afbf4a
chore: allow query script to fetch by entity
2024-04-03 09:00:38 -04:00
Tienson Qin
7084b53dad
Merge branch 'feat/db' into refactor/db-properties-schema
2024-04-03 20:29:11 +08:00
rcmerci
a7c8451ce4
refactor(undo): update ns frontend.worker.undo-redo (wip)
2024-04-03 17:59:13 +08:00
Gabriel Horner
661cdc8636
fix: built-in properties with :name have incorrect names
...
Properties like logseq.table.version weren't available to add.
Also added conflict detection on properties graph which is how I
indirectly found this bug
2024-04-02 15:57:33 -04:00
Gabriel Horner
3d49585078
fix: create properties graph and validate graph script
2024-04-02 13:58:52 -04:00
Tienson Qin
298555d36c
Still treat properties as pages
2024-04-02 23:11:52 +08:00
Gabriel Horner
12c667fabb
Update nbb-logseq to latest datascript
2024-04-02 09:36:28 -04:00
Tienson Qin
13a5f91cd4
fix: use property db/ident instead of name
2024-04-02 11:59:57 +08:00
Gabriel Horner
c4fc3a193e
fix: new graph should be valid
...
closed values were invalid. Also fixed a couple db tests
2024-04-01 16:40:01 -04:00
Gabriel Horner
93846fe62f
enhance: add import support for priority, scheduled and deadline
...
fixes LOG-3030
2024-04-01 12:31:39 -04:00
Tienson Qin
0c8639994d
fix: db malli schema
2024-04-01 23:35:49 +08:00
Gabriel Horner
745fcdb7a3
enhance: import tasks
...
Part of LOG-3030
2024-04-01 10:48:25 -04:00
Tienson Qin
1987c455e7
Merge branch 'feat/db' into refactor/db-properties-schema
2024-04-01 15:47:43 +08:00
Tienson Qin
54989b47b8
fix: tags
2024-04-01 15:22:20 +08:00
Tienson Qin
d48e45eaa7
enhance: property db ident doesn't allow #
2024-04-01 14:53:25 +08:00
Tienson Qin
02643a1561
fix: tests
2024-04-01 14:25:39 +08:00
Tienson Qin
21d550de12
Remove :block/macros
2024-04-01 14:22:15 +08:00
Tienson Qin
76464cdbe5
fix: closed value test
2024-04-01 14:02:13 +08:00
Tienson Qin
8d6916cfd7
wip: fix property-related tests
2024-04-01 12:24:41 +08:00
Tienson Qin
fd36e0cebd
fix: malli schema for property
2024-04-01 11:07:33 +08:00
Gabriel Horner
1d014c1326
fix graph-parser lint
2024-03-29 17:09:30 -04:00
Tienson Qin
441dda79c8
fix: typo
2024-03-30 05:02:01 +08:00
Tienson Qin
a2da60623f
fix: heading
2024-03-30 04:36:24 +08:00
Gabriel Horner
de89e65129
chore: remove unused fns and move file graph fn
2024-03-29 16:32:23 -04:00
Gabriel Horner
f728b7b9f6
fix: multiple bugs with built-in pages, fixes LOG-3046
...
- file graph wasn't creating built in pages
- 3 places where db graphs were incorrectly using file graph built in
page names
- file graphs creating default pages with incorrect format
2024-03-29 16:21:19 -04:00