Commit Graph

18312 Commits

Author SHA1 Message Date
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
Tienson Qin
2884fc7f52 fix: select of :default typed closed values 2024-04-17 22:53:15 +08:00
Tienson Qin
d4b2958af7 fix: add new closed value to :default type property 2024-04-17 21:18:00 +08:00
Tienson Qin
bcf0d5b7cf fix: hide bullet only 2024-04-17 19:53:08 +08:00
Tienson Qin
36acf6096c enhance: hide bullet when :default has only one child block 2024-04-17 19:48:26 +08:00
Tienson Qin
a02f94e5c1 fix: some shortcuts not working on Chrome 2024-04-17 18:57:27 +08:00
Tienson Qin
640f0c76e6 chore: increase undo redo gen ops 2024-04-17 18:07:39 +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
rcmerci
3283a2eb73 refactor(undo): simplified fn other-children-exist? 2024-04-17 16:41:18 +08:00
rcmerci
5e34ab04fb fix(undo): check no other children exist when delete-blocks 2024-04-17 16:33:46 +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
rcmerci
39c31f0f0b fix typo 2024-04-17 14:30:37 +08:00
rcmerci
cee5a3bf0f feat(undo): support undo :block/link 2024-04-17 12:47:50 +08:00
Tienson Qin
ed8aa987c0 fix: toggle displaying page properties 2024-04-17 12:44:29 +08:00
Tienson Qin
acf5512b30 Increase property gap 2024-04-17 12:44:29 +08:00
Sun-Wukung
87d27b3d5c Update tutorial-sk.md
minor typos
2024-04-17 10:42:27 +08:00
Gabriel Horner
8f806dbbab chore: use block/properties instead of property?
don't need guess at property keys anymore
2024-04-16 16:25:59 -04: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
5833b84889 fix: closed values tempid errors 2024-04-16 23:56:51 +08:00
Tienson Qin
adcc76eac4 fix: keep property cardinality when switching to closed values 2024-04-16 23:38:38 +08:00