rcmerci
e3b57eb915
refactor: use db instead of conn as much as possible in outliner/core.cljs
...
fns that do not update db should use `db` instead of `conn` whenever possible.
it becomes easier to determine which outliner functions have no side effects.
2025-04-12 16:54:10 +08:00
rcmerci
c591598d22
enhance: move adding created-by logic to pipeline-hook
2025-04-11 21:49:03 +08:00
Tienson Qin
74886f9fab
enhance(ux): show block metadata when hovering on bullet
2025-04-11 09:11:06 +08:00
rcmerci
768b745a26
fix: skip nil created-by
2025-04-10 20:39:07 +08:00
rcmerci
ff40821994
feat(rtc): add property :logseq.property/created-by-ref
2025-04-10 19:22:16 +08:00
Gabriel Horner
a18afc62f8
fix: shui/button triggers double-click when Enter is pressed
...
Follow up to 6cb93386ae which only
fixed it for one button
2025-04-09 09:00:54 -04:00
Gabriel Horner
6cb93386ae
fix: creating a choice with keyboard
...
always displays invalid warning. This happened because Enter was
causing a 2nd click, upsert and then the message to display.
Fixes https://test.logseq.com/#/page/67f52d87-3858-4b06-a26b-f601b0c4c1ef
2025-04-08 10:17:14 -04:00
Gabriel Horner
90dbdd6cdc
chore: disallow user idents from clobbering internal idents
...
If users can clobber internal idents it would create bugs and possibly
security issues for internal idents associated with security.
Also updated docstrings of related fn
2025-04-07 16:40:42 -04:00
Tienson Qin
70e2012e29
bump React to 18
2025-04-07 19:51:14 +08:00
Gabriel Horner
99331545c4
enhance: give partial exports reliable page sort order
...
Could be useful as partial exports are used more often
2025-04-04 15:12:11 -04:00
Gabriel Horner
ffca9c862f
enhance: add export+import of selected nodes
...
Fixes https://github.com/logseq/db-test/issues/232
2025-04-04 14:48:09 -04:00
Gabriel Horner
445be61fcf
enhance: Add EDN export to page+block menus
...
for db graphs for more user-friendly use of the feature and to provide
consistency. Addresses a request in #alpha-db-feedback
2025-04-04 11:07:05 -04:00
Gabriel Horner
f4c5e6b0bb
Add time assertion on largest test import to prevent regression
2025-04-04 08:34:31 -04:00
Gabriel Horner
26cbd74cd1
enhance(perf): speed up db graph importer for larger graphs
...
Use atom cache based on tx instead of full db lookup to create
all-existing-page-uuids
2025-04-04 08:34:31 -04:00
Gabriel Horner
a3dfa00ccf
chore: Add optional verbose test runner for graph-parser dep
2025-04-02 12:12:31 -04:00
Gabriel Horner
c6af79a260
enhance: export property aliases
2025-04-02 10:25:30 -04:00
Gabriel Horner
7c38daef24
fix: block/alias failing partial exports
...
e.g. ontology and page exports. Also remove unused fn option
2025-04-02 10:07:26 -04: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
Gabriel Horner
798928aed5
refactor: clean up mutually recursive fns
...
Better to localize dependent fns than to make them circular dependencies
2025-04-01 14:56:38 -04:00
Gabriel Horner
a1bd567906
fix: build+export of closed :many property values
2025-04-01 13:42:42 -04:00
Gabriel Horner
ad64632c1b
enhance: export tags for property values
2025-04-01 11:47:33 -04:00
rcmerci
b342d122f2
enhance(rtc): adjust some properties' rtc config
2025-04-01 16:39:39 +08:00
Gabriel Horner
29ac5a9c18
enhance: export+import property value properties
...
For https://github.com/logseq/db-test/issues/242 . Also added timestamp
support for proprety values
2025-03-31 18:24:11 -04:00
Gabriel Horner
1e29c9ee15
enhance: add sqlite.build support for properties on property values
...
Needed for export in https://github.com/logseq/db-test/issues/242
2025-03-31 17:04:45 -04:00
Gabriel Horner
6209bd0ae2
fix: block/collapsed? not built for properties
2025-03-28 11:16:06 -04:00
Gabriel Horner
dd4b68a140
fix: export for overlapping property+class
...
overlapping entity with blocks was exporting duplicate blocks
2025-03-28 10:39:20 -04:00
Gabriel Horner
872b130eec
fix: export of class + property aliases
2025-03-27 17:27:47 -04:00
Gabriel Horner
9dfb6713ca
enhance: export+import supports properties
...
that double/overlap as classes
2025-03-27 17:02:32 -04:00
Gabriel Horner
e5061f1504
enhance: add export option to exclude-files
...
Useful for demo graphs as it's noisy and not useful to include since
imported graphs already have it. Also added descriptions for properties
graph to share it
2025-03-27 09:13:14 -04:00
Gabriel Horner
144ad2623c
enhance: export+import of class + property page blocks
2025-03-27 09:13:14 -04:00
rcmerci
4b939e8265
fix: support args direct-passthrough to db-worker
...
:thread-api/import-db's arg is a js arraybuffer, which is unable to be transit-write
2025-03-27 16:44:43 +08:00
rcmerci
434c9a67a7
Merge pull request #11790 from logseq/refactor/remove-defclass
...
refactor: remove defclass DBWorker
2025-03-27 14:36:52 +08:00
Gabriel Horner
0233adfebd
fix: remove invalid page-less blocks
...
Also improve validation error message so it's clear what next steps are
2025-03-26 11:30:54 -04:00
Gabriel Horner
11f765638e
fix: invalid graphs b/c of blocks with missing title
2025-03-26 11:10:04 -04:00
Gabriel Horner
638cb6e65f
fix: export failing for some uses of :block/alias
2025-03-26 10:58:23 -04:00
Gabriel Horner
17acbbc8d4
enhance(dev): option to catch export validation errors
...
to write invalid edn and debug issues quicker
2025-03-26 10:25:54 -04:00
rcmerci
7913bb9bf6
chore: add a TODO to simplify ldb/read-transit-str later
2025-03-26 21:27:21 +08:00
rcmerci
cd0e2d438c
chore: nbb.edn does not depend on lambdaisland.glogi
2025-03-26 16:47:28 +08:00
rcmerci
2bfb6bf5f1
fix: remove some ldb/read-transit-str calls
2025-03-26 16:47:28 +08:00
rcmerci
d0422948cb
fix: add some comments for logseq.common.defkeywords
2025-03-26 02:08:30 +08:00
rcmerci
336af2a2db
fix(rtc): enable :logseq.property.view/xxx properties rtc-syncing
2025-03-26 01:25:23 +08:00
charlie
ad1bc36811
chore(dev): remove warning
2025-03-25 14:59:02 +08:00
Gabriel Horner
4d58925ad7
fix: uuid nodes and view nodes not grouping by page
...
They were grouping instead by parent which caused parent blocks to incorrectly
export as pages
2025-03-21 17:10:12 -04:00
Gabriel Horner
4495728abd
enhance: export+import supports :block/collapsed?
2025-03-20 17:11:26 -04:00
Gabriel Horner
aa77ef199d
fix: ident from docs graph couldnt serialize to edn
2025-03-20 16:35:30 -04:00
Gabriel Horner
f3f73e53a0
enhance: graph export+import supports :block/alias
2025-03-20 15:01:50 -04:00
Gabriel Horner
8ed2aeba37
enhance: simplify and speed up graph import
...
By providing ::export-type we can simplify import handling and
turn off property value translation which. Also adds an option to
sqlite.build which is then used by import
2025-03-19 17:48:16 -04:00
Gabriel Horner
f99a89f9b3
enhance: add :logseq.kv data to graph export
...
Addresses
https://github.com/logseq/logseq/pull/11784#pullrequestreview-2697690952 .
Also improves :set option and removes outdated code in a test
2025-03-19 15:41:12 -04:00
Gabriel Horner
210f583cae
enhance(dev): add set option for diff script
2025-03-18 13:00:43 -04:00
Gabriel Horner
103af910d0
refactor: provide default for build/prorties-ref-types
...
Reasonable default reduces building config which could change
2025-03-18 09:54:16 -04:00