Commit Graph

194 Commits

Author SHA1 Message Date
Tienson Qin
4c6c3322fe enhance(ux): show node icon in search results 2025-11-12 06:03:26 +08:00
Tienson Qin
48fb2b8179 enhance(ux): display tag extends before tag name
format: `#parent/child`, `#parent1 | parent2/child`, built-in tags
are ignored.
2025-11-05 17:53:26 +08:00
Tienson Qin
1849d7a96a fix: show tag's extends when auto-complete or setting extends
fixes https://github.com/logseq/db-test/issues/466
2025-09-09 16:29:19 +08:00
Tienson Qin
e373350aef fix: lint 2025-07-04 02:43:52 +08:00
Tienson Qin
3c52bced5c Merge branch 'master' into feat/capacitor-new 2025-06-22 21:39:37 +08:00
Tienson Qin
51d0cf5207 fix: ordered list number on Library page 2025-06-17 19:59:33 +08:00
Tienson Qin
3b718f70c8 enhance(ux): render blocks by their orders (#11948)
* enhance: render nested children when rendering its parent

except that for long pages (500+ blocks).

* refactor: rename :block.temp/fully-loaded? to :block.temp/load-status

* fix: tests

* enhance: define keyword :block.temp/load-status

* update to :self

* chore: remove buggy parent cycle detect

* enhance(ux): don't delay rendering block properties

---------

Co-authored-by: rcmerci <rcmerci@gmail.com>
2025-06-17 19:41:13 +08:00
charlie
018a18253d Merge branch 'master' into feat/capacitor-new 2025-06-12 11:21:27 +08:00
Tienson Qin
47cc2c998e fix: moving the focus up and down doesn't work properly
related to https://github.com/logseq/db-test/issues/302
2025-06-12 04:08:17 +08:00
Tienson Qin
536837a98c fix: drag && drop 2025-06-04 03:44:18 +08:00
Tienson Qin
65213b5c12 fix: set edit-block-fn when inserting new block 2025-06-02 15:21:50 +08:00
Tienson Qin
b994749e30 fix: selection position 2025-05-30 04:41:33 +08:00
Tienson Qin
ecaf7fc0ae fix: clear selection when swipe to toggle a selected block 2025-05-30 02:52:30 +08:00
Tienson Qin
db2810a286 wip: add selection bar 2025-05-28 17:20:53 +08:00
Tienson Qin
cae478b63c fix: restore block position after swiping 2025-05-28 16:26:25 +08:00
Tienson Qin
62972bb11c feat: multiple blocks select and drag&&drop 2025-05-25 07:10:25 +08:00
Tienson Qin
6f9f610c41 feat: drag drop a block on mobile
haptics enabled.
2025-05-25 06:38:45 +08:00
Tienson Qin
f4e49a4b11 feat: swipe to select block
Swipe also prevents scroll.
2025-05-25 05:12:05 +08:00
Tienson Qin
256bc58705 fix: ensures there's no multiple block editors at the same time 2025-05-24 22:45:08 +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
9408a6eb4c enhance(ux): haptics when collapsing/expanding block 2025-05-24 07:41:21 +08:00
Tienson Qin
68417bbb01 enhance(ux): table row/cell navigation (#11837)
* enhance(ux): up/down to navigate table rows

* enhance: remove block id+uuid class

Use `blockid`.

* enhance: arrowleft to select cell when a table row has been selected

* wip: table cell navigation

* feat: up/down/left/right table cell navigation

* enhance(ux): scroll to cell when it's not visible

* fix: save block content when exit title cell popup

* fix: table keyboard navigation doesn't work on virtualized table

The solution is to preload more rows for virtualized tables.
2025-05-02 05:47:58 +08:00
Tienson Qin
5923f24f56 fix: lint and test 2025-03-31 22:38:34 +08:00
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