Commit Graph

16204 Commits (a39f19c976e40595d5425bd5096a91ffefdbe5c3)

Author SHA1 Message Date
Tienson Qin a39f19c976 fix: ESC doesn't exit editor after page autocomplete 2024-06-18 05:32:44 +08:00
Tienson Qin 0bd6c05e69 refactor: add page outliner ops
The rule is to avoid calling worker modules from UI, all db
transactions should go through apply-outliner-ops.
2024-06-18 05:21:00 +08:00
Gabriel Horner 3c9c4b3f79 fix: db graph test tasks should have correct class 2024-06-17 13:51:11 -04:00
Tienson Qin ec1ac54b5f fix: edit an empty page for file and db graphs 2024-06-18 00:03:08 +08:00
Gabriel Horner 5f1d87eb26 dev: add examples of :object in properties graph
uncovers a bug in :object-many ui
2024-06-17 10:58:35 -04:00
Gabriel Horner 3418ee3093 fix: frontend lint 2024-06-17 10:54:27 -04:00
rcmerci 51a599060f chore: prn bad data when coerce failed 2024-06-17 22:20:42 +08:00
Gabriel Horner 883c5e83ed fix: remove outdated use of db properties for a file graph fn 2024-06-17 10:19:47 -04:00
Tienson Qin 2252b73d8d fix: virtual list empty data warning 2024-06-17 22:17:09 +08:00
Tienson Qin 915ee5d67a enhance: words 2024-06-17 22:12:20 +08:00
Tienson Qin 9cc4f43ad1 fix: lint 2024-06-17 21:47:44 +08:00
Tienson Qin 516c47c853 fix: remove unused code 2024-06-17 21:45:56 +08:00
Tienson Qin 4e376cd67d fix: can't focus on the new inserted block because of virtualization 2024-06-17 20:46:22 +08:00
Tienson Qin 2cacb11422 perf: virtualized page references 2024-06-17 20:34:02 +08:00
charlie 5b0ed592f0 fix(ux): sometimes the block children can't be collapsed 2024-06-17 17:54:19 +08:00
Tienson Qin 5b6e37a9f3 fix: add missing react component key 2024-06-17 17:37:01 +08:00
Tienson Qin ee6abdc78a fix: don't trigger property shortcuts when editing 2024-06-17 16:54:43 +08:00
Tienson Qin 500245fb95 Simplify editor on-hide implementation 2024-06-17 16:48:42 +08:00
charlie 939bdc9b74 fix(ui): alignments for the bullet whithin the heading block 2024-06-17 15:41:14 +08:00
Tienson Qin b67035bc9b fix: lost editor cursor when pressing Enter to undent 2024-06-17 15:34:23 +08:00
Tienson Qin 39c4a160c2 fix: don't virtualize children blocks for now 2024-06-17 14:45:13 +08:00
Tienson Qin 3279ea9fc0 perf: virtualize top-level blocks
We still need to virtualize all the nested blocks to improve the
performance.
2024-06-17 14:32:12 +08:00
charlie 5e8e3edc5d enhance(ui): refactor the classic modals with the shui dialog 2024-06-17 13:27:20 +08:00
charlie 0d2dd28bba enhance(ui): refactor the diff modal with the shui dialog component 2024-06-17 11:31:11 +08:00
charlie f57c4985b9 fix(ui): alignments for the cloud icon within the repos trigger container 2024-06-17 11:05:10 +08:00
Tienson Qin 0b74de4f83 enhance: load less journals 2024-06-17 09:33:12 +08:00
Tienson Qin 2ba01c7cef perf: use virtualized list instead of our own ui/infinite-list
The benefits are:
1. less journals to render, so less memory, faster editor experience
2. our old implementation is buggy in some platforms
2024-06-17 09:25:33 +08:00
Tienson Qin a9b84a5614 fix: template properties display cutoff
Fixes LOG-3144
2024-06-17 08:19:03 +08:00
rcmerci 9ab79bfe38 enhance(rtc): validate graph skeleton data when start-rtc 2024-06-16 19:44:05 +08:00
charlie e6809fb497 fix(ui): sometimes the notification popup not close automatically 2024-06-16 18:06:40 +08:00
charlie 32f755bb09 fix(ui): incorrect behavior for the making template input within the block context menu 2024-06-16 17:26:10 +08:00
Tienson Qin a12fbfefc8 chore: remove unnecessary file content compare 2024-06-16 11:23:44 +08:00
Tienson Qin 96be194de5 Refactor: use last modified time to decide if file has been changed
Previously, we're using file content.

Fixes LOG-3161
2024-06-16 11:00:40 +08:00
Tienson Qin 8c88f16a75 fix: tests 2024-06-15 23:23:12 +08:00
Tienson Qin 54e54ebd63 fix: get-pid not works for non-built-in properties in file graphs 2024-06-15 23:20:13 +08:00
Tienson Qin b294896f8a fix: reuse page uuids when parsing files
This commit also removes `with-id?` because it's too confusing.

Fixes LOG-3143
2024-06-15 22:52:30 +08:00
Tienson Qin 4281274512 fix: graph parser tests 2024-06-15 21:08:25 +08:00
Gabriel Horner 244a86557f chore: rename :property/value to :property.value/content
property-value is widely being used to refer to the entity or value
associated with a property entity. Naming the content of a
property-entity :property/value is confusing. property-value content is
a unique name and consistent with :block/content. Also rename related
fns which had similarly confusing names
2024-06-14 18:11:20 -04:00
Gabriel Horner 4b5ba7c600 fix: query table not rendering for :number property values 2024-06-14 17:47:56 -04:00
Gabriel Horner 04a6aa141e fix: remove unused dep from db 2024-06-14 16:56:27 -04:00
Gabriel Horner 9a8c91c0cc chore: mv logseq.db.sqlite.db into sqlite.cli
for more explicit name and purpose. Also updated outdated db readme
and removed unused fns in logseq.db.sqlite.db
2024-06-14 16:53:19 -04:00
Gabriel Horner 8ba5c15f93 fix: remove cli namespace dependency from electron namespaces
Added a :discouraged-namespace linter check for future times.
Had to add clj-kondo configs for db and outliner since they
were incorrectly inheriting the frontend config, specifically
the :discouraged-namespace linter. Also removed a 'm/=>' in outliner dep
b/c it would've created a complex clj-kondo setup for malli that
would need to be updated for both top-level clj-kondo and deps/outliner
2024-06-14 15:50:05 -04:00
Gabriel Horner 95db811f55 fix: frontend tests shouldn't depend on sqlite3
frontend.test.helper was accidentally coupled to sqlite3 via
logseq.outliner.db-pipeline. Split out sqlite3 dependent fns to
logseq.outliner.cli so it's clear this shouldn't be coupled to frontend
2024-06-14 14:41:24 -04:00
Gabriel Horner 56063ed2bf fix: tweak message and update docs for updated replace cmd flow 2024-06-14 14:22:44 -04:00
Tienson Qin ff050779ec fix: import chosen graph 2024-06-15 01:17:07 +08:00
Tienson Qin af716b50d4 fix: save db before git commit 2024-06-15 00:48:57 +08:00
Tienson Qin 05f14033c4 chore: remove better-sqlite3 from electron 2024-06-15 00:29:39 +08:00
Tienson Qin cc20d96fda chore: don't store version dbs in /logseq/bak
This can increase space usage a lot, also, git is a much better way
compared to /bak.
2024-06-15 00:22:26 +08:00
Tienson Qin e0fafe4725 enhance: notify db saved only for manual triggers 2024-06-15 00:03:39 +08:00
Tienson Qin 4cca2e5f69 enhance: remove sqlite usage from Electron
Use periodic db export instead. Manual saving db to the disk can be
triggered by `mod+s`.
2024-06-14 23:58:49 +08:00