Commit Graph

23990 Commits

Author SHA1 Message Date
charlie
d68d0c3a27 fix(ui): improve macro rendering and inline class handling https://github.com/logseq/logseq/pull/9234 2026-04-15 09:10:59 +08:00
Tienson Qin
9881577d7d fix: keep block indent alignment without shifting siblings 2026-04-15 01:09:28 +08:00
Gabriel Horner
09b598094e fix(cli): multiple upsert commands randomly choose first page found
when an ambiguous page is given instead of erroring to ask for the
specific page. Like dd6b8975c7, there are still several
paths where we incorrectly assume :block/name is unique (and don't
take into account recyling). This commit fixed the following options:
* upsert block --target-page
* upsert task --target-page
* upsert asset --target-page
* upsert page --page

There are still two bugs where ambiguous page names leads to random
page selection but which can't be addressed easily because there is no
way for a user to select by page id in those contexts. Put a TODO next
to the ensure-first-page! workaround
2026-04-14 12:15:21 -04:00
Tienson Qin
bc27dd90a6 fix: lint 2026-04-15 00:04:38 +08:00
Tienson Qin
fc76192631 fix: stabilize uuid-based outliner ops and undo/redo replay 2026-04-14 22:11:51 +08:00
Tienson Qin
cfe00a5e71 fix(template): resolve dynamic variables in template insertion 2026-04-14 22:11:51 +08:00
Tienson Qin
ca6c254328 add offline scenario tests for chrome instances 2026-04-14 22:11:51 +08:00
charlie
ba18e5fbfd chore: build libs 2026-04-14 16:05:11 +08:00
Charlie
a95483655b refactor: plugin libs (#12395)
This pull request refactors the plugin library infrastructure and adds new experimental features for hosted/sidebar renderers. The main changes include:

Purpose: Refactor plugin communication library (Postmate) to support MessageChannel for improved performance, add support for hosted/sidebar renderers in plugins, add new debug APIs, and consolidate helper functions.

Changes:

Added MessageChannel support to Postmate for optimized plugin-host communication with backward compatibility
Introduced hosted renderer and sidebar renderer APIs for plugins to register custom UI components
Added new app APIs: get_current_route, export_debug_log_db, reset_debug_log_db
Refactored helper functions from helpers.ts to common.ts and updated all import paths
Extended block property APIs to include class properties with default values
Added comprehensive documentation for experiments APIs and plugin development
Added E2E test for plugin marketplace installation
Version bump from 0.2.12 to 0.3.1
2026-04-14 14:29:22 +08:00
Tienson Qin
4461a03fd5 fix: lint 2026-04-14 14:06:27 +08:00
Hounsou Dansou
8e87445b71 Update README with build instructions and discussion channels
Added instructions for building from source and updated discussion channels.
2026-04-14 13:59:46 +08:00
Tienson Qin
3a02014ebb fix: avoid task status default flicker on tagged nodes 2026-04-14 13:55:42 +08:00
Gabriel Horner
e4228ebe38 fix(cli): remove block --id gives false positive
for pages and doesn't delete them. Should instead error explicitly for pages,
like with other subcommands when the given target isn't the right type
2026-04-13 18:03:41 -04:00
Tienson Qin
1e5c7e938f fix(page): restore linked refs rendering after deferred gating 2026-04-14 05:44:16 +08:00
Tienson Qin
a215a5e0f1 perf(page): delay linked refs until content mounts 2026-04-14 05:38:33 +08:00
Tienson Qin
ff56c143ab continue to improve view performance 2026-04-14 05:37:45 +08:00
Tienson Qin
995d0bf4a9 enhance(view): speed up large-graph get-view-data 2026-04-14 04:52:10 +08:00
Tienson Qin
e3a974947a perf: views 2026-04-14 04:33:46 +08:00
Tienson Qin
e1def88148 fix(property): hide recycled node/page values in property area 2026-04-14 04:11:22 +08:00
Tienson Qin
5cecff842d fix(sync): preserve apply-template uuids in rebase replay 2026-04-14 03:58:29 +08:00
Tienson Qin
fd377168a8 fix: prevent page-child block from being promoted to class tag 2026-04-14 03:51:07 +08:00
Tienson Qin
5c2e8a9f00 fix(sim): emit inline tag block for emptyInlineTag op 2026-04-14 03:33:38 +08:00
Tienson Qin
a327063497 fix(db-sync): keep encrypted title updates after decrypt collapse 2026-04-14 03:29:42 +08:00
Gabriel Horner
4ab1216303 fix(cli): logseq upsert block --id modifies built-in nodes
it shouldn't be able to. Somes of these bugs are caused by same incorrect
definition of built-in? as found in
22c7736751. --content and --pos could modify all
built-in nodes. *properties and *tags options could modify private
built-in nodes which the app is not able to do and the CLI should be
disallowed from doing as well
2026-04-13 15:15:42 -04:00
Tienson Qin
aefd964a1e fix(sync): simulate all outliner ops and stabilize bootstrap 2026-04-14 03:06:10 +08:00
Tienson Qin
73bc59857e fix(perf): don't call d/datoms to get all eavt
It's too slow (+8s) for a 500m sqlite file to just insert a new block
2026-04-14 00:27:36 +08:00
Tienson Qin
292db15345 add script to create clojure irc graph 2026-04-14 00:19:29 +08:00
Tienson Qin
27f0c2d271 test(sync): add schema-first import avet regression 2026-04-13 22:09:24 +08:00
Tienson Qin
3000d28d15 fix(sync): unlink db on reset import 2026-04-13 22:05:14 +08:00
Gabriel Horner
22c7736751 fix(cli): remove block --id can remove built-in nodes
files, empty-placeholder and import-tx idents could all be deleted.
Ents with :kv/value would error unintentionally with
'No protocol method INode.-del defined for type null:'.
Now these all gracefully error
2026-04-13 10:02:36 -04:00
Tienson Qin
927795d73c fix: should transact all schema related datoms first 2026-04-13 18:56:31 +08:00
Tienson Qin
6e737b78ac fix: db unlisten 2026-04-13 18:25:03 +08:00
Tienson Qin
0fc0bb8cef Rename logseq cloud to sync 2026-04-13 13:01:30 +08:00
hoellen
8997638e5b Custom Sync Server URL (#12459)
* Add custom sync server

Co-authored-by: Tienson Qin <tiensonqin@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-04-13 13:00:19 +08:00
Tienson Qin
5818b578d5 update podfile lock 2026-04-13 12:38:35 +08:00
rcmerci
28cd63907f enhance(cli): humanize human-mode output formatting (2) 2026-04-12 21:57:13 +08:00
rcmerci
1db53d14fb enhance(cli): humanize human-mode output formatting 2026-04-12 21:24:01 +08:00
rcmerci
88e0f91bd9 enhance(cli-e2e): update wait_sync_status in cli-e2e-sync 2026-04-12 20:18:52 +08:00
Tienson Qin
174fd15c8e fix(sync): stabilize incremental checksum updates 2026-04-12 19:27:05 +08:00
Tienson Qin
3dd7302dc9 fix(db-sync): handle duplicate :block/uuid in incremental checksum
Account for duplicate :block/uuid datom multiplicity during incremental checksum delta calculation.
Expand touched eids to uuid peers and apply digest add/remove by tuple counts.
Add regression fixture+test from rebased retract mismatch log.
2026-04-12 17:46:14 +08:00
Tienson Qin
30bb4acc27 fix: stabilize undo/redo raw tx replay order 2026-04-12 15:55:52 +08:00
Tienson Qin
9baeee6e49 simplify transact ops 2026-04-12 15:41:22 +08:00
rcmerci
bc2b8bd11e enhance(cli-e2e): add step timings and manifest lint/template system 2026-04-11 23:33:11 +08:00
rcmerci
8281d344d9 fix(cli): upsert task --priority not working 2026-04-11 22:52:08 +08:00
rcmerci
cdfe541552 enhance(cli): update list asset output columns 2026-04-11 21:48:21 +08:00
Gabriel Horner
86bf58d0b6 fix (cli): upsert commands fail with partial updates
Running `upsert block -c b1 --update-tags='["nonexistent-tag"]'`
errors for the nonexistent tag but surprisingly still
creates a block with no indication that it was created. Fixed this
and a similar case for `upsert page`. Also cleaned up `upsert task`
which had unnecessary error throwing which could also result in the
same error type. Longer term we need a better solution than moving
all error/validation checks to the beginning of each upsert
2026-04-11 09:24:10 -04:00
rcmerci
1ae912fd92 feat(cli): add list/upsert asset 2026-04-11 17:31:49 +08:00
rcmerci
1a5939112a enhance(cli-e2e): add sync suite fixtures, timings, and port cleanup 2026-04-11 15:49:45 +08:00
Tienson Qin
6cda7fc869 fix: align outliner and db-sync tests with history-op changes 2026-04-11 07:24:28 +08:00
Gabriel Horner
5904433787 chore: mark more long running tests to keep "-e long" useful for local full runs 2026-04-10 11:58:05 -04:00