Commit Graph

17706 Commits

Author SHA1 Message Date
Tienson Qin
ad2a36687a refactor: move ops construct to deps/outliner 2026-03-23 10:26:38 +08:00
rcmerci
791b3e98f7 fix(cli): found by case block-upsert-update-id-custom-many-property-json 2026-03-22 16:09:53 +08:00
Tienson Qin
30919b91d0 refactor undo-redo ownership to worker and align db-sync history ops 2026-03-22 13:57:10 +08:00
Tienson Qin
23dbfad3c4 fix(undo-redo): treat missing worker action as bug and harden sync replay 2026-03-21 19:52:13 +08:00
Tienson Qin
f7a7391196 enhance(sync): align db-sync/undo tests and lint 2026-03-21 18:46:35 +08:00
Tienson Qin
8539db5015 test(undo-redo): align ADR 0013 test ownership 2026-03-21 17:35:08 +08:00
Tienson Qin
5d713931a2 fix: undo redo ops 2026-03-21 16:09:42 +08:00
Tienson Qin
fe97e890d6 add undo debug sidebar 2026-03-21 15:00:11 +08:00
Tienson Qin
f928d895f7 enhance(sync): persist semantic undo history actions 2026-03-21 13:20:51 +08:00
Tienson Qin
905e131770 fix: no need to fix parent cycle for blocks 2026-03-20 23:41:04 +08:00
Tienson Qin
2b707c1199 refactor: sync based on semantic ops 2026-03-20 20:40:38 +08:00
rcmerci
ca4cb121e3 fix test 2026-03-20 16:54:19 +08:00
rcmerci
2cc0735e3a enhance(cli): migrate non-sync integration coverage to cli-e2e shell suite 2026-03-20 16:34:54 +08:00
charlie
767540d85b enhance(ux): improve headings function to include normal text option https://github.com/logseq/logseq/issues/12446 2026-03-20 09:31:18 +08:00
Gabriel Horner
721225ba00 fix: upsert --update-tags|remove-tags NON-TAG silently passes
even though no tag is added. Should error instead. Also improve
nonexistent tag error to include name and improve wording
on two upsert options
2026-03-19 19:24:57 -04:00
Gabriel Horner
029194e6f6 fix: undo + redo and possibly more in desktop
Electron app wasn't setting up transact fn like browser does
2026-03-19 15:39:25 -04:00
Gabriel Horner
a7469bcd36 fix: search not starting or working
Per Claude this may have been triggered by adbaf10abc
2026-03-19 14:08:48 -04:00
Gabriel Horner
bb7f3b9dde enhance: sort cli options alphabetically 2026-03-19 13:38:14 -04:00
Gabriel Horner
317d3b583c fix: invalid target-uuid option gives wrong error
about unknown command. Source of bug was that uuid options
are being validated downstream and can throw codes that aren't
recognized later. This is needless complexity so fix by validating
the option at cmdline parse time. Also change this for all
other uuid options to simplify them. Also tweaked cli.main which
swallowed daemon error codes instead of reporting them
2026-03-19 12:17:32 -04:00
Tienson Qin
9e9c27af29 fix: stable property value ref id 2026-03-19 20:52:23 +08:00
Tienson Qin
d7a25ed729 refactor: outliner calls should generate :outliner-ops too 2026-03-19 19:34:14 +08:00
Tienson Qin
53b0580cdd refactor: no need to register page outliner ops 2026-03-19 18:36:27 +08:00
Tienson Qin
f076804b41 enhance(sync): persist outliner ops for rebase 2026-03-19 18:28:19 +08:00
rcmerci
23e42c77f6 063-logseq-cli-upsert-block-custom-many-property.md 2026-03-19 16:36:11 +08:00
Gabriel Horner
6490c9d853 fix: cli completion of graphs, pages and queries
Wasn't reading json output correctly, didn't have a correct
_logseq_current_graph and caching was causing verification issues
2026-03-18 23:11:12 -04:00
Gabriel Horner
6d2b75d8f0 enhance: all cli options with allowed values validate
those values. We didn't validate some of them as we were relying on
home-rolled validations when we could be using babashka.cli's built-in
validation. Switch to using :validate SET by default and allow for
optional :values
2026-03-18 14:19:15 -04:00
Gabriel Horner
fec5b82b42 fix: existing mcp updates intermittently failing
The new cli uses :db/id as its primary id while the existing mcp uses
:block/uuid. These changes on list tools cause slow and sometimes breaking interactions
for updates. It also causes buggy/inconsistent mcp behavior b/n mcp cli and server as there
are different implentations being called. The new cli should use its own
thread-api/* fns and replace MCP when it can meet existing functionality - working
updates and provide a CLI interface.
Also fix mcp.tools dissoc bug which had been fixed in the newer list fns
2026-03-18 13:51:17 -04:00
Tienson Qin
eaa0d6ff96 fix: re-ordered tx data by replace-attr-retract-with-retract-entity 2026-03-18 16:42:21 +08:00
Tienson Qin
a928a29208 fix: remove new-graph-helper retry for rtc tests 2026-03-18 15:13:56 +08:00
Tienson Qin
8d080cd4fa fix: lint 2026-03-18 07:48:01 +08:00
Tienson Qin
ad3cc18a63 fix: lint 2026-03-18 06:31:47 +08:00
Tienson Qin
2801276ce1 fix(sync): handle recreated lookup refs 2026-03-18 06:11:04 +08:00
Tienson Qin
e3e54eba3f tag/property/closed value should be hard retracted 2026-03-18 06:11:04 +08:00
Tienson Qin
1f30693851 fix: tests 2026-03-18 06:11:04 +08:00
Tienson Qin
6ca2cc4312 fix(sync): disable checksum for encrypted graphs 2026-03-18 06:11:04 +08:00
Tienson Qin
16f775c9ad refactor: separate sync into modules 2026-03-18 06:11:04 +08:00
Tienson Qin
5e957beafb add more tests 2026-03-18 06:11:04 +08:00
Tienson Qin
55834b541d fix: db-worker stops working after hot-reload 2026-03-18 06:11:04 +08:00
Tienson Qin
fb76b061b4 fix: simplify db sync for recycle semantics 2026-03-18 06:11:04 +08:00
Tienson Qin
7630d49207 fix: tests 2026-03-18 06:11:04 +08:00
Tienson Qin
174cdfd865 feat: recycle 2026-03-18 06:11:04 +08:00
Tienson Qin
071677859d refactor(sync): simplify remote sync flow 2026-03-18 06:11:04 +08:00
Gabriel Horner
e2ec7660f4 enhance: allow all list fields to be sorted
Removes needing to maintain a separate config
just for sorting and allows for more sorting.
Also remove needless home-rolled validation
when babashka.cli already provides it
2026-03-17 15:08:55 -04:00
Gabriel Horner
e6e8a945e8 fix: cli completion of aliases
babashka.cli doesn't support -o=val completion for alias options e.g.
'-f=created-at'. Instead they now correctly complete '-f created-at'
2026-03-17 13:40:16 -04:00
Gabriel Horner
d7d0e939a5 enhance: add cli completion for comma separated options like --fields
Simply add a :multiple-values key to an option spec
2026-03-17 13:34:13 -04:00
Gabriel Horner
02fbd94d1d fix: overlapping cli option user-only
I introduced this not realizing --include-built-in is the opposite.
Now that --no-include-built-in autocompletion is available, there's
no reason to have confusing, opposite options of each other
2026-03-17 12:27:00 -04:00
Gabriel Horner
9a9504b9b5 enhance: cli completion for negating command boolean options
with '--no-'. Don't do global options as most global options don't
apply to all commands and are already turned off by default
2026-03-17 11:56:03 -04:00
rcmerci
209b499494 062-cli-list-default-sort-updated-at.md 2026-03-17 17:30:17 +08:00
rcmerci
5db3a3086c 061-graph-dir-space-preserve-canonical.md 2026-03-17 16:45:36 +08:00
Rustum Zia
5fe47fb69f fix(left_sidebar): don't activate resizer when sidebar is closed (#12455) 2026-03-17 13:43:09 +08:00