Commit Graph

18312 Commits

Author SHA1 Message Date
charlie
5b0051adef enhance(ux): pointer down to trigger the hide context menu and block selections 2024-05-17 13:21:53 +08:00
Tienson Qin
45150c0f05 perf: don't re-render blocks when selection changes 2024-05-17 12:24:06 +08:00
rcmerci
8a3f5ab09d chore: update rtc schema, rename some ns 2024-05-17 11:32:53 +08:00
charlie
3e37fb6b4a fix: typo 2024-05-17 11:25:10 +08:00
Tienson Qin
db721ee3f6 enhance: clear selection before closing popup 2024-05-17 11:15:15 +08:00
Tienson Qin
bf72ff47e0 fix: cursor changes when zoom in/out 2024-05-17 10:38:29 +08:00
charlie
cb6f977ed2 enhance(ux): clear block selections instantly before closing the block context menu 2024-05-17 10:19:16 +08:00
Tienson Qin
723a48d3da fix: don't quit editor when switching tabs/windows 2024-05-17 10:15:53 +08:00
Tienson Qin
1f6ed68bd8 fix: embed block should have a different container id 2024-05-17 09:51:23 +08:00
Gabriel Horner
fd27374830 fix: test for removed unused behavior 2024-05-16 21:21:33 -04:00
Tienson Qin
e28b972042 enhance: cache container id so that it works when undo/redo 2024-05-17 07:13:03 +08:00
Tienson Qin
3744194be6 fix: wrong block content when redo 2024-05-17 06:10:48 +08:00
Gabriel Horner
3fdaf0474f fix: can't add a class schema or page property
Removed related unused upsert property code. This became unused with #11311.
Also fixed new page property not moving focus to property value
2024-05-16 17:47:49 -04:00
Gabriel Horner
0284816f22 chore: replace uses of :string in tests and properties graph
Also removed test which tested an unused fn
2024-05-16 16:28:43 -04:00
Gabriel Horner
35e6ad120d chore: rename pdf specific properties to logseq.property.pdf
also remove deleted property ns
2024-05-16 15:27:24 -04:00
Gabriel Horner
d37df950fa fix: property rules now work with property ref values
Also remove use of :string properties in tests
2024-05-16 15:05:37 -04:00
Gabriel Horner
43dfdbe0ae fix: convert remaining built-in :string props to :default 2024-05-16 11:22:09 -04:00
rcmerci
d5fc88cbd4 test(rtc): remove :fix-me for local-db-tx->remote-ops-test 2024-05-16 21:53:14 +08:00
rcmerci
46a7a41afd test(rtc): remove :fix-me for entity-datoms=>ops-test 2024-05-16 21:38:31 +08:00
rcmerci
a12a0d3d30 refactor(rtc): support refactored update-op, update local db 2024-05-16 19:47:49 +08:00
Tienson Qin
55cec662e9 Add tests for the new undo/redo 2024-05-16 18:31:26 +08:00
charlie
18226316df fix(ui): page crash for the nil page name 2024-05-16 12:50:48 +08:00
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