Tienson Qin
972e90604b
fix: pause history when restoring cursor and state
2024-05-16 10:17:37 +08:00
Tienson Qin
9ecafb4d96
enhance: add page route && sidebar blocks to undo/redo
2024-05-16 09:36:47 +08:00
Tienson Qin
a25485a4ef
fix: add malli schema for new undo/redo
2024-05-16 06:24:42 +08:00
Gabriel Horner
8921767b69
fix: batch-set-property working with property value refs
...
Fixed batch-setting background-color. With this fix was then able
to migrate order-list-type to use :default. Also cleaned up
outdated assumptions in batch fn
2024-05-15 17:37:57 -04:00
Gabriel Horner
e50d3eff21
fix: setting block properties with raw value
...
With this fix able to convert 2 built-ins to :default. Also cleaned
up set-block-property! which had outdated assumptions
2024-05-15 16:10:02 -04:00
Gabriel Horner
2117245b28
fix: fetching built-in property values
...
Fixes :number properties like hl-stamp and hl-page which returned
refs instead of actual values. This will also fix it for
future usage of built-in :default props. Also fixed a db test
2024-05-15 12:23:14 -04:00
Gabriel Horner
980c88b60d
fix: remove table v2 properties
...
Finish removal started by 82a1a18762
.
Still need names in exporter so they aren't incorrectly imported
into db graphs
2024-05-15 10:25:31 -04:00
Gabriel Horner
ad9dc70b9c
fix: finish removing table v2 from shui dep
...
Followup to 82a1a18762
.
Copied more useful intro from shui-graph into README
2024-05-15 10:25:31 -04:00
Gabriel Horner
a70499bd8c
fix: remove schema hack now that it's been fixed
2024-05-15 10:25:31 -04:00
Tienson Qin
244de2187e
fix: quit batch tx mode even with errors
...
Also, throw errors and send notifications for apply-outliner-ops
2024-05-15 22:19:06 +08:00
Tienson Qin
a689266931
fix: don't persist :block.temp/fully-loaded?
2024-05-15 20:41:17 +08:00
Tienson Qin
9812fbe58e
fix: zoom in/out lost editing state
2024-05-15 19:24:51 +08:00
Tienson Qin
bff497415e
fix: update datoms with latest values for undo/redo
...
When undo or redo an op, each datom's value will be checked against
the current db's value as long as if this datom's attribute has
cardinality of `one`, if those values have been changed, the
corresponding datoms will be removed to avoid mutating changes
from other clients.
2024-05-15 19:16:01 +08:00
charlie
fba583fa26
fix(ui): incorrect persistence state for the selected default theme
2024-05-15 17:43:17 +08:00
Tienson Qin
eac41b3282
enhance: put search results before search filters
...
It's too boring to have to navigate a lot before reaching to the
search results.
2024-05-15 17:03:05 +08:00
Tienson Qin
2a6a18a843
enhance: a bit easier to read the undo/redo impl
2024-05-15 16:57:10 +08:00
Tienson Qin
637ed04c98
enhance: enable lazy rendering for long pages only
...
The lazy rendering editor experience is not great for now, so it's
disabled for shorter pages.
2024-05-15 16:36:09 +08:00
charlie
b91d0bdef7
fix(ux): incorrect composing input for the cmdk input
2024-05-15 15:08:25 +08:00
Tienson Qin
73bddbbc86
chore: use the same implementation for local and rtc graphs
2024-05-15 12:08:19 +08:00
Tienson Qin
05599624d7
enhance: undo redo treat local graphs as rtc graphs on dev
2024-05-15 10:58:06 +08:00
Tienson Qin
114c0524fa
fix: handle situations when datom entity has gone or children exists
2024-05-15 10:34:34 +08:00
Tienson Qin
53658f4ed5
chore: each op is a boundary
2024-05-15 09:06:33 +08:00
Tienson Qin
eb5f0b356d
fix: don't rely on tx-meta to determine whether it's move-blocks
...
Also, check whether the target exists
2024-05-15 08:56:18 +08:00
Tienson Qin
a5a7a781eb
fix: keep the last repeated datom (different value) in batch tx
2024-05-15 07:54:31 +08:00
Tienson Qin
6fe7680a1f
fix: remove boundray since ops are already for batch txs
2024-05-15 07:47:53 +08:00
Gabriel Horner
c554627041
fix: outliner lints
...
While fixing large vars, fixed needless circular dependency between
create-property-text-block and set-block-property
2024-05-14 15:11:29 -04:00
Gabriel Horner
ae762ab944
fix: unit test and keyword typo
2024-05-14 12:16:06 -04:00
Gabriel Horner
832061b2ac
Merge branch 'master' into feat/db
2024-05-14 11:41:14 -04:00
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