Commit Graph

119 Commits

Author SHA1 Message Date
Tienson Qin
f7a7391196 enhance(sync): align db-sync/undo tests and lint 2026-03-21 18:46:35 +08:00
Tienson Qin
4d112d242c fix: cursor moves to main area when using keyboard to delete blocks
in sidebar
2025-06-05 00:39:14 +08:00
Tienson Qin
3a448af06f fix: ensures there's no multiple block editors at the same time 2025-05-24 22:43:45 +08:00
Tienson Qin
1778af6105 per-tab undo redo 2025-04-16 00:37:08 +08:00
Tienson Qin
1aca680ae4 Merge branch 'feat/db' into perf/app-start 2025-03-31 21:53:37 +08:00
rcmerci
5a87b609a5 refactor: use <invoke-db-worker to replace @*db-worker 2025-03-26 19:04:22 +08:00
rcmerci
cae3084f9c refactor: use the namespace "thread-api" for all thread-api keywords 2025-03-26 16:47:28 +08:00
rcmerci
961a143aa1 refactor: remove unnecessary ldb/read-transit-str 2025-03-26 16:47:28 +08:00
rcmerci
1151b33df4 refactor: remove defclass DBWorker 2025-03-26 16:47:28 +08:00
Tienson Qin
d847023dc1 Refactor: rename :block/content to :block/title 2024-07-10 22:33:44 +08:00
Tienson Qin
75fd607c2a enhance: debounce undo/redo 2024-06-07 14:48:39 +08:00
Tienson Qin
a647954eea refactor: remove hacky editor will-unmount 2024-06-06 17:59:23 +08:00
Tienson Qin
853926dce4 fix: update editor/container-id after editor mounted 2024-06-05 08:24:04 +08:00
Tienson Qin
637eefb4e3 fix: content not saved when inserting blocks too fast 2024-05-17 21:19:43 +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
15cb71e713 fix: paste blocks 2024-04-09 00:25:33 +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
736e202460 fix: block property 2024-03-30 03:47:42 +08:00
Tienson Qin
7931f4cc1a fix: don't preview page if current container is the same page 2024-03-10 18:16:23 +08:00
Tienson Qin
c752e2964b perf: remove editor esc-save 2024-03-04 20:31:13 +08:00
Gabriel Horner
0f531ff177 fix: unable to add a page :default property value 2024-02-29 16:52:37 -05:00
Tienson Qin
f5af62ad15 fix: trailing whitespace disappears 2024-02-29 01:18:39 +08:00
Tienson Qin
38f3cef2c5 fix: copy with parent+child blocks loses the parent block
fixed LOG-3056
2024-02-27 23:29:54 +08:00
Tienson Qin
ed0429b088 fix: don't save twice when esc 2024-02-23 23:40:56 +08:00
Tienson Qin
8b9c3e249e fix: redo 2024-02-23 19:42:13 +08:00
Tienson Qin
f00f1ae134 fix: block content esc not saved 2024-02-05 22:57:10 +08:00
Tienson Qin
af895d68c9 fix: editor e2e tests 2024-01-15 23:04:49 +08:00
Tienson Qin
af8478a6ec fix: editor e2e tests 2024-01-15 15:35:34 +08:00
Tienson Qin
b9646d5cd0 fix: blockref e2e tests 2024-01-12 02:03:19 +08:00
Tienson Qin
96c9e8d7d5 simplify pipeline 2024-01-11 20:18:40 +08:00
Tienson Qin
a81229576d fix: group transactions 2024-01-11 20:18:40 +08:00
Tienson Qin
3eda6c1bb0 fix: cursor blink when saving editing 2024-01-11 15:57:26 +08:00
Tienson Qin
0cb748898f fix: clear editing block when esc or click outside 2024-01-11 03:32:22 +08:00
Tienson Qin
7600a53929 Clean setTimeout 2024-01-10 23:52:47 +08:00
Tienson Qin
b50145be4e Simply editor save logic
Triggers save-current-block! on-blur instead of relying on react
lifecycle.
2024-01-10 23:05:48 +08:00
Tienson Qin
dd3a4b122c fix: async page rendering 2024-01-09 14:05:25 +08:00
Tienson Qin
5fd91035df wip: transact to worker directly
Previously, the transactions will go though main thread db -> worker
db, this commit changes it to worker db first and then send the
updates to the main thread db.

This change does introduce some bugs because all the db transactions
are async now.
2024-01-08 20:53:23 +08:00
Tienson Qin
018e1ae8ee Merge branch 'master' into feat/db 2023-12-23 14:18:25 +08:00
charlie
ea196dfe67 fix(editor): incorrect auto save when paste batch blocks 2023-12-11 14:20:15 +08:00
Tienson Qin
c1ebd14cef fix: page search e2e test 2023-10-16 23:02:27 +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
1dbcc2bc3f fix: blockref e2e tests 2023-10-09 00:08:12 +08:00
Tienson Qin
307258343e fix: lint warnings 2023-10-08 19:14:25 +08:00
Tienson Qin
c6565a51b3 enhance(ux): page configure as popover 2023-09-26 21:20:26 +08:00
Tienson Qin
201b3b7f09 fix: double click to close dropdown 2023-09-26 01:25:14 +08:00
Tienson Qin
da5d8ef25b enhance: auto-convert text to block 2023-09-12 16:18:19 +08:00
Tienson Qin
7f079a8b53 UP/DOWN support for multiple values 2023-08-09 23:33:07 +08:00
Tienson Qin
3ec4c6bedd remove handler.editor.property 2023-08-01 13:59:06 +08:00
Tienson Qin
1671f540fb Move property-edit to file-based.property
Also, util.property -> file-based.property.util
2023-07-27 11:47:08 +08:00