Commit Graph

21 Commits

Author SHA1 Message Date
Tienson Qin
e5982b678d enhance: run db validation before graph EDN export 2025-12-24 16:25:33 +08:00
Gabriel Horner
134dc0f2a8 enhance: validate export EDN for most export types
and error explicitly if they can't import. This is much better
for the user so they aren't finding out later that EDN is invalid
on import. Added both to the export menu and to export EDN commands that
aren't graph-wide. Related to
https://github.com/logseq/db-test/issues/549
2025-12-02 13:50:09 -05:00
Gabriel Horner
5489e7572f enhance(cli): export-edn prints unexpected errors
especially when an invalid export-type is given
2025-11-18 09:51:20 -05:00
Gabriel Horner
f6d8595645 fix: view edn export fails for group by
Fixes https://github.com/logseq/db-test/issues/300
2025-06-05 10:07:31 -04:00
rcmerci
cce15d2c42 fix(export): export-edn on table-view 2025-04-08 15:41:08 +08:00
Gabriel Horner
7c583c4892 fix: export edn displayed success when errors happened
Also fix unreferenced :block/alias uuids as found in
https://github.com/logseq/db-test/issues/243
2025-04-02 08:27:52 -04:00
rcmerci
5a87b609a5 refactor: use <invoke-db-worker to replace @*db-worker 2025-03-26 19:04:22 +08:00
rcmerci
cae3084f9c refactor: use the namespace "thread-api" for all thread-api keywords 2025-03-26 16:47:28 +08:00
rcmerci
961a143aa1 refactor: remove unnecessary ldb/read-transit-str 2025-03-26 16:47:28 +08:00
rcmerci
7ca1fe7569 refactor: unify the transit-read/write for the return values of the thread-api 2025-03-26 16:47:28 +08:00
rcmerci
1151b33df4 refactor: remove defclass DBWorker 2025-03-26 16:47:28 +08:00
Gabriel Horner
392fe81173 refactor: mv import to appropriate ns and reuse import fns 2025-03-18 08:58:03 -04:00
Gabriel Horner
06b3bba5fc enhance: add export edn graph as file
Remove command version of export which is a less useful dev tool
than what's possible with cli
2025-03-17 23:28:43 -04:00
Gabriel Horner
332b7a0825 fix: lints and new scripts having same path bugs as feat/db 2025-03-17 12:08:44 -04:00
Gabriel Horner
1148757ae9 display error if one of the import transacts fail 2025-03-17 11:58:30 -04:00
Gabriel Horner
078ac512ad add export graph command
Also add properties :file option. Was useful to compare sqlite.build
EDN w/ export equivalent
2025-03-17 11:58:30 -04:00
Gabriel Horner
a7b586b2b0 add export+import support for files 2025-03-17 11:58:30 -04:00
Gabriel Horner
1d855d012f enhance: add EDN export for any view 2025-02-26 16:43:23 -05:00
Gabriel Horner
7da4f7a9b7 enhance: improve error handling for exports + imports
Display user friendly notification when unexpected failures occur.
Also actively validate export to ensure it can even import
2025-02-13 14:00:57 -05:00
Tienson Qin
e7e4294088 Feat: view group by (#11731)
* wip: view group by

* feat: view group by rendering

* enhance: use current group's value when creating new block

* enhance: add icons for view layouts

* fix: group rows selection

* fix: property type migration from #11695

* refactor: use namespaced keyword for block export

instead of confusing :build/block. Also improved related tests,
simplified import steps, added some missing sqlite.build docs,
and fixed :build/uuid not working for some existing journals.

* fix: remove export+imports invalid

when uuids are kept and when journals are created.
Also removed :logseq.class/Journal from export as its needless noise

* fix(ux): incorrect behavior for the sub menu content within the table header popup

* fix: group rows delete

* fix: lint

* fix: group block delete

* fix: bump version

* fix: group by titles not correct for :checkbox

Also enable group-by for :date as they just work

* fix: disable nonsensical and unreadable groupings for :many properties

* fix: grouping not working for :default property type

and sometimes :number or :url.
Was grouping by entity and not what user reads. If there are
2 :default values with 'text ha', this seemed buggy

* fix: icons not showing for grouping by status

---------

Co-authored-by: Gabriel Horner <gabriel@logseq.com>
Co-authored-by: charlie <xyhp915@qq.com>
2025-02-12 12:56:55 -05:00
Gabriel Horner
4ed5897e4e chore: enable export+import edn commands
for any user. Better to get feedback early and iterate.
Easy to reverse this as needed
2025-02-11 15:31:29 -05:00