Tienson Qin
16f8beefaf
fix: model and page ref test
2024-01-10 04:47:18 +08:00
Gabriel Horner
e1ad1fd9c8
fix: invalid blocks in import created by tags and refs
...
Also make :block/format valid. Part of LOG-2990
2024-01-09 13:43:00 -05:00
Gabriel Horner
e715881a4f
fix: macro blocks and remove file-graph only attributes for import
...
Also disable properties until it's ready. Part of LOG-2990
2024-01-09 12:48:27 -05:00
Tienson Qin
501c06c44f
fix: whiteboard redundancy
2024-01-09 16:53:49 +08:00
Gabriel Horner
6ad5fb2dd4
fix: db graphs not adding :block/content for whiteboard shape
...
Caused by hopefully one of the last incorrect lookups of
:block/properties
2024-01-08 16:16:07 -05:00
Gabriel Horner
0957cb15b3
fix: built-in props weren't persisted to opfs
...
and didn't show up in new graphs. Fixes LOG-2998. Issue was that
e6a464e64f introduced transacting built-in
properties twice. Since the first transaction doesn't send tx-data to
the db-worker (an issue with pipeline/invoke-hooks it seems), the 2nd tx
results in missing property info including name. Removing this
incorrectly setup first tx allows the original one to successfully send
initial property data to db-worker
2024-01-08 11:26:22 -05:00
Gabriel Horner
6e911798e7
fix: Make bare graph valid for file graph import
...
Fixed blocks, pages and config.edn as part of LOG-2990
2024-01-05 17:03:35 -05:00
Tienson Qin
fa2892cef6
use ldb/transact! instead of d/transact!
2024-01-05 06:42:10 +08:00
Tienson Qin
086a052ee7
Move page-create to worker
2024-01-05 01:02:22 +08:00
Tienson Qin
f3e7f8b66b
remove handler.whiteboard dependency for rtc.core
2024-01-04 17:30:04 +08:00
Tienson Qin
7258cf48da
fix deps
2024-01-03 18:12:12 +08:00
Tienson Qin
9194a671fd
Move outliner core to its own dep
2024-01-03 18:02:48 +08:00
Tienson Qin
faf2d8116a
Move worker.mldoc and worker.file.property.util to graph parser dep
2024-01-03 17:35:12 +08:00
Tienson Qin
a6f83c2445
Move worker.util fns to common.util
2024-01-03 17:08:24 +08:00
Tienson Qin
b7d9098e80
Move gp-util and gp-config to the common dep
2024-01-03 16:38:05 +08:00
Gabriel Horner
4fd0b65639
bump nbb-logseq to use datascript with dirty flag fix
2024-01-02 17:07:11 -05:00
Gabriel Horner
5afbfce4a0
fix: graph-parser lints and tests from #10770
2024-01-02 16:22:04 -05:00
Tienson Qin
0ca1bd61eb
wip: outliner core refactor
2024-01-02 21:46:40 +08:00
Andelf
098766b1fb
enhance: support of importing from graph folder to db graph
2024-01-02 18:17:11 +08:00
Tienson Qin
54d2cd6a0d
fix: tests and warnings
2023-12-25 17:36:46 +08:00
Tienson Qin
018e1ae8ee
Merge branch 'master' into feat/db
2023-12-23 14:18:25 +08:00
Gabriel Horner
d4f438f228
bump nbb-logseq for latest datascript
2023-12-21 13:00:44 -05:00
Gabriel Horner
52f7afa18f
bump nbb-logseq to latest datascript with another storage delete fix
...
part of LOG-2974
2023-12-19 13:42:13 -05:00
Gabriel Horner
de3d82baba
bump to latest nbb-logseq with datascript.storage delete fix
2023-12-18 11:10:59 -05:00
Tienson Qin
621faf90a4
fix: don't treat a block as pre block if it has auto heading
2023-12-15 17:10:16 +08:00
Gabriel Horner
ffa6aaae29
fix: remove unused db.sqlite related fns
...
- remove sqlite-db/close! as its not used and didn't make sense to be
used in other electron ns
- remove sqlite-db/connections atom as its not needed
- remove read-graph as its not necessary
- rename cli.persist-graph as its primary purpose has changed
- update effected scripts
2023-12-13 12:06:24 -05:00
Gabriel Horner
0f4cdbbadf
bump outdated nbb-logseq and fix lint
2023-12-11 15:55:38 -05:00
Gabriel Horner
e0901b9d04
bump nbb-logseq to first version
...
that works for forked datascript. Deps tests pass locally
without needing to rely on local builds
2023-12-11 13:52:15 -05:00
Gabriel Horner
b5eabc80ee
fix: db and graph-parser nbb tests to pass locally
...
Updated sqlite fns to use updated approach. Deleted some unused
fns from old approach
2023-12-11 13:51:47 -05:00
Tienson Qin
ea3f5973b7
Merge branch 'feat/db' into feat/datascript-storage
2023-12-06 01:10:23 +08:00
Tienson Qin
67fd609170
fix: typing a normal page as a tag silently changes its page type
...
User can choose to create either a page or a class with '#' now.
FIXES LOG-2742
2023-12-05 17:31:21 +08:00
Tienson Qin
e8d411b837
fix: typing markdown property results in a blank line
...
Fixes LOG-2741
2023-10-27 14:23:26 +08:00
Gabriel Horner
edaf9b286a
chore: move frontend db namespaces to a dedicated parent ns
...
Moved these namespaces to logseq.db.frontend.* to make their purpose
explicit and make the namespaces easier to maintain
2023-10-16 17:24:51 -04:00
Gabriel Horner
b1b830c872
fix tests I forgot to update with :block/format fix
2023-10-16 16:14:53 -04:00
Gabriel Horner
e09a5d9988
fix: pages didn't consistenly have :block/format
...
Making attributes consistent reduce bugs in components and query layer (where
most wouldn't know to use get-else)
2023-10-16 12:58:11 -04:00
Gabriel Horner
82994cb79d
fix: tests related to :block/type arity change
2023-09-25 12:30:21 -04:00
Tienson Qin
0e8653985d
refactor: allow a block to have multiple types
...
For example, a whiteboard page can be used both as a property and a class.
2023-09-25 10:46:00 +08:00
Gabriel Horner
ea8d6679de
Fix frontend and graph-parser tests
...
A number of outliner tests were failing which is distracting when trying
to separate out outliner namespaces. Most failures were caused by
introduction of state/get-selection-blocks into outliner layer. A few
are caused by trivial count change in datoms. Removed config/test? from
outliner as it's unused
2023-09-06 11:57:41 -04:00
Gabriel Horner
b264d17309
Move db-graph property fns to its own logseq.db ns
...
db-graph related fns like these shouldn't be in the graph-parser dep as
that dep should only really be used with file graphs as much as possible.
This is also being done in preparation for making the create-graph ns independent of
the frontend
Also db- prefixes in fns were dropped since the ns now carries the db-
prefix
2023-09-05 17:15:45 -04:00
Tienson Qin
60ab58c2ad
fix: can't tag a block if the tag name has spaces
2023-09-06 01:08:33 +08:00
Gabriel Horner
deb2a1aaad
fix: render v2 tables correctly
...
also added shui properties so they are built-in
and editable
2023-08-24 16:42:24 -04:00
Gabriel Horner
775a38f91d
fix: sorting for keyword columns
2023-08-22 17:15:32 -04:00
Gabriel Horner
6ad560e4cb
fix: query table column selection
...
also fix lint in related ns
2023-08-22 16:27:04 -04:00
Gabriel Horner
ef03f12da7
Fix typos and get fn back to a reasonable size
2023-08-22 08:55:29 -04:00
Tienson Qin
6f8b9712d9
fix: other unit test
2023-08-18 21:42:37 +08:00
Gabriel Horner
0f1f8873f3
fix: existing tags and alias are now excluded
...
if they already exist on a block. Also fixed lower case version
of properties not being excluded. Also fixed lint in component ns
2023-08-16 15:40:24 -04:00
Gabriel Horner
172ee0ae24
Provide sqlite.cli for reusable sqlite fns
...
Already had to do read-graph 3 times and will soon need to it outside
logseq so worth putting this behind an api ns
2023-08-15 18:08:44 -04:00
Tienson Qin
e2c28aa91a
enhance: hide block refs count for blocks created in property
2023-08-07 18:53:28 +08:00
Tienson Qin
668a17c2af
enhance: be able to collapse/expand properties
2023-08-07 17:31:34 +08:00
Tienson Qin
6ec79d48cb
feat: property icon emoji picker
2023-08-07 15:03:03 +08:00