Gabriel Horner
0238aff2ba
fix: replace uses of :string closed with :default closed
...
and remove :string from closed possibilities
2024-05-14 10:34:54 -04:00
Gabriel Horner
4a7dab2763
fix: can't add or update closed values
2024-05-14 09:29:00 -04:00
Tienson Qin
d142cf227e
refactor: new undo/redo implementation
...
Previous undo/redo requires to handle every editor operation including
any new ops. The new implemenation focus on db attributes instead of
ops, it assumes that most attributes can be safely overwritten except
:block/parent, block/order and other ref-type attributes. It works likes:
1. If a block has been moved by another client (:block/parent or
:block/order has been changed), the whole tx will be skipped
2. If a refed entity has been deleted, the datom will be skipped
2024-05-14 18:10:48 +08:00
charlie
70f915839f
enhance(ui): polish multi values for the tag pages
2024-05-14 11:33:02 +08:00
Tienson Qin
86a7464360
fix: gc invisible blocks
2024-05-14 08:21:07 +08:00
Tienson Qin
0bdb02fdf4
perf: add lazy support for block list
2024-05-14 08:16:02 +08:00
Gabriel Horner
45bb11d28d
fix: db tests and :op typo
2024-05-13 17:05:32 -04:00
Gabriel Horner
330571effe
fix: properties of :classes and :properties didn't generate
...
from scripts. Fixes schema graph generation
2024-05-13 15:33:47 -04:00
charlie
7ba72aee75
fix(mobile): incorrect theme color for the android status bar
2024-05-14 01:43:08 +08:00
Gabriel Horner
a2a951ddcb
fix: switching to another number closed value
...
The bug was creating a new block each time a switch was made
because existing closed values didn't have a created-from-property
2024-05-13 13:23:02 -04:00
Gabriel Horner
e55927086f
fix: creating :number and :url closed values from config
...
Also add schema hack for fully-loaded being persisted. Also
add :default property examples to example properties graph now that it's
possible
2024-05-13 12:33:31 -04:00
charlie
450b23711e
enhance(dev): optimize the build flow for the ui package
2024-05-13 22:54:41 +08:00
charlie
15d888e372
enhance(ux): incorrect behavior for the property empty placeholder
2024-05-13 18:45:59 +08:00
Tienson Qin
ce4cad2cc7
Refactor/move property handler to outliner dep ( #11311 )
...
The end goal is to get rid of `db/transact!` and send outliner ops to
the db worker.
Currently, some property ops are async, set-block-property! will also
need to be async because when setting a non-ref value (e.g. a number
str "2"), we need to query whether a block with the value exists, this
unfortunately, will be an async query, so we're risking turning more
functions to async in the future which makes it hard to reason about
the implementation.
2024-05-13 18:16:21 +08:00
Andelf
e6173e8810
Update Electron 28 ( #11304 )
...
* chore: update electron
Close #11303
* chore: update deps
* fix(test): utils import
2024-05-13 12:59:18 +08:00
rcmerci
5bb8e03550
refactor(rtc,wip): re-implement update-op part in rtc,
...
use avt-coll data in update-op to simplify the code.
Handle different attributes in a unified way, instead of
dealing with each different attribute separately
2024-05-11 20:54:14 +08:00
charlie
aa38cd3a17
fix(ui): build scripts for the shui primitives
2024-05-11 16:17:40 +08:00
charlie
061700c6b1
enhance(ui): WIP optimization for the shui popup related fundamental components
2024-05-11 15:14:21 +08:00
Gabriel Horner
fcf6ebd0e4
fix: page properties for :default, :number and :url
...
Also fix page property example in properties graph and removed
unused branches in validation
2024-05-10 16:40:42 -04:00
Gabriel Horner
64786bb258
fix: create :number and :url properties from scripts
2024-05-10 15:19:10 -04:00
Tienson Qin
11c902eb1e
refactor: make all user-facing property types refs
2024-05-10 18:03:07 +08:00
Gabriel Horner
fcbfde5a57
fix: generating :classes for schema graph
...
and any other create graph scripts. Also removed last
of uuid/db-id management in external scripts
2024-05-09 23:32:16 -04:00
Tienson Qin
4a9aa50a7d
refactor: use :string type only for internal properties
2024-05-10 11:22:28 +08:00
Gabriel Horner
70d92c8f7a
fix: pdf related properties for db graphs
...
Added to new property ns as file and file-path are too generic to be top-level.
Also fixed bugs in page creation
2024-05-09 13:38:31 -04:00
Gabriel Horner
123cb8fc42
fix: cleanup property tuple validation
...
Had an unnecessary entity refetch. Also move ui assumptions about :many
validation to ui as this needlessly limits what :many could store
2024-05-09 10:57:18 -04:00
Gabriel Horner
161c5c8565
Merge branch 'master' into feat/db
2024-05-09 08:41:40 -04:00
Tienson Qin
e7562e0853
fix: stop event when pressing enter or space on a property value
2024-05-09 17:53:15 +08:00
Tienson Qin
45e5cde3f9
fix: slow popup
2024-05-09 17:24:07 +08:00
Tienson Qin
c48ddf9b8f
fix: don't show popup when clicking on link or button
2024-05-09 16:47:00 +08:00
Tienson Qin
3e77b53b91
fix: add page type property value
2024-05-09 16:40:58 +08:00
Andelf
b419b955cc
Add MSI build for windows ( #11301 )
2024-05-09 16:35:49 +08:00
Tienson Qin
339883800d
fix: property tuple validation
2024-05-09 16:29:55 +08:00
charlie
e9b430b1b0
enhance(ui): refactor the shui-related codes
2024-05-09 12:46:52 +08:00
Tienson Qin
57ed32d3e5
fix: property value popover not closed after setting a value
2024-05-09 11:24:46 +08:00
Tienson Qin
61db29ceba
Remove [:block/schema :cardinality]
...
Uses :db/cardinality instead.
2024-05-09 11:24:46 +08:00
charlie
1d12ac56a1
enhance(ux): the filter-related enhancements for the cmdk cp
2024-05-09 11:19:11 +08:00
Tienson Qin
bccf999853
fix: tests
2024-05-09 08:51:49 +08:00
Tienson Qin
45f14d4b76
refactor: property/schema.properties
...
Replace [:block/schema :properties] with ref type property/schema.properties.
This commit also introduces :logseq.class/base so that all the other
classes will be its children.
2024-05-09 08:29:11 +08:00
Tienson Qin
4a3fd52eab
Remove special style for #card
2024-05-09 04:49:23 +08:00
Tienson Qin
bb5a3364e6
fix: outdent property child block replaces its parent
...
Fixes LOG-3141
2024-05-09 04:36:14 +08:00
Tienson Qin
5013d34c2f
chore: cleanup :block/_left usage
2024-05-09 04:36:14 +08:00
Tienson Qin
d6ffd16799
fix: can't move blocks up
...
Fixes LOG-3140
2024-05-09 04:36:14 +08:00
Gabriel Horner
d3c276ac50
fix: named heading route for file and db graphs
2024-05-08 16:32:10 -04:00
Gabriel Horner
00e153e866
fix: closed value :number can also be float
2024-05-08 15:23:57 -04:00
Gabriel Horner
1b5ad28302
fix: deleting :default property pair also deletes property value
2024-05-08 14:58:10 -04:00
Gabriel Horner
fe80ce371c
fix: property names and values search results
2024-05-08 14:42:52 -04:00
Gabriel Horner
949d676f02
fix: number closed value not saved as its original value
...
A :number closed value saved as a string is problematic for a couple
reasons:
* Not storing a number by the user's intended value means a loss of any
numeric functionality the property provides. Basic things like sorting
by the numeric property don't work. This has caused us problems in the
past and we invented hacky workarounds like logseq.query/nlp-date to
compensate for this
* Creates inconsistency in how numbers are saved as non-closed values
are not saved as string. This affects not only the validation layer
but also creates bugs when querying for these property values as the
querying interface is inconsistent
2024-05-08 13:49:22 -04:00
Gabriel Horner
298c37ffc7
fix: lints + schema key which shouldn't have been removed
2024-05-08 12:31:08 -04:00
Gabriel Horner
8b15b64360
chore: disable unsupported :page and :date generation in properties graph
2024-05-08 12:08:38 -04:00
Gabriel Horner
f57f4c0c75
fix: cleanup old references to schema values
2024-05-08 11:59:02 -04:00