Gabriel Horner
a61ee21e25
enhance: add basic script to test db graph import
...
also tweaked query script to work with db graphs by relative path
2024-02-24 00:42:46 -05:00
Gabriel Horner
356657d36b
fix: adding uuids on imported classes causes multiple bugs
...
Caused invalid blocks as properties that were on the same block
as new class had invalid uuids. Also caused content to have
incorrect mangled uuids. Part of LOG-2985
2024-02-23 15:23:47 -05:00
Gabriel Horner
eb994662a6
enhance: user can choose properties' values to import as classes
...
The user specified properties are then no longer needed since the
concept is built-in. Part of LOG-2985
2024-02-23 12:42:16 -05:00
Tienson Qin
6580edf841
fix: undo/redo
2024-02-23 23:50:44 +08:00
Tienson Qin
6329f6e4e7
perf: async writes
2024-02-23 23:32:24 +08:00
Tienson Qin
86b70c1f6d
fix: compute block/refs and block/path-refs after pulling remote
2024-02-23 21:35:11 +08:00
charlie
9f5104e590
refactor(ui): WIP refactor the perperty editor with the shui pupops
2024-02-23 14:48:25 +08:00
Gabriel Horner
8cc4a9a63c
fix lint
2024-02-22 17:03:28 -05:00
Gabriel Horner
dad848fa73
enhance: improve property type detection
...
with macros. This improves :url property detection in docs
graph and other similar graphs. part of LOG-2985
2024-02-22 16:00:03 -05:00
Gabriel Horner
bfc5bf9ccc
enhance: allow user macros for :url property values
...
and single line :default values
2024-02-22 14:49:03 -05:00
Gabriel Horner
531a8ef533
enhance: import :filters and helpfully ignore :icon
...
Better to ignore :icon and explain to user than import them as broken with no explanation.
part of LOG-2985
2024-02-22 10:12:09 -05:00
Gabriel Horner
37135fd242
enhance: import tags for existing pages - LOG-2985
...
also fixed namespaces and aliases missing from existing pages
2024-02-21 17:16:21 -05:00
Gabriel Horner
a010298fc6
enhance: handle invalid property value changes
...
Ignore invalid property values and notify user, rather than
import them as broken. Part of LOG-2985
2024-02-21 15:30:27 -05:00
Gabriel Horner
95a43e24a3
clean up property importing - part of LOG-2985
...
- infer block property values by properties, not refs
- remove unnecessary property-changes state
- centralize property-change logging and handling
2024-02-21 11:45:40 -05:00
Gabriel Horner
9591c51997
enhance: import properties of existing pages
...
including property pages. part of LOG-2985
2024-02-20 23:02:44 -05:00
Gabriel Horner
ddefb677f2
enhance: import most page properties - part of LOG-2985
...
Also fix validation and bugs with built-in props. Add additional info
on parent-left conflicts as I encountered a couple while testing
pre-block removal
2024-02-20 14:50:49 -05:00
charlie
6d1fdd445a
enhance(ui): export popup APIs to ui ns
2024-02-20 13:34:23 +08:00
Gabriel Horner
f28cf73ef4
enhance: validate db once for an import
...
and notify if there are invalid blocks. Removed validating per tx during
import which speeds up import 5-10% on small graphs and more on larger
graphs. Also print some useful stats in the console
2024-02-19 15:34:58 -05:00
Gabriel Horner
4f3c4c9e03
fix: handle a property :default to :page change
...
Part of LOG-2985. :page property values would just be references so
use properties-text-values over `str`. Also added import timing
2024-02-19 11:34:42 -05:00
charlie
38406fb39a
enhance(ui): add tag for the popups pending state
2024-02-18 11:36:55 +08:00
Gabriel Horner
7734bc8791
enhance: import can detect property type changes
...
and handle auto-converting a value changing from :default to any prop type
2024-02-17 00:24:50 -05:00
Gabriel Horner
04e5c79ee0
fix: invalid property values by unsupported template blocks
...
Correctly ignore template properties until it's supported
2024-02-16 12:36:27 -05:00
Gabriel Horner
3bf7ee5645
enhance: import support for :page and infer :date properties
2024-02-16 11:36:06 -05:00
Gabriel Horner
0bba0a2ca9
enhance: import built-in logseq.* props - part of LOG-2977
2024-02-15 15:01:01 -05:00
Gabriel Horner
18d3c87016
enhance: support built-in property imports. part of LOG-2985
...
:query-properties and :query-sort-by need translating. Don't
override block/schema of built-in properties. Also display
property closed values in block data cmd
2024-02-15 12:27:36 -05:00
Gabriel Horner
b5a52edae8
fix: db lint
2024-02-14 17:20:27 -05:00
Gabriel Horner
3b745ac035
enhance: first pass at importing block properties
...
part of LOG-2985. Still somethings failing for docs graph
2024-02-14 17:16:36 -05:00
Gabriel Horner
a0329fdfff
fix: page properties are deleted when block content changes
...
Fixes LOG-3044. Also added more ref and property info to block data cmd
2024-02-14 12:09:37 -05:00
Gabriel Horner
2ff0cc1702
enhance: import whiteboards
...
Fixes LOG-2981. Also start setting up block properties for LOG-2985
2024-02-13 15:41:56 -05:00
Gabriel Horner
48b974d64e
enhance: all page refs in imported content are special ids
...
close LOG-3055. Also fix graph-parser errors being ignored
2024-02-12 22:02:54 -05:00
Gabriel Horner
6dc1272bf2
fix: lint and remove unused ast in file graph exporter
...
Also remove unused options on d/transact!
2024-02-12 15:52:52 -05:00
Gabriel Horner
06ad57efff
fix: page tags causing invalid properties on larger graphs
...
Tags that had their own pages were resulting in invalid properties. This
is because we were re-transacting existing pages as new pages
with new uuids which resulted in invalid properties. Fixes LOG-2984.
Also moved graph-parser export (import from db perspective) to its own
ns
2024-02-12 12:33:13 -05:00
Gabriel Horner
26bc6f0d1d
chore: mv logseq.graph-parser.util.db to db dep
...
This ns is more appropriate in db and was only in graph-parser because
the date-time-util lib wasn't accessible to db until #10933 landed.
graph-parser dep is specific to file graphs and as much as possible
anything unrelated to this should not be in this dep
2024-02-09 16:16:33 -05:00
Gabriel Horner
e8010de9c3
fix: outliner vars that should be private
2024-02-09 09:07:29 -05:00
charlie
832f18923d
feat(ui): add x-popup implementation to shui
2024-02-09 12:12:21 +08:00
Tienson Qin
62b90b7ae7
Merge branch 'feat/db' into perf/lazy-load-data
2024-02-09 09:28:36 +08:00
Gabriel Horner
dab6b5aff4
enhance: add support for importing page and block tags
...
Allows users to specify which tags are tag classes and
the rest are just normal pages. Fixes LOG-2984
2024-02-08 16:49:27 -05:00
charlie
5b6b9d050a
enhance(ui): WIP playground for x popup
2024-02-08 17:10:27 +08:00
charlie
818cc2e4bb
enhance(ui): WIP playground for x popup
2024-02-08 16:19:08 +08:00
charlie
acb577c5f6
enhance(ui): WIP playground for x popup
2024-02-08 11:07:37 +08:00
charlie
6eb46ba77a
enhance(ui): WIP playground for x popup
2024-02-08 10:04:11 +08:00
Gabriel Horner
58b2888729
fix: test and lints
...
also remove unused binding not caught by linter b/c it's used
2024-02-07 12:23:14 -05:00
charlie
b6a0ecd462
enhance(ui): WIP playground for x popup
2024-02-07 20:02:10 +08:00
charlie
41e72b976b
enhance(ui): WIP playground for x popup
2024-02-07 18:50:40 +08:00
charlie
1466ad8cc5
enhance(ui): WIP playground for x popup
2024-02-07 16:48:44 +08:00
Tienson Qin
bee1cbfeb5
fix: load page tags
2024-02-07 07:22:40 +08:00
Tienson Qin
0a028ba235
fix: editor unit tests
2024-02-07 06:38:52 +08:00
Tienson Qin
bd9ebaf3fd
perf: skip loading classes for the initial data
...
re-init commands after pages has been loaded
2024-02-07 04:54:54 +08:00
Tienson Qin
6c6cc8ec34
Load classes for initial data since task commands require them
2024-02-07 04:47:57 +08:00
Gabriel Horner
b1bcc1b2dd
fix: unit test, lint + script
2024-02-07 04:09:01 +08:00