Tienson Qin
6d49fcc38b
fully loading block when editing
...
Table view blocks are not transacted to the ui db to not block rendering
2025-03-19 10:53:35 +08:00
Tienson Qin
1d9fbc8a3d
perf: reduce :block/properties calls on db graphs
...
`:block.temp/property-keys` was added to get all the properties
for given entity.
2025-01-15 19:35:09 +08:00
Tienson Qin
8a0a05183e
refactor: remove :block/format for db graphs ( #11667 )
2025-01-05 12:10:47 +08:00
Gabriel Horner
d624d5e7db
fix: users cant change tags of built-in classes like Tag
...
Could cause all kinds of bugs. Also moved tags vars to db-class
to have a central ns like we do with properties and l.db.frontend.property
2024-12-17 22:04:29 +08:00
Tienson Qin
953f846b8c
enhance: don't show type tags in unique title
2024-12-17 22:04:28 +08:00
Tienson Qin
7f80b5c365
chore: move block-unique-title to handler
2024-12-17 22:04:28 +08:00
Tienson Qin
a53943e19e
fix: block content not saved when exit code mode
2024-10-03 18:31:25 +08:00
Tienson Qin
ccb6ee48e4
enhance: ESC on code back to raw editor
...
Also, removed :editor/pending-type-block.
2024-10-03 17:16:41 +08:00
charlie
7d1d6f49da
enhance(ux): enter to edit the code type block
2024-10-01 13:56:04 +08:00
charlie
ebe2d794cc
enhance(ux): up/down for the code type block
2024-09-30 11:18:40 +08:00
Tienson Qin
cb0539ebec
fix: search nodes shows title with parents
...
This commit also removes parents from page reference display because
1. there're bugs when clicking to edit
2. this may not be users' expected behavior
2024-09-24 21:32:37 +08:00
Tienson Qin
4b3534476c
fix: display parent in editor mode
2024-09-13 23:56:00 +08:00
Gabriel Horner
e5e9c5c687
chore: mv file-based util namespaces to their own directory
...
Makes maintenance of different graph types easier and increases linting
of what occurs in these namespaces
2024-09-09 14:31:56 -04:00
Tienson Qin
f88ae50472
fix: edit state lost after zoom in and back
2024-08-05 19:10:46 +08:00
Tienson Qin
d847023dc1
Refactor: rename :block/content to :block/title
2024-07-10 22:33:44 +08:00
Tienson Qin
a1f352773b
refactor: rename :block/original-name to :block/title
2024-07-10 21:43:03 +08:00
Tienson Qin
f16e972709
fix: wrong pos when pressing Backspace
...
Editor's state including last pos and cursor range need to be cleared
when callling block-handler/edit-block!
2024-06-21 18:29:48 +08:00
Tienson Qin
d08102444d
perf: no need to clear-edit! when editing new block
2024-06-19 15:39:05 +08:00
Tienson Qin
b67035bc9b
fix: lost editor cursor when pressing Enter to undent
2024-06-17 15:34:23 +08:00
Tienson Qin
b2e113d8eb
refactor: db based filters
...
Uses properties :logseq.property.linked-references/included-pages
and :logseq.property.linked-references/excluded-pages to store filters
instead of a map.
Fixes LOG-3074
2024-06-08 05:28:55 +08:00
Tienson Qin
2b17284f77
fix: DEL lost editor state
2024-06-06 16:44:00 +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
Tienson Qin
3ac1f3ca64
fix: make sure container-id exists for now
2024-05-20 15:34:28 +08:00
Tienson Qin
1ec4796eff
refactor: replace :block/left with :block/order
...
Finally no need to worry about parent-left conflicts and broken chain.
With :block/order, we only need to re-compute new orders for siblings
with same order (it can happens if there're bugs in our code, or
updates from rtc), but it doesn't break UI.
Another huge potential benefit after discussing with Zhiyuan is:
Ee might be able to simplify both RTC and undo/redo, currently, we
need to handle each new op for both of them, with recently
refactorings like properties being db attributes, :block/order
is a string instead of a ref, we can handle most property value
conflicts using last-write-wins, and others (e.g. :block/parent,
property with :default type) specifically.
I haven't fixed the issues of using :block/left in RTC and undo/redo,
because we might change both soon.
2024-05-02 01:12:22 +08:00
Tienson Qin
81c267ed58
wip: undo redo editor cursor
2024-04-26 14:44:38 +08:00
Tienson Qin
8de498955f
fix: editor cursor missing when moving across blocks
2024-04-09 13:24:19 +08:00
Tienson Qin
2d5eb0f79f
enhance: editor experience
...
1. back to use container id + editing block id instead of block dom
ref to decide which block is in editing, to simplify edit-block! and
reduce browser gc.
2. set next editing block ahead of receiving the data changes from db
worker, so the editor feels a bit faster.
2024-04-08 21:10:12 +08:00
Tienson Qin
9df8918f94
Remove more :block/name lookup ref usage
2024-04-04 15:57:48 +08:00
Gabriel Horner
9c5309da47
enhance: frontend consistently uses :db/ident
...
for fetching built-in properties instead of :block/name
2024-03-27 20:36:48 -04:00
Tienson Qin
4e1ca386d4
refactor: build tx-data in db-worker instead of the UI thread
...
So the tx-data will be built on top of the full db instead of the
partial db from the UI thread, it also reduces the risk to use
outdated data since RTC can transact data from the worker.
2024-02-02 02:16:33 +08:00
Tienson Qin
4b9b825101
refactor indent-and-outdent
2024-02-02 00:16:49 +08:00
Tienson Qin
af8478a6ec
fix: editor e2e tests
2024-01-15 15:35:34 +08:00
Tienson Qin
732b87a63f
fix: code block e2e test
2024-01-14 15:33:06 +08:00
Gabriel Horner
951e7cc841
fix: ns-docstring and large-var deps lints
...
Also fixed db-and-file-graphs-separate lint and moved gp-property tests
that should be moved since their source code has moved from frontend
to gp-property
2024-01-12 17:03:09 -05:00
Tienson Qin
96c9e8d7d5
simplify pipeline
2024-01-11 20:18:40 +08:00
Tienson Qin
879ae09fa2
fix: wrong argument
2024-01-09 14:09:12 +08:00
Tienson Qin
9194a671fd
Move outliner core to its own dep
2024-01-03 18:02:48 +08:00
Tienson Qin
292ba1b0b6
Remove state dependency for outliner.core
2024-01-03 15:42:58 +08:00
Tienson Qin
9ea5ac85e4
Remove dom dependency for outliner.core
2024-01-03 01:37:42 +08:00
Tienson Qin
e579f668eb
wip: remove dependency on frontend.db for outliner core
2024-01-02 23:23:49 +08:00
Tienson Qin
31c3b7a3af
Allow outliner transaction to be used for both UI and worker
2024-01-01 22:46:56 +08:00
Tienson Qin
260ad89937
wip: move pipeline to worker
2023-12-26 22:00:21 +08:00
Tienson Qin
d38bba76bf
Use OPFS storage for file based graphs too
2023-12-14 01:20:31 +08:00
Tienson Qin
2212016a3b
fix: cursor blinks when editing a new block
2023-10-26 01:02:36 +08:00
Tienson Qin
e6d1d80232
fix: add back blockid class
2023-10-25 22:25:57 +08:00
Tienson Qin
b19e42938c
fix: bad performance due to ui/tippy sub state
2023-10-25 20:11:49 +08:00
Tienson Qin
beee1df4a8
fix: keep editing after tagging a page
2023-10-11 00:46:47 +08:00
Tienson Qin
f2db3a3caa
fix: can't insert child for the root block
2023-10-11 00:46:47 +08:00
Tienson Qin
d9ab81e00d
enhance: use block dom node for editing instead of container
2023-10-11 00:46:47 +08:00
Tienson Qin
f3c7d50da9
fix: don't map :block/content to original-name for pages
2023-09-25 16:46:19 +08:00