Commit Graph

3123 Commits

Author SHA1 Message Date
Tienson Qin
abe03fdaca refactor: use webpack only for workers 2025-09-01 10:27:34 +08:00
rcmerci
ceb1603a11 update logseq/datascript 2025-08-28 22:46:26 +08:00
rcmerci
9ac33d60c3 refactor: update review.md, update date_time.cljs 2025-08-28 17:58:09 +08:00
rcmerci
d05be857f0 refactor: avoid redundant computation on db-rebuild-block-refs 2025-08-28 17:58:09 +08:00
Gabriel Horner
8ea1edd9e5 fix(cli): Unexpected errors should exit 1 2025-08-27 15:06:41 -04:00
Tienson Qin
d7ef292718 fix: tests 2025-08-27 21:58:14 +08:00
Tienson Qin
284edf5d70 fix: can't toggle collapse page 2025-08-27 21:47:13 +08:00
Tienson Qin
61b862d88a fix: remove inline page tags when saving or inserting blocks
Page tags here means db-class/page-classes.
2025-08-27 13:47:27 +08:00
Gabriel Horner
a8e2b173ce fix(api): unexpected failures in api should 500
Previously we were getting 200s which makes handling more complicated
(check status and async response) and was already resulting in buggy
error handling
2025-08-26 15:19:32 -04:00
Gabriel Horner
bf68783348 enhance: add append improvements based on feedback
* For append api call, default to today if app is not in a page context
* API relate commands can auth w/ env var
2025-08-26 11:49:02 -04:00
Gabriel Horner
58270ff934 enhance: add append command
Fixes https://test.logseq.com/#/page/689ca670-d93f-4fe0-a262-029d95f8450f
2025-08-26 11:27:34 -04:00
Gabriel Horner
4b5a16628a enhance: add in-depth usage descriptions to more complex commands 2025-08-26 11:27:34 -04:00
Gabriel Horner
610e77bb90 fix: rename api-query-token options to api-server-token
api-query-token doesn't make sense as a name as it the token isn't
specific to query. This was an accidental name while working on query
cmd
2025-08-26 11:27:34 -04:00
Gabriel Horner
c0bee994c1 enhance: print usage for required arg errors 2025-08-26 11:27:34 -04:00
Gabriel Horner
ffaccbb33e enhance: export command can save to file option
Also update export-edn command to have same default behavior as
export command. Printing to stdout was ok for dev but is surprising and
possibly overwhelming for most graphs
2025-08-26 11:27:34 -04:00
Gabriel Horner
13d7709b34 chore: dry up usage of same fn across 3 namespaces 2025-08-26 11:27:34 -04:00
Gabriel Horner
0722097df1 enhance: export cmd reuses existing namespaces 2025-08-26 11:27:34 -04:00
Gabriel Horner
6a84e56984 enhance: working spike for export md command
export namespaces aren't reused yet. Fixed bug w/ get-block-and-children
not invoking correctly in nbb. Bumped all deps to use latest nbb-logseq
2025-08-26 11:27:34 -04:00
Gabriel Horner
a81ca147f6 fix: db lint 2025-08-26 10:57:27 -04:00
rcmerci
92ed692151 enhance: remove usages of macro get-all-defined-kw->config 2025-08-26 21:15:23 +08:00
rcmerci
c385f361af Revert "fix: fix property definitions"
This reverts commit 28b958ff7c.
2025-08-26 21:15:23 +08:00
Tienson Qin
bb1a502806 fix: click on indentation line to unfold nodes not working
related to https://github.com/logseq/db-test/issues/423
2025-08-26 21:04:09 +08:00
Tienson Qin
be2977dd40 fix: t o to toggle open all blocks
related to https://github.com/logseq/db-test/issues/423
2025-08-26 20:31:08 +08:00
rcmerci
28b958ff7c fix: fix property definitions
defkeywords is macro, property-ignore-rtc won't be evaled when compiling
2025-08-26 16:32:52 +08:00
Tienson Qin
6107d75222 fix: ensure page/create returns existing page uuid 2025-08-26 10:55:46 +08:00
Tienson Qin
3baff22123 fix: node created from tables can't be converted to Page
related to https://github.com/logseq/db-test/issues/428
2025-08-26 09:29:46 +08:00
Tienson Qin
4b680bb737 fix: datetime values not shown if their journal pages not exist 2025-08-25 21:40:50 +08:00
Tienson Qin
0696a556d9 fix: page refs not saved in quick capture 2025-08-25 20:49:48 +08:00
Tienson Qin
063aec02a7 fix: can't create page with the same name if namespace page exists
fixes https://github.com/logseq/db-test/issues/429
2025-08-25 14:56:05 +08:00
Tienson Qin
77c7412271 fix: references not calculated right
related to https://github.com/logseq/db-test/issues/436#issuecomment-3217902953
2025-08-25 12:49:56 +08:00
Tienson Qin
b2034753aa fix: sort pages by backlinks count
fixed https://github.com/logseq/db-test/issues/441
2025-08-24 13:36:49 +08:00
Tienson Qin
79000a0c0d chore: use ex-message instead of .-message to deal with cljs errors 2025-08-20 20:25:17 +08:00
Tienson Qin
9e06eeae03 fix: wrong catch place 2025-08-20 20:05:38 +08:00
Tienson Qin
abbc302626 fix: disallow block move if target doesn't have a parent
other cases:
1. moving non-page block to Library
2. move a page to be child of a block
2025-08-20 19:55:59 +08:00
charlie
c2d4b200dd fix(mobile): incorrect animation for the stack depth sheet 2025-08-15 16:31:21 +08:00
Tienson Qin
36de5397e1 feat: sort groups for views (#12046)
* Add two properties for groups sorting

1. :logseq.property.table/sort-groups-by
2. :logseq.property.table/sort-groups-desc?

* Add ui for groups sort by and order

* enhance: sort by journal day desc by default

* rename to :*.view/sort-groups-by-property to make it clear that

property type is :property.

* suggested by copilot

* fix: name

* Group by Page instead of "Block Page"
2025-08-14 13:24:51 +08:00
Gabriel Horner
50325ff7f6 enhancement: add offline CLI search and predefined query
to address https://github.com/logseq/logseq/pull/12000#issuecomment-3177406045.
Also bump version for initial release
2025-08-14 13:24:50 +08:00
Tienson Qin
3faee9cc7e fix: stale embedding check (#12049)
* fix: slow stale embedding check

* fix: mark all blocks for embedding when full embedding

Also, store hnsw index for each batch so that embedding can continue
when aborted by switching graph or closing the app.

* remove embedding/re-embedding-graph-data!

* enhance: mod+c mod+s to rebuild both keyword and semantic search
2025-08-14 13:24:50 +08:00
charlie
aecff1e18f Merge branch 'master' into enhance/mobile-silk 2025-08-12 10:40:30 +08:00
Gabriel Horner
7c610cfd51 chore: bump cli alpha release 2025-08-11 17:14:50 -04:00
Gabriel Horner
35c2952f6b fix: commands with required arguments
failing w/ confusing stacktraces. Also exit correctly when a nonexistent
graph is given
2025-08-11 17:05:39 -04:00
Gabriel Horner
a6974021ce chore: add basic help test
Also add assertion to guard against previous load time issue
2025-08-11 17:05:39 -04:00
Gabriel Horner
5adc5dcdc6 enhance: entity queries per Tienson's feedback
Can use uuid string as shorthand identifier. Can make properties
readable with option. Also wire up local query to use default catch
handler
2025-08-11 17:05:39 -04:00
Gabriel Horner
d5c46433b2 fix: silent failures on commands
Also add user friendly error handling when api server isn't turned on
2025-08-11 17:05:39 -04:00
Gabriel Horner
70855ef033 chore: add changelog
also fix minor bug silently failing show command for abnormal graphs
2025-08-11 17:05:39 -04:00
Gabriel Horner
bf6433ed7a chore: update readme 2025-08-11 17:05:39 -04:00
Gabriel Horner
677f5df46b fix: also print version correctly when installed via npm 2025-08-11 17:05:39 -04:00
Gabriel Horner
637d158478 chore: prep package.json for alpha release
confirmed with npm pack that CLI works with files config
2025-08-11 17:05:39 -04:00
Gabriel Horner
8beb52e213 fix: bump to latest nbb-logseq to fix quirky datascript require 2025-08-11 17:05:39 -04:00
Gabriel Horner
3ae3ff2cd4 fix: CLI start time
Lazy load namespaces as start time goes up with more required namespaces
external to nbb-logseq or node. CLI now only loads ~6 namespaces instead
of 55 namespaces at start and then lazy loads a command ns as needed
2025-08-11 17:05:39 -04:00