Tienson Qin
c326730ce5
fix: retract icon property when settign a closed value's icon to nil
2024-05-27 12:30:45 +08:00
Gabriel Horner
77f14ca1f6
fix: don't delete property values while typing
...
property values were deleted while typing b/c
content ref re-calculation wasn't considering them.
Related to LOG-2819
2024-05-24 18:14:14 -04:00
Gabriel Horner
7c0b154fff
fix: disallow property self-refs
...
Causes wonky linked reference animations and maybe other
bugs. Can repro by creating a property url and then adding the :url
property as a page property to the url page
2024-05-24 14:03:16 -04:00
Gabriel Horner
d2ea12fab6
refactor: simplify schema and creation of kv ents
2024-05-24 09:50:22 -04:00
Tienson Qin
8458b6b21b
enhance: rename :key/value to :kv/value
2024-05-24 15:21:10 +08:00
Tienson Qin
db7c4e2145
refactor: use one attribute :key/value for all kvs
2024-05-24 14:22:09 +08:00
Tienson Qin
b2f38f6f0c
Revert "chore: rename :db/type to :logseq.db/type"
...
This reverts commit 32e6433c44
.
2024-05-24 14:06:39 +08:00
Tienson Qin
32e6433c44
chore: rename :db/type to :logseq.db/type
2024-05-24 14:02:16 +08:00
Gabriel Horner
32ca012635
enhance: pretty print + colorize query script by default
2024-05-23 14:58:55 -04:00
Gabriel Horner
0fc01b94a3
fix: tests
2024-05-23 09:45:38 -04:00
Gabriel Horner
26cf70f6cf
fix: update schema and remove unused :name in :icon key
2024-05-23 09:45:38 -04:00
Tienson Qin
c118271fdd
refactor: property position support left/right/below
...
Removed the limitation that only properties with closed values can
have custom positions.
2024-05-23 20:48:04 +08:00
Tienson Qin
1cfc426486
enhance: properties ux
...
1. add icons to priorities
2. hide task properties so that blocks are not collapsable
3. block positions support end of block
2024-05-23 17:18:23 +08:00
Tienson Qin
c862ad0d10
refactor: db/transact! as outliner op
...
The benefits:
1. all db transactions from the UI thread can be described in outliner
ops now.
2. batch undo/redo
2024-05-23 05:16:51 +08:00
Gabriel Horner
8de74ce654
fix: lint for large var
2024-05-22 17:03:00 -04:00
Gabriel Horner
ceb3681cfe
fix: nbb scripts updates :block/refs the same as app
...
nbb was only handling path-refs previously. Can remove hacky
managing of refs in create-graph. Still a TODO to fix schema graph
lazy loading bug. Related to LOG-2819
2024-05-22 16:51:50 -04:00
Gabriel Horner
67ff14038a
enhance: add :config option to schema graph
...
also fix outliner lints
2024-05-22 13:37:40 -04:00
Tienson Qin
d298567737
fix: wrong arguments for delete-blocks
2024-05-23 00:35:22 +08:00
Tienson Qin
f218732b17
fix: property path-refs
...
1. :block/refs support to page properties
2. don't add built-in properties to refs
3. don't add current block or parents' other properties to :default blocks
2024-05-22 23:30:00 +08:00
Gabriel Horner
8b12e7f136
fix: property refs not calculating for file graphs
...
Fixes a bug where clicking a TODO in a file graph resulted in an error.
Bring back file graph implementation accidentally taken out in
d31b8cd5ae
.
Also fixes related test
2024-05-22 10:42:44 -04:00
Gabriel Horner
04e71a9a23
Bump datascript for nbb-logseq
2024-05-22 09:37:16 -04:00
Gabriel Horner
50698c190d
fix: update db's nbb.edn to match deps.edn
...
Looks like we forgot to add malli to deps.edn awhile back
2024-05-22 08:53:13 -04:00
Tienson Qin
5b99610212
fix: use trigger-id instead of target
...
Because target might already be unmounted
2024-05-22 20:49:44 +08:00
Tienson Qin
b4bfd5cc9a
chore: use clj-fractional-indexing
2024-05-22 15:21:35 +08:00
Tienson Qin
f944dd2de9
fix: can't add existing :many property
2024-05-22 07:55:18 +08:00
Gabriel Horner
cfe22e4acc
fix: lints
2024-05-21 16:14:05 -04:00
Gabriel Horner
c9b579ae01
fix: placeholder valid for a :many property
2024-05-21 16:09:40 -04:00
Tienson Qin
e49acf8256
feat: add property :object type
2024-05-21 23:30:54 +08:00
Gabriel Horner
fd5b90596b
chore: remove nonexistent fix-tx
2024-05-21 11:00:11 -04:00
Tienson Qin
67bd6c6da3
fix: build refs for either pages or tagged blocks (objects)
2024-05-21 21:05:02 +08:00
Tienson Qin
8d959a7c8b
chore: bump datascript
2024-05-21 20:51:22 +08:00
Tienson Qin
db8d0c53df
fix: datascript upsert db/ident
2024-05-21 19:29:21 +08:00
Tienson Qin
d31b8cd5ae
fix: add property named blocks values to :block/refs
...
related to LOG-2819
2024-05-21 16:35:39 +08:00
charlie
685b78e2a0
fix(ux): invalid action for the block selection context menus
2024-05-21 11:26:59 +08:00
Tienson Qin
ee35854498
fix: delete property value block when it's not used by other blocks
2024-05-21 07:49:33 +08:00
Gabriel Horner
33832f7941
fix: property names with invalid idents display an error notification
...
instead of silently failing in console. E.g. `123` as a property name
2024-05-20 17:21:56 -04:00
Gabriel Horner
fa4b47d16b
fix: property value names in developer cmd
...
and in readable-properties fn
2024-05-20 16:20:31 -04:00
Gabriel Horner
92299347da
chore: rename class ident to match name
...
Root is also a better name than base
2024-05-20 15:55:40 -04:00
Gabriel Horner
0cfc90e0ef
fix: remove :string property type as :default
...
does everything it used to do. Also remove component behavior specific to :string
2024-05-20 11:46:10 -04:00
Gabriel Horner
c5911a571b
fix: loading of classes for script-generated graphs
...
Lazy loading of refs for classes isn't supported in the UI yet so
no need to self-inflect this. Also can move schema graph from :string
to :default usage now
2024-05-20 10:45:27 -04:00
Gabriel Horner
47ed035d42
tweak schema as properties always have :type
2024-05-20 09:29:05 -04:00
Tienson Qin
3b975d2fad
enhance: show properties configuration for classes in the sidebar
2024-05-20 18:11:14 +08:00
Tienson Qin
29de339fa1
enhance: don't show date picker for one value
...
Also, set hint background color when hovering property value
2024-05-20 15:31:55 +08:00
Tienson Qin
e34af3412e
enhance: delay creating new property until type specified
2024-05-20 13:07:21 +08:00
Tienson Qin
4a681d7193
fix: lazy load page/block embeds
2024-05-18 08:20:34 +08:00
Tienson Qin
1c88d7cb00
fix: can't convert ref-type to non-ref (checkbox)
2024-05-18 06:39:47 +08:00
Gabriel Horner
efab7f403e
chore: Remove unnecessary catch and rethrow for notification
...
Just encode notification in original exception to make conversion
as reusable as possible. Also make properties readable with :original-name
as they are case sensitive
2024-05-17 17:25:53 -04:00
Gabriel Horner
a17ed389e8
fix: can't delete a closed value being used
...
fixes LOG-3102
2024-05-17 15:37:52 -04:00
Gabriel Horner
4907f0eb74
fix: task related commands e.g. /Doing
...
Was broken by adding property ref value support to batch-set-property
2024-05-17 12:40:09 -04:00
Gabriel Horner
05b96d53fa
fix: display notification when trying to delete built-in choice
2024-05-17 11:07:53 -04:00