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
622cbe0410
fix: :string property values weren't editable
2024-04-19 14:13:09 -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
38672f270e
fix: class ancestor links
2024-04-19 11:36:54 -04:00
charlie
305255d4c7
fix: WIP lint warning
2024-04-19 23:22:49 +08: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
cccb4fcb0b
fix: :batch/txs should be vector not nil
2024-04-19 19:47:22 +08:00
rcmerci
bbe9e9d323
fix: fix tx-report when not in batch-tx-mode
2024-04-19 18:44:01 +08:00
rcmerci
97ef6cd37c
fix: merge batch/opts and tx-meta when pass to db-listeners
2024-04-19 18:27:19 +08:00
rcmerci
03246325b3
fix: empty transact to notify batch-tx exit
2024-04-19 18:08:29 +08:00
rcmerci
bffd1b5c8e
refactor: batch-tx
2024-04-19 17:48:48 +08:00
charlie
90a0d0d5f8
enhance(ui): polish the details for the plugins related cp
2024-04-19 17:21:38 +08:00
charlie
ed3ff5ac30
enhance(ui): refactor the nested DOM structure for the block title (head) wrap
2024-04-19 16:51:23 +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
charlie
afd76f24d4
fix(editor): error key for the block child cp
2024-04-19 16:11:02 +08:00
charlie
96a0d555c5
fix(ui): missing default colors for mark tag
2024-04-19 14:07:16 +08:00
rcmerci
7c348b0e93
chore: remove testcases' unused flag
2024-04-19 13:46:51 +08:00
rcmerci
2fa8e7a7a6
enhance(rtc): add ns frontend.worker.rtc.hash
2024-04-19 13:45:50 +08:00
charlie
5d51edd74e
enhance(ux): fix annoying page flickering when indenting the first children block bullet.
2024-04-19 11:36:31 +08:00
Gabriel Horner
27aca24199
fix: pages not displaying their page properties
...
on initial load. Page properties would only show up
after clicking on Configure which is confusing and made the initial
page load seem buggy
2024-04-18 16:07:53 -04:00
Gabriel Horner
0372cb6e62
fix: typing marker creates tasks e.g. DOING
2024-04-18 14:13:58 -04:00
Gabriel Horner
a30f2bd650
fix: render slides with new properties
2024-04-18 11:10:55 -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
Tienson Qin
2db12d1b2b
enhance: better error messages for invalid block/left
2024-04-18 21:39:14 +08: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
ef8ca41f8c
fix: store db for debugging too for parent-left conflicts
2024-04-18 21:04:15 +08:00
Tienson Qin
f0920ac89b
fix: another case of non-consecutive blocks move
2024-04-18 20:42:26 +08:00
Tienson Qin
08f4fc2a63
fix: unit tests
2024-04-18 19:38:45 +08:00
Tienson Qin
0c988f12ce
Add test cases for moving blocks
2024-04-18 19:29: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
26588775e9
Enable broken chain check for undo/redo test
2024-04-18 18:43:16 +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
charlie
f8b4cb37aa
enhance(ui): polish alignment for the block title elements
2024-04-18 18:40:42 +08:00
rcmerci
47bd0bf706
test(undo): node-test check block-pos
2024-04-18 18:31:00 +08:00
rcmerci
6739518a44
test(undo): testcases to debug
2024-04-18 16:32:20 +08:00
Tienson Qin
24e1aab914
fix: skip computing :block/left for non-consecutive blocks
2024-04-18 15:24:47 +08:00
rcmerci
db0d7d0c1c
chore: remove debug try
2024-04-18 14:31:17 +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
charlie
cf5a0e0bcf
enhance(dev): just once for the loaded theme event
2024-04-18 12:19:13 +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
330ec99063
fix: align property values and other blocks
2024-04-17 23:00:55 +08:00