Commit Graph

16067 Commits

Author SHA1 Message Date
Tienson Qin
4800ed2ec6 Add more apis for db graphs
1. get_all_tags
2. get_all_properties
3. get_tag_objects
2025-10-07 22:16:57 +08:00
Tienson Qin
3cc530a16f refactor(plugins): separate file graph apis 2025-10-07 21:26:23 +08:00
Tienson Qin
3fa1c5c9b8 fix(plugins): prepend block 2025-10-07 20:42:50 +08:00
Tienson Qin
f330f11ef8 refactor(plugins): use <get-block when possible 2025-10-07 20:16:19 +08:00
rcmerci
1747e3f1d0 fix: properties stable sort, normalize :block/order of properties
1. When sorting properties, consider cases where values are nil or blocks/orders are identical.
2. If block/order are nil or duplicated in sorted-properties, recalculate and transact them
2025-10-07 02:43:57 -07:00
Tienson Qin
b4c83a7f6a fix(plugin): get_page_linked_references
fixes https://github.com/logseq/db-test/issues/498
2025-10-07 17:30:39 +08:00
Tienson Qin
ac53f76c2d fix: lint 2025-10-07 12:59:23 +08:00
Tienson Qin
df48615e78 refactor: separate db-related fns to logseq.db.api 2025-10-07 12:39:08 +08:00
Tienson Qin
87fc95eb4a fix(api): insert_batch_block support properties
related to https://github.com/logseq/db-test/issues/476
2025-10-06 16:07:24 +08:00
Tienson Qin
e001e12c1f fix(api): insert_batch_block target doesn't support page uuid 2025-10-06 15:45:40 +08:00
Tienson Qin
d2acb49b56 no need to calculate block/refs when pasting blocks 2025-10-06 15:02:16 +08:00
Tienson Qin
caef419a91 fix: insertBlock api with properties 2025-10-06 14:10:52 +08:00
rcmerci
14c240dd5c chore: update arguments of sqlite3InitModule 2025-10-04 21:42:04 +08:00
An Li
584b980a97 enhance: enhance PDF reading experience. (#12121)
* enhance: enhance PDF reading experience.
- [X] Save zoom in/out scale for next opening
- [X] prevent zoom level reset when window/frame changed. fix for #4402
- [X] add a reset zoom button on the pdf toolbar, it gives an opportunity to user manually reset zoom scale to 'auto', it mimics Zotero PDF reader behavior.
- [X] Support zoom in/out with Meta/CTL + mouse wheel and track pad pinch

* enhance(pdf): allow number or string for last visit scale in debounce function

* enhance(pdf): improve scale conditions for the wheel event

---------

Co-authored-by: charlie <xyhp915@qq.com>
2025-10-04 19:35:17 +08:00
Gabriel Horner
846f9307c3 enhance: notify users when assets exceed max size
so they are aware why asset was ignored. Also if asset ids are not
present we should fail loudly like we everywhere else in the importer.
Users should know when data is missing instead of hiding it in the
console. Also refactor confusing usage of :block/uuid to :asset-created?
as it was only used to track the first time an asset is built to be
transacted
2025-09-29 17:37:04 -04:00
Tienson Qin
971cec54bc fix(import): remove asset byte-array usage to prevent OOM
This commit also combine read-asset and copy-asset to read-and-copy-asset
2025-09-29 17:37:04 -04:00
Gabriel Horner
b4d3fb4284 fix: nil api response causes error
Should address https://github.com/logseq/db-test/issues/491
2025-09-29 09:00:09 -04:00
Tienson Qin
54b6ea9e4f fix: upsert_block_property support schema too 2025-09-29 10:08:03 +08:00
Tienson Qin
983e74f83c enhance(plugin): auto infer :checkbox and :url types and cardinality
Ensures a plugin can upsert its own properties
2025-09-27 02:19:10 +08:00
Tienson Qin
9336c466f2 Revert "fix(import): remove ::byte-array to prevent excessive file content from being stored in memory"
This reverts commit 19b772d72c.
2025-09-27 01:51:05 +08:00
rcmerci
0af69a942a enhance(rtc): limit asset-size 2025-09-27 01:51:05 +08:00
rcmerci
bf78faa6e7 fix(import): remove ::byte-array to prevent excessive file content from being stored in memory
causing an out-of-memory error
2025-09-27 01:51:05 +08:00
charlie
9f8089c406 enhance(mobile): annoying keyboard behavior in the block editor modal container 2025-09-27 01:51:05 +08:00
Tienson Qin
0230d08898 fix: limit asset size to 100M when adding assets through the app 2025-09-27 01:51:05 +08:00
rcmerci
bf99e6818b fix: fix err log condition 2025-09-27 01:51:05 +08:00
rcmerci
46a48ea14a fix: clean compile warnings 2025-09-27 01:51:05 +08:00
rcmerci
a2984574ae chore: debug error log 2025-09-27 01:51:05 +08:00
Tienson Qin
49c83fa230 Revert "fix(import): remove ::byte-array to prevent excessive file content from being stored in memory"
This reverts commit 19b772d72c.
2025-09-26 20:38:46 +08:00
rcmerci
b275207abf enhance(rtc): limit asset-size 2025-09-26 19:55:37 +08:00
rcmerci
19b772d72c fix(import): remove ::byte-array to prevent excessive file content from being stored in memory
causing an out-of-memory error
2025-09-26 17:03:02 +08:00
charlie
927e84e2b7 enhance(mobile): annoying keyboard behavior in the block editor modal container 2025-09-26 15:22:33 +08:00
Tienson Qin
22a09ca776 fix: limit asset size to 100M when adding assets through the app 2025-09-26 14:42:12 +08:00
rcmerci
081deaee0a fix: fix err log condition 2025-09-26 11:53:29 +08:00
Tienson Qin
77baacd24e enhance(plugin): throw more errors
1. expose :json, :page, :string to plugins
2. api supports `schema` to allow authors configure property type and
cardinality
3. support multiple values
2025-09-26 03:17:41 +08:00
rcmerci
09aa5901d6 fix: clean compile warnings 2025-09-26 01:14:23 +08:00
Tienson Qin
cfe0b22997 refactor: [WiP] property-related api 2025-09-26 00:09:59 +08:00
rcmerci
e739f23a37 chore: debug error log 2025-09-25 23:30:58 +08:00
Tienson Qin
20a477c35b refactor: move db graph page operations to outliner dep 2025-09-25 21:35:50 +08:00
charlie
9705f57053 enhance(mobile): polish the select graph popup 2025-09-25 20:16:02 +08:00
Tienson Qin
13f510ca0c enhance(mobile): auto-detect audio language 2025-09-25 17:09:27 +08:00
rcmerci
83474008ab refactor: update logs 2025-09-25 16:23:42 +08:00
Tienson Qin
ede13f773b enhance: show transcribe button iff ios 26 2025-09-25 14:24:18 +08:00
rcmerci
3d8d200c2c enhance: add :thread-api/get-rtc-graph-uuid 2025-09-25 13:07:54 +08:00
rcmerci
302e7f49b4 enhance(rtc): add logs for rtc-start (2) 2025-09-25 12:54:33 +08:00
Tienson Qin
3a6970567a fix: non-page block references with icon missing icon itself
fixed https://github.com/logseq/db-test/issues/475
2025-09-25 12:53:43 +08:00
rcmerci
3387e5df4f fix lint 2025-09-25 12:24:32 +08:00
rcmerci
900a0d6da4 enhance(rtc): add logs for rtc-start 2025-09-25 12:22:31 +08:00
Tienson Qin
4679528722 fix: Today's date displays as "Yesterday"
related to https://github.com/logseq/db-test/issues/485
2025-09-25 11:38:53 +08:00
Tienson Qin
ea057fcc36 fix: api test on file graphs 2025-09-24 22:05:39 +08:00
Tienson Qin
8039054e75 enhance(api): add fullTitle and remove temp properties 2025-09-24 21:49:43 +08:00