Commit Graph

2083 Commits

Author SHA1 Message Date
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