Commit Graph

19932 Commits

Author SHA1 Message Date
Tienson Qin
c6f3746596 fix: update editing block title if it's changed on db
Usually, it can happens when there're multiple tabs or clients editing
the same block at the same time.
2025-04-23 07:58:57 +08:00
Tienson Qin
8071c97ae2 Merge branch 'feat/db' into fix/multiple-tabs 2025-04-23 07:32:05 +08:00
Gabriel Horner
8cb5fecb91 fix: user can't reverse a class parent decision
Class parent defaults to Root but user can't select it later. This
should be reversible, especially given how much functionality this
affects. Fixes #256
2025-04-22 09:50:51 -04:00
Tienson Qin
4c74d25490 enhance: put markdown export next to edn 2025-04-22 21:00:48 +08:00
Gabriel Horner
954ec0c721 fix: graph md exports have no indent
Affected both graph types
2025-04-22 21:00:48 +08:00
Gabriel Horner
5685fe5540 enhance: enable basic markdown export
Dont include built-in entities which are a lot in db graph, except for
user facing ones like Contents
2025-04-22 21:00:48 +08:00
Tienson Qin
1c9c129394 Merge branch 'feat/db' into fix/multiple-tabs 2025-04-22 20:30:04 +08:00
rcmerci
dd95dcd220 fix: args may not be a transit-str 2025-04-22 20:25:01 +08:00
Tienson Qin
d8150d6e02 fix: can't create new graph 2025-04-22 20:23:31 +08:00
Tienson Qin
6657f4baf7 fix: close master slave channels when it's no longer master 2025-04-22 19:53:22 +08:00
Tienson Qin
7f9517c7d8 fix: (rseq nil) throws error 2025-04-22 19:02:28 +08:00
Tienson Qin
c6560231d3 fix: cardinality one property get multiple values in db
The bug was introduced by 3a41bbcdbe
2025-04-22 18:59:37 +08:00
Tienson Qin
38ca2bb326 chore: remove debug 2025-04-22 17:16:40 +08:00
rcmerci
90865bf6a6 Squashed commit of the following:
commit 18c0762f6e
Author: Tienson Qin <tiensonqin@gmail.com>
Date:   Tue Apr 22 16:29:27 2025 +0800

    chore: bump datascript

commit be66b5e6c0
Author: Tienson Qin <tiensonqin@gmail.com>
Date:   Tue Apr 22 09:56:45 2025 +0800

    chore: bump datascript

commit 6788818aec
Author: Tienson Qin <tiensonqin@gmail.com>
Date:   Mon Apr 21 23:22:48 2025 +0800

    enhance: property keyboard navigation (#11825)

    Keyboard enhancements:

    1. UP/DOWN to navigate between blocks and properties, the property value will be focused and highlighted
    2. Backspace/Delete to delete a property value and move it to the nearest property or block above
    3. Enter/Space to open datetime and select type property value

commit 727391fe7a
Author: Tienson Qin <tiensonqin@gmail.com>
Date:   Mon Apr 21 18:01:05 2025 +0800

    fix: don't show breadcrumb for pages when tagging

commit 615e2a392e
Author: Tienson Qin <tiensonqin@gmail.com>
Date:   Mon Apr 21 17:55:51 2025 +0800

    enhance(ux): display existing choices when choosing node property

commit 30d230380f
Author: Tienson Qin <tiensonqin@gmail.com>
Date:   Sun Apr 20 23:21:50 2025 +0800

    perf: skip db persistent for previous actions in pipeline

commit 0df1208ae6
Author: Tienson Qin <tiensonqin@gmail.com>
Date:   Sun Apr 20 19:32:24 2025 +0800

    fix: remove d/store calls

    There's a bug with `d/store`: it doesn't clear `tx-tail` in the conn atom.

commit 7d436cf5eb
Author: Tienson Qin <tiensonqin@gmail.com>
Date:   Sun Apr 20 18:03:23 2025 +0800

    chore: bump datascript

commit 878331c53e
Author: Tienson Qin <tiensonqin@gmail.com>
Date:   Sun Apr 20 12:30:11 2025 +0800

    fix: block title inline

commit 2a8461b41a
Author: Tienson Qin <tiensonqin@gmail.com>
Date:   Sun Apr 20 12:17:16 2025 +0800

    fix: no way to edit the query as the settings icon doesn't show up

commit f843df9482
Author: Tienson Qin <tiensonqin@gmail.com>
Date:   Fri Apr 18 23:41:29 2025 +0800

    fix: empty data not trigger query view re-render

commit 6042c8b112
Author: Gabriel Horner <gabriel@logseq.com>
Date:   Fri Apr 18 09:44:27 2025 -0400

    refactor: keep testing concerns in tests

    Move testing requirement to relevant test to make production code easier
    to maintain. Where possible we should avoid helpers like util/node-test? as
    they couple testing concerns with production code

commit c9177abc9a
Author: Tienson Qin <tiensonqin@gmail.com>
Date:   Fri Apr 18 15:20:22 2025 +0800

    fix: tests

commit b7c45f881c
Author: Tienson Qin <tiensonqin@gmail.com>
Date:   Fri Apr 18 13:19:37 2025 +0800

    fix: don't show query builder for non-query blocks

commit 46bdd1a366
Author: Tienson Qin <tiensonqin@gmail.com>
Date:   Fri Apr 18 13:17:07 2025 +0800

    enhance: set query title && code

commit abf90fbb7d
Author: Tienson Qin <tiensonqin@gmail.com>
Date:   Fri Apr 18 11:47:26 2025 +0800

    fix: queries don't automatically update

    Fix https://github.com/logseq/db-test/issues/237

    This commit also updates custom queries to only fetch :db/id to
    improve performance.

commit aa45b3fa6c
Author: Gabriel Horner <gabriel@logseq.com>
Date:   Fri Apr 18 14:31:00 2025 -0400

    fix(regression): paths of file graph exports

    markdown + opml exports had zipped files several
    directories deep because they used the full path of the graph

commit 63403bd8c5
Author: Gabriel Horner <gabriel@logseq.com>
Date:   Fri Apr 18 12:32:51 2025 -0400

    fix: remove unused workarounds from #11774

    Previous commit fixed these issues

commit 4ad4944b4e
Author: Gabriel Horner <gabriel@logseq.com>
Date:   Fri Apr 18 12:29:06 2025 -0400

    fix: for file graphs, tags with blank space in the namespace parent

    creates entities with nil :block/title to be created. This
    created unexpected bugs in the UI e.g. all pages and
    caused duplicate content to appear.
    Example from test graph: 'tags:: [[Some / Namespace ]]'
    Fixes
    https://test.logseq.com/#/page/68017fb5-7b9c-448a-9f64-6bb8d8669396
2025-04-22 16:39:24 +08:00
rcmerci
8f63f78bd9 Squashed commit of the following:
commit be66b5e6c0
Author: Tienson Qin <tiensonqin@gmail.com>
Date:   Tue Apr 22 09:56:45 2025 +0800

    chore: bump datascript

commit 6788818aec
Author: Tienson Qin <tiensonqin@gmail.com>
Date:   Mon Apr 21 23:22:48 2025 +0800

    enhance: property keyboard navigation (#11825)

    Keyboard enhancements:

    1. UP/DOWN to navigate between blocks and properties, the property value will be focused and highlighted
    2. Backspace/Delete to delete a property value and move it to the nearest property or block above
    3. Enter/Space to open datetime and select type property value

commit 727391fe7a
Author: Tienson Qin <tiensonqin@gmail.com>
Date:   Mon Apr 21 18:01:05 2025 +0800

    fix: don't show breadcrumb for pages when tagging

commit 615e2a392e
Author: Tienson Qin <tiensonqin@gmail.com>
Date:   Mon Apr 21 17:55:51 2025 +0800

    enhance(ux): display existing choices when choosing node property

commit 30d230380f
Author: Tienson Qin <tiensonqin@gmail.com>
Date:   Sun Apr 20 23:21:50 2025 +0800

    perf: skip db persistent for previous actions in pipeline

commit 0df1208ae6
Author: Tienson Qin <tiensonqin@gmail.com>
Date:   Sun Apr 20 19:32:24 2025 +0800

    fix: remove d/store calls

    There's a bug with `d/store`: it doesn't clear `tx-tail` in the conn atom.

commit 7d436cf5eb
Author: Tienson Qin <tiensonqin@gmail.com>
Date:   Sun Apr 20 18:03:23 2025 +0800

    chore: bump datascript

commit 878331c53e
Author: Tienson Qin <tiensonqin@gmail.com>
Date:   Sun Apr 20 12:30:11 2025 +0800

    fix: block title inline

commit 2a8461b41a
Author: Tienson Qin <tiensonqin@gmail.com>
Date:   Sun Apr 20 12:17:16 2025 +0800

    fix: no way to edit the query as the settings icon doesn't show up

commit f843df9482
Author: Tienson Qin <tiensonqin@gmail.com>
Date:   Fri Apr 18 23:41:29 2025 +0800

    fix: empty data not trigger query view re-render

commit 6042c8b112
Author: Gabriel Horner <gabriel@logseq.com>
Date:   Fri Apr 18 09:44:27 2025 -0400

    refactor: keep testing concerns in tests

    Move testing requirement to relevant test to make production code easier
    to maintain. Where possible we should avoid helpers like util/node-test? as
    they couple testing concerns with production code

commit c9177abc9a
Author: Tienson Qin <tiensonqin@gmail.com>
Date:   Fri Apr 18 15:20:22 2025 +0800

    fix: tests

commit b7c45f881c
Author: Tienson Qin <tiensonqin@gmail.com>
Date:   Fri Apr 18 13:19:37 2025 +0800

    fix: don't show query builder for non-query blocks

commit 46bdd1a366
Author: Tienson Qin <tiensonqin@gmail.com>
Date:   Fri Apr 18 13:17:07 2025 +0800

    enhance: set query title && code

commit abf90fbb7d
Author: Tienson Qin <tiensonqin@gmail.com>
Date:   Fri Apr 18 11:47:26 2025 +0800

    fix: queries don't automatically update

    Fix https://github.com/logseq/db-test/issues/237

    This commit also updates custom queries to only fetch :db/id to
    improve performance.

commit aa45b3fa6c
Author: Gabriel Horner <gabriel@logseq.com>
Date:   Fri Apr 18 14:31:00 2025 -0400

    fix(regression): paths of file graph exports

    markdown + opml exports had zipped files several
    directories deep because they used the full path of the graph

commit 63403bd8c5
Author: Gabriel Horner <gabriel@logseq.com>
Date:   Fri Apr 18 12:32:51 2025 -0400

    fix: remove unused workarounds from #11774

    Previous commit fixed these issues

commit 4ad4944b4e
Author: Gabriel Horner <gabriel@logseq.com>
Date:   Fri Apr 18 12:29:06 2025 -0400

    fix: for file graphs, tags with blank space in the namespace parent

    creates entities with nil :block/title to be created. This
    created unexpected bugs in the UI e.g. all pages and
    caused duplicate content to appear.
    Example from test graph: 'tags:: [[Some / Namespace ]]'
    Fixes
    https://test.logseq.com/#/page/68017fb5-7b9c-448a-9f64-6bb8d8669396
2025-04-22 16:36:58 +08:00
Tienson Qin
18c0762f6e chore: bump datascript 2025-04-22 16:29:27 +08:00
rcmerci
25d61bdb79 fix: restart rtc if switch master-client 2025-04-22 15:58:52 +08:00
rcmerci
8627e817d2 enhance: re-<init-service when create a new graph 2025-04-22 14:57:40 +08:00
Tienson Qin
ed2d65f27f enhance: clear service state when creating a new graph 2025-04-22 13:20:15 +08:00
Tienson Qin
1aa30bf1cb fix: create new graph result in NoModificationAllowedError 2025-04-22 13:16:28 +08:00
Tienson Qin
be66b5e6c0 chore: bump datascript 2025-04-22 09:56:45 +08:00
rcmerci
e56d531f13 fix: use broadcast-to-clients! to postmessage to clients 2025-04-22 02:20:07 +08:00
rcmerci
d2f78ae875 refactor: allow adding new broadcast data types 2025-04-21 23:57:40 +08:00
Tienson Qin
6788818aec enhance: property keyboard navigation (#11825)
Keyboard enhancements:

1. UP/DOWN to navigate between blocks and properties, the property value will be focused and highlighted
2. Backspace/Delete to delete a property value and move it to the nearest property or block above
3. Enter/Space to open datetime and select type property value
2025-04-21 23:22:48 +08:00
Tienson Qin
727391fe7a fix: don't show breadcrumb for pages when tagging 2025-04-21 18:01:05 +08:00
Tienson Qin
615e2a392e enhance(ux): display existing choices when choosing node property 2025-04-21 17:55:51 +08:00
rcmerci
0ccb2a84e5 enhance: broadcast-to-clients! works for both master&slave clients 2025-04-20 23:40:09 +08:00
Tienson Qin
30d230380f perf: skip db persistent for previous actions in pipeline 2025-04-20 23:21:50 +08:00
rcmerci
13d7061f7b Squashed commit of the following:
commit 0df1208ae6
Author: Tienson Qin <tiensonqin@gmail.com>
Date:   Sun Apr 20 19:32:24 2025 +0800

    fix: remove d/store calls

    There's a bug with `d/store`: it doesn't clear `tx-tail` in the conn atom.

commit 7d436cf5eb
Author: Tienson Qin <tiensonqin@gmail.com>
Date:   Sun Apr 20 18:03:23 2025 +0800

    chore: bump datascript

commit 878331c53e
Author: Tienson Qin <tiensonqin@gmail.com>
Date:   Sun Apr 20 12:30:11 2025 +0800

    fix: block title inline

commit 2a8461b41a
Author: Tienson Qin <tiensonqin@gmail.com>
Date:   Sun Apr 20 12:17:16 2025 +0800

    fix: no way to edit the query as the settings icon doesn't show up

commit f843df9482
Author: Tienson Qin <tiensonqin@gmail.com>
Date:   Fri Apr 18 23:41:29 2025 +0800

    fix: empty data not trigger query view re-render

commit 6042c8b112
Author: Gabriel Horner <gabriel@logseq.com>
Date:   Fri Apr 18 09:44:27 2025 -0400

    refactor: keep testing concerns in tests

    Move testing requirement to relevant test to make production code easier
    to maintain. Where possible we should avoid helpers like util/node-test? as
    they couple testing concerns with production code

commit c9177abc9a
Author: Tienson Qin <tiensonqin@gmail.com>
Date:   Fri Apr 18 15:20:22 2025 +0800

    fix: tests

commit b7c45f881c
Author: Tienson Qin <tiensonqin@gmail.com>
Date:   Fri Apr 18 13:19:37 2025 +0800

    fix: don't show query builder for non-query blocks

commit 46bdd1a366
Author: Tienson Qin <tiensonqin@gmail.com>
Date:   Fri Apr 18 13:17:07 2025 +0800

    enhance: set query title && code

commit abf90fbb7d
Author: Tienson Qin <tiensonqin@gmail.com>
Date:   Fri Apr 18 11:47:26 2025 +0800

    fix: queries don't automatically update

    Fix https://github.com/logseq/db-test/issues/237

    This commit also updates custom queries to only fetch :db/id to
    improve performance.

commit aa45b3fa6c
Author: Gabriel Horner <gabriel@logseq.com>
Date:   Fri Apr 18 14:31:00 2025 -0400

    fix(regression): paths of file graph exports

    markdown + opml exports had zipped files several
    directories deep because they used the full path of the graph

commit 63403bd8c5
Author: Gabriel Horner <gabriel@logseq.com>
Date:   Fri Apr 18 12:32:51 2025 -0400

    fix: remove unused workarounds from #11774

    Previous commit fixed these issues

commit 4ad4944b4e
Author: Gabriel Horner <gabriel@logseq.com>
Date:   Fri Apr 18 12:29:06 2025 -0400

    fix: for file graphs, tags with blank space in the namespace parent

    creates entities with nil :block/title to be created. This
    created unexpected bugs in the UI e.g. all pages and
    caused duplicate content to appear.
    Example from test graph: 'tags:: [[Some / Namespace ]]'
    Fixes
    https://test.logseq.com/#/page/68017fb5-7b9c-448a-9f64-6bb8d8669396
2025-04-20 22:22:26 +08:00
Tienson Qin
0df1208ae6 fix: remove d/store calls
There's a bug with `d/store`: it doesn't clear `tx-tail` in the conn atom.
2025-04-20 19:32:24 +08:00
Tienson Qin
7d436cf5eb chore: bump datascript 2025-04-20 18:03:23 +08:00
Tienson Qin
878331c53e fix: block title inline 2025-04-20 12:30:11 +08:00
Tienson Qin
2a8461b41a fix: no way to edit the query as the settings icon doesn't show up 2025-04-20 12:18:36 +08:00
Tienson Qin
f843df9482 fix: empty data not trigger query view re-render 2025-04-20 12:18:36 +08:00
Gabriel Horner
6042c8b112 refactor: keep testing concerns in tests
Move testing requirement to relevant test to make production code easier
to maintain. Where possible we should avoid helpers like util/node-test? as
they couple testing concerns with production code
2025-04-20 12:18:36 +08:00
Tienson Qin
c9177abc9a fix: tests 2025-04-20 12:18:36 +08:00
Tienson Qin
b7c45f881c fix: don't show query builder for non-query blocks 2025-04-20 12:18:36 +08:00
Tienson Qin
46bdd1a366 enhance: set query title && code 2025-04-20 12:18:36 +08:00
Tienson Qin
abf90fbb7d fix: queries don't automatically update
Fix https://github.com/logseq/db-test/issues/237

This commit also updates custom queries to only fetch :db/id to
improve performance.
2025-04-20 12:18:36 +08:00
rcmerci
780d40f05c refactor: update new-task--rtc-start
allow it to be used conveniently when switching the master-client in a multi-tabs environment
2025-04-20 00:29:46 +08:00
rcmerci
501b5f0fe4 Squashed commit of the following:
commit aa45b3fa6c
Author: Gabriel Horner <gabriel@logseq.com>
Date:   Fri Apr 18 14:31:00 2025 -0400

    fix(regression): paths of file graph exports

    markdown + opml exports had zipped files several
    directories deep because they used the full path of the graph

commit 63403bd8c5
Author: Gabriel Horner <gabriel@logseq.com>
Date:   Fri Apr 18 12:32:51 2025 -0400

    fix: remove unused workarounds from #11774

    Previous commit fixed these issues

commit 4ad4944b4e
Author: Gabriel Horner <gabriel@logseq.com>
Date:   Fri Apr 18 12:29:06 2025 -0400

    fix: for file graphs, tags with blank space in the namespace parent

    creates entities with nil :block/title to be created. This
    created unexpected bugs in the UI e.g. all pages and
    caused duplicate content to appear.
    Example from test graph: 'tags:: [[Some / Namespace ]]'
    Fixes
    https://test.logseq.com/#/page/68017fb5-7b9c-448a-9f64-6bb8d8669396
2025-04-19 22:06:16 +08:00
Gabriel Horner
aa45b3fa6c fix(regression): paths of file graph exports
markdown + opml exports had zipped files several
directories deep because they used the full path of the graph
2025-04-18 14:36:51 -04:00
Gabriel Horner
63403bd8c5 fix: remove unused workarounds from #11774
Previous commit fixed these issues
2025-04-18 12:33:51 -04:00
Gabriel Horner
4ad4944b4e fix: for file graphs, tags with blank space in the namespace parent
creates entities with nil :block/title to be created. This
created unexpected bugs in the UI e.g. all pages and
caused duplicate content to appear.
Example from test graph: 'tags:: [[Some / Namespace ]]'
Fixes
https://test.logseq.com/#/page/68017fb5-7b9c-448a-9f64-6bb8d8669396
2025-04-18 12:29:06 -04:00
rcmerci
254c77a7a3 fix: thread-api calls before shared-service inited
chore: better fns naming
enhance: add do-not-wait
2025-04-18 23:03:06 +08:00
rcmerci
d6b85f10a4 enhance: trigger master-re-check by another atom(instead of reuse *master-client?) 2025-04-18 22:22:57 +08:00
rcmerci
76b4affbde Merge remote-tracking branch 'origin/feat/db' into fix/multiple-tabs 2025-04-18 18:18:36 +08:00
rcmerci
0b02cdfead fix: do not wait for js/navigator.locks.request to finish. 2025-04-18 17:39:30 +08:00
rcmerci
36e63e05a8 fix: *requests-in-flight use sorted-map 2025-04-18 17:05:45 +08:00
rcmerci
6ab81ac7df fix: don't repeatedly watch the master-client 2025-04-18 16:48:23 +08:00