Commit Graph

19658 Commits

Author SHA1 Message Date
Tienson Qin
863af8a42c fix: closed values should be sorted by block/order 2025-04-24 15:05:47 +08:00
Tienson Qin
c986fafb12 enhance(ux): preserve choices order in multi-select 2025-04-24 14:57:14 +08:00
Tienson Qin
68eeb7424e fix: can't remove alias 2025-04-24 06:15:49 +08:00
Tienson Qin
358d56bbb3 fix: retract more invalid data 2025-04-24 05:26:44 +08:00
Gabriel Horner
23417ad2d8 chore: enable clj-e2e for "every" commit
i.e. commits that affect app behavior
2025-04-23 17:18:16 -04:00
Gabriel Horner
f11775dd76 refactor: have test repo use its own ns, logseq.e2e
Like any other repo, give it its own top-level ns to avoid conflicts
with other repos. Also removed unused ns that was generated
2025-04-23 16:32:55 -04:00
Tienson Qin
b6bff46979 fix: add object on private tags crashed 2025-04-24 04:24:47 +08:00
Gabriel Horner
8046549982 enhance(dev): run individual clj-e2e tests easily from cmdline
Also add more docs on setup and removed conflicting license. Don't think
it was intentional to have these tests as EPL and the rest as AGPL-3
2025-04-23 16:09:13 -04:00
Tienson Qin
ce20b0ead6 fix: don't update editing content from self client
Also, set edit content should be :block/title from an entity.
2025-04-24 03:58:50 +08:00
Tienson Qin
158c1091db move util and repl to /src 2025-04-24 02:27:16 +08:00
Gabriel Horner
401c2993f5 fix: files config for new clj-e2e workflow
Edits to the workflow itself should cause it to rerun
2025-04-23 13:27:52 -04:00
rcmerci
2c6247a8d7 chore: update .lsp & gitignore 2025-04-24 01:13:28 +08:00
Tienson Qin
2761b57850 chore: update clj e2e to apply on feat/db 2025-04-24 00:55:26 +08:00
Mega Yu
5f8f5b037c fix table view selection bug 2025-04-24 00:53:04 +08:00
Tienson Qin
d0a3e08958 enhance: add e2e tests for outliner ops (#11828)
* first e2e example

* Add wally repl pause/resume example

* use with-page-open

* add indent outdent test

* outliner add delete tests

* remove all timeout usage

* refactor: move fns to logseq.util

* Add commands tests for command trigger and node reference

* Add http-server

* add bb script to build release and run tests

* exit when tests finished

* Add clj e2e workflow

* increase slow-mo to 100
2025-04-24 00:51:22 +08:00
Tienson Qin
1fb34efc8c fix: lint 2025-04-23 23:35:05 +08:00
Tienson Qin
d42621864a Merge pull request #11819 from logseq/fix/multiple-tabs
feat: multiple tabs/windows support
2025-04-23 22:53:52 +08:00
Tienson Qin
34fcde1012 chore: remove both error handler and ui for no multi-tab support 2025-04-23 22:51:28 +08:00
Gabriel Horner
762b83a3c9 refactor: use less util/node-test? where possible
also add new ns to kondo lint
2025-04-23 10:30:00 -04:00
Tienson Qin
cdb7c17a8e Merge branch 'feat/db' into fix/multiple-tabs 2025-04-23 22:28:58 +08:00
rcmerci
37fc226d9b fix: skip start-rtc if conn not ready 2025-04-23 18:08:14 +08:00
rcmerci
814d3758ce enhance: replace by c.m/snapshot-of-flow 2025-04-23 17:11:29 +08:00
rcmerci
048bd106f6 enhance(rtc): try to restart-rtc when network-online event emits 2025-04-23 17:10:03 +08:00
rcmerci
d03810da2f enhance: update created-by-ref property when :block/title changed from empty to non-empty 2025-04-23 14:44:56 +08:00
Tienson Qin
85479ad337 fix: delete empty page error 2025-04-23 10:30:06 +08:00
Tienson Qin
25036f1f5a fix: ignore whitespaces 2025-04-23 08:45:06 +08:00
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