Commit Graph

1026 Commits

Author SHA1 Message Date
Tienson Qin
6a976ca0e2 Deprecate more db attributes for db graphs 2024-04-28 22:29:47 +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
Gabriel Horner
cb22dca5e0 fix: db tests 2024-04-25 09:39:02 -04: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
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
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
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
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
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
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
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