Tienson Qin
a44f6c27d5
Merge branch 'feat/db' into refactor/narrow-gap-between-page-and-block
2024-07-21 11:34:49 +08:00
Tienson Qin
249d21df4a
fix: don't create pages for refed objects
2024-07-21 11:10:50 +08:00
Tienson Qin
ed1ee94d88
refactor: blocks search returns all blocks including pages
...
Fuzzy search support both pages and objects (blocks have tags).
2024-07-20 20:10:36 +08:00
charlie
6db0e786e3
enhance(ux): improvements for the page preview editor
2024-07-18 15:41:14 +08:00
charlie
15b15af181
enhance(ui): icon color for the page reference
2024-07-13 16:29:38 +08:00
Gabriel Horner
cd4e0c5642
fix: db import inferring a class' properties
...
Also remove :block/namespace from page import as its unused.
Part of LOG-3176
2024-07-12 16:17:53 -04:00
Gabriel Horner
1f9b893ba0
fix: tests altered by last commit
...
Also add a block-ref example to last whiteboard test page
2024-07-12 14:38:03 -04:00
Gabriel Horner
62252479ee
fix: db import of some whiteboard pages
...
Also fix old whiteboards not having correct :block/type.
Part of LOG-3176
2024-07-12 14:22:10 -04:00
Gabriel Horner
60cd9b00da
fix: db import of namespaced page created invalid class
...
Encountered this with docs graph. Part of LOG-3176
2024-07-12 12:32:48 -04:00
Gabriel Horner
ff5d145e36
fix: docs graph failing to translate :query-properties
...
when using :property-classes option. Also translate :tags
which isn't a user property. Part of LOG-3176
2024-07-12 11:02:15 -04:00
Gabriel Horner
7c19f9faad
fix: db import of whiteboards shouldn't fail
...
Can't visually confirm import yet b/c of whiteboard bug
but at least whiteboard import is valid. Part of LOG-3176
2024-07-12 00:28:03 -04:00
Gabriel Horner
9869bed612
fix: db import of some deadline blocks being invalid
...
Ignore repeated as it's not supported. Part of LOG-3176
2024-07-11 23:29:11 -04:00
Gabriel Horner
879e07b2f4
fix: db import of aliases
...
Also ignore :filters for now so they don't make graphs invalid and
add more tests for tags. Part of LOG-3176
2024-07-11 23:13:08 -04:00
Gabriel Horner
33785dca66
fix: db-import of :query-sort-by property
...
Also fix warning notifications printing empty error logs.
Part of LOG-3176
2024-07-11 18:00:21 -04:00
Gabriel Horner
0bcd48d724
fix: db import when :page property changes to :default
...
Also fix frontend import's db-browser/transact! wasn't getting or
updating all of the imported tx changes. Part of LOG-3176
2024-07-11 17:23:34 -04:00
Gabriel Horner
21f959e5c0
chore: add more db-import tests
...
Test for float and ref block/content replacement. Part of LOG-3092
2024-07-10 16:18:04 -04:00
Gabriel Horner
7ce983df24
refactor: move ignored properties page to its own test
...
Moved it to ignored/ so that frontend import of test-exporter-graph isn't
always displaying warnings. Part of LOG-3092
2024-07-10 15:05:38 -04:00
Tienson Qin
d847023dc1
Refactor: rename :block/content to :block/title
2024-07-10 22:33:44 +08:00
Gabriel Horner
2718ee3b20
fix: new property causes invalid graph
...
New property namespaces are declared in this var /RCmerci
2024-07-10 10:01:54 -04:00
Tienson Qin
a1f352773b
refactor: rename :block/original-name to :block/title
2024-07-10 21:43:03 +08:00
rcmerci
a0ef7b3407
enhance(rtc.asset): add built-in property :logseq.property.asset/remote-metadata
2024-07-10 18:44:20 +08:00
Gabriel Horner
c406cb2461
fix: db import when properties change from :date to :page
...
Part of LOG-3176
2024-07-09 15:22:35 -04:00
Gabriel Horner
60b13a525e
fix: db import of collapsed block being invalid
...
Also cleanup infer fn which had import-specific code and add tests
for :default to :page :type change. Part of LOG-3176
2024-07-09 14:23:22 -04:00
Gabriel Horner
8279205fc7
fix: db import of property :type changes to :default
...
Just handles :one cardinality so far. Part of LOG-3176
2024-07-09 12:33:35 -04:00
charlie
f3888e4509
enhance(ui): polish priority related icons
2024-07-09 10:53:35 +08:00
Gabriel Horner
0f7f4d431e
fix: db import of a page with two uses of new property
...
Also add tests for :date property and first property change.
Part of LOG-3176
2024-07-08 21:48:28 -04:00
Gabriel Horner
5b4cb0d213
chore: add test for block refs
...
Part of LOG-3092
2024-07-08 16:05:30 -04:00
Gabriel Horner
13048a901c
chore: add more property tests for db import
...
Part of LOG-3092
2024-07-08 15:59:33 -04:00
Gabriel Horner
057d6b459f
fix: :url property values with macros
...
Macros in :url are useful for having urls with a common hostname that
can be configured once. Without this fix, docs graph is invalid
2024-07-08 13:34:28 -04:00
Gabriel Horner
47cbe96126
chore: reduce logging verbosity of parser tests
2024-07-08 12:15:07 -04:00
Gabriel Horner
3d732cb018
fix: new class should always set :block/type to "class"
...
New change with :block/type "page" was causing :tag-classes option to
fail. Part of LOG-3176
2024-07-08 11:46:27 -04:00
charlie
95ebc1e805
fix(ui): z-index for the table header row
2024-07-08 23:23:31 +08:00
Gabriel Horner
4efca908a4
fix: sqlite.build not generating valid pages and journals
2024-07-08 11:06:34 -04:00
Gabriel Horner
f7b753758c
fix: tests with outdated :block/type assertions
...
also fix lint
2024-07-08 09:51:29 -04:00
Tienson Qin
374f43e0c4
enhance: add table action bar
2024-07-08 16:12:57 +08:00
charlie
73c4bac53c
enhance(ux): add the table footer row
2024-07-08 14:03:45 +08:00
Tienson Qin
57c578d215
enhance: add class property directly from table
2024-07-08 11:56:04 +08:00
Tienson Qin
b9603c56b7
refactor: create blocks for class views
...
Table state will be stored in the view entity instead of the class.
This is for multiple views support, there could be multiple views
including table, kanban, card, etc.
2024-07-08 09:46:30 +08:00
charlie
19505ae692
fix(ui): css tweaks for the ls table container
2024-07-07 21:44:07 +08:00
Tienson Qin
1854286cf0
refactor: persistent views stored using blocks
2024-07-07 21:05:14 +08:00
charlie
73a53cb368
enhance(ux): WIP another solution for the sticky table header row
2024-07-07 15:41:24 +08:00
Tienson Qin
e27e5f9aa9
fix: built-in? value block is not loaded
2024-07-07 15:08:12 +08:00
Tienson Qin
ff4d3a9c14
enhance: use virtualized-list instead of virtualized-table
...
This should makes it easier to implement group-by
2024-07-07 14:56:14 +08:00
Tienson Qin
1a0b333e7d
Merge branch 'refactor/add-page-type' into feat/db
2024-07-07 13:31:27 +08:00
Tienson Qin
7f209d1776
fix: add page type for file graphs too
2024-07-07 13:29:34 +08:00
Tienson Qin
49b9bfc487
fix: add page type for old db graphs
2024-07-07 13:18:54 +08:00
charlie
61afe1ee2f
enhance(ux): WIP sticky header for the objects table
2024-07-07 11:25:43 +08:00
Gabriel Horner
564effbe07
fix: db import of property pages with new properties
...
Part of LOG-3176
2024-07-06 21:42:31 -04:00
Gabriel Horner
8008ae4a76
fix: db import of tagged pages and blocks
...
using :property-classes option. Part of LOG-3176
2024-07-06 17:13:44 -04:00
Gabriel Horner
655c701d9d
chore: make last arg optional for get-page-blocks
2024-07-06 12:24:07 -04:00
Gabriel Horner
b870d71ea2
chore: configure and test importing favorites
...
Also test :hidden config with existing page count assertion and new ignored page
2024-07-06 12:15:52 -04:00
Tienson Qin
dc456c0c72
fix: get children classes' objects too for a parent class
2024-07-05 22:08:26 +08:00
Tienson Qin
84f7266d96
wip: add "page" :block/type
2024-07-05 21:27:33 +08:00
charlie
821caa2536
enhance(ux): WIP sticky header for the objects table
2024-07-05 17:30:23 +08:00
Tienson Qin
3bcd90c80b
enhance: show select when hovering on it
2024-07-05 15:55:04 +08:00
Tienson Qin
f0b496db93
Merge branch 'feat/tables' into feat/db
2024-07-05 15:25:10 +08:00
Tienson Qin
d523948803
Use new tables for all pages
2024-07-05 15:13:34 +08:00
charlie
d4e8f1d90c
enhance(ux): management for the property shortcuts in the global shortcuts module
2024-07-04 18:14:58 +08:00
Tienson Qin
31305e1904
Merge branch 'feat/db' into feat/tables
2024-07-04 14:48:55 +08:00
Gabriel Horner
e268f2a719
chore: add test for db import of icon
...
part of LOG-3092
2024-07-03 17:08:02 -04:00
Gabriel Horner
96b6763d22
fix: db import of pre-block children
...
Caused by :block/name no longer being unique. Also created helper
for common lookup of page-names-to-uuids. Part of LOG-3176
2024-07-03 16:37:33 -04:00
Tienson Qin
2f50b41066
feat: DB migration for built-in properties && persistent table state
2024-07-04 04:12:51 +08:00
Tienson Qin
6da32a33a0
wip: persist table state
2024-07-04 01:01:12 +08:00
Gabriel Horner
4fb25ff269
fix: incorrect properties warning for empty pages in db import
...
Also remove unused macros and tweaked test assertions from last import
commit
2024-07-03 12:48:10 -04:00
Gabriel Horner
766add9f0c
fix: pages with tags import as classes with
...
:tag-classes option. Part of LOG-3176
2024-07-03 10:01:05 -04:00
Tienson Qin
d078974ee2
fix: loop recur of get-class-parents
2024-07-03 18:05:21 +08:00
Tienson Qin
d132522590
enhance: checkbox color
2024-07-03 10:51:28 +08:00
Tienson Qin
484c4305ef
fix: checkbox
2024-07-03 10:25:14 +08:00
Tienson Qin
a4f7014700
Style tweaks
2024-07-03 09:42:06 +08:00
Gabriel Horner
f0ecf03c4a
fix: db import of tagged page with pageTags
...
Part of LOG-3176
2024-07-02 16:50:00 -04:00
Gabriel Horner
cc4d4588e3
fix: db import of tagged blocks
...
Test this and and :tag-classes option. Part of LOG-3176
2024-07-02 15:59:04 -04:00
Gabriel Horner
1ede4721b7
fix: db import of query properties
...
Part of LOG-3176
2024-07-02 13:32:48 -04:00
Tienson Qin
cba34dbfcf
feat: table properties dnd
2024-07-02 23:36:52 +08:00
Tienson Qin
3c0e57c75c
enhance: add muted color for th
2024-07-02 22:30:06 +08:00
Gabriel Horner
b754234ac3
chore: add import test for deprecated properties
...
Also improved test readability. Part of LOG-3092
2024-07-02 09:59:59 -04:00
Gabriel Horner
7d1f18a6c6
fix: db import of priority and status
...
Part of LOG-3176. Also fix incorrect test assertion for deadline test
2024-07-02 09:32:44 -04:00
Gabriel Horner
98122fb3c8
fix: db import of deadline and scheduled
...
Part of LOG-3176
2024-07-02 20:17:02 +08:00
Gabriel Horner
178ccab99b
chore: add test for importing block/refs
...
Also removes precarious and outdated property update in refs. Part of
LOG-3092
2024-07-02 20:17:02 +08:00
Gabriel Horner
8929d12736
fix: converting existing page into a property page
...
part of LOG-3176
2024-07-02 20:17:02 +08:00
Gabriel Horner
d4f691f54c
fix: db import of page properties
...
For new and existing pages. Part of LOG-3176
2024-07-02 20:17:02 +08:00
Gabriel Horner
c088317548
fix lints
2024-07-02 20:17:02 +08:00
Gabriel Horner
3de05eb97a
fix: db import of basic block properties
...
Some FIXMEs will be fixed soon. Part of LOG-3176
2024-07-02 20:17:02 +08:00
Gabriel Horner
fa4790f027
Revert "fix: prefer to use db-based schema's cardinality && valueType"
...
This reverts commit dbd9ab6bbb
.
This was only temporarily needed for rtc graphs which should longer have
this problem
2024-07-02 20:17:02 +08:00
Gabriel Horner
2e823a5555
fix: cleanup inconsistent and incorrect import error handling
...
Some notified errors didn't include error object. Import cli didn't fail
on failure and stack was reversed. Error notifications sometimes
included full error which makes errors unreadable in CLI and possibly
confusing for users. Also fixed missing classpath. Part of
LOG-3176
2024-07-02 20:17:02 +08:00
Gabriel Horner
0c1cdbdd67
fix: add import test for asset
...
part of LOG-3092
2024-07-02 20:17:02 +08:00
Gabriel Horner
ba9d8d7920
Bump nbb with latest datascript
...
Test fixes are reasonable as datascript catches more invalid uses of
query
2024-07-02 20:17:02 +08:00
Gabriel Horner
d7adee57e8
fix: Insufficient bindings error after datascript upgrade
...
After upgrading our forked datascript from 1.5.3 to 1.7.1,
bindings in two of our rules behaved differently. The workaround
of adding an `and` where none was required before is sufficient.
Fixes LOG-3177
2024-07-02 20:17:02 +08:00
Gabriel Horner
99769dbcbf
fix: db/id enhancement failing non-tx validation contexts
...
Simplify addition of :db/id and add it without forcing adding :db/id
in all schema declarations
2024-07-02 20:17:02 +08:00
Gabriel Horner
772b2d7836
chore: add docs to explain property values more
2024-07-02 20:17:02 +08:00
Gabriel Horner
3809d58b21
fix: typos
2024-07-02 20:17:02 +08:00
Tienson Qin
52987fc02f
enhance: table use fixed layout
2024-07-02 18:17:44 +08:00
Gabriel Horner
3622a83024
fix: db import of deadline and scheduled
...
Part of LOG-3176
2024-07-01 17:45:20 -04:00
Gabriel Horner
e80f16731a
chore: add test for importing block/refs
...
Also removes precarious and outdated property update in refs. Part of
LOG-3092
2024-07-01 16:05:52 -04:00
Gabriel Horner
52ffb9a04f
fix: converting existing page into a property page
...
part of LOG-3176
2024-07-01 15:23:25 -04:00
Gabriel Horner
71b1586df6
fix: db import of page properties
...
For new and existing pages. Part of LOG-3176
2024-07-01 12:35:07 -04:00
Gabriel Horner
f685101c2d
fix lints
2024-07-01 09:22:54 -04:00
Gabriel Horner
bd5f43d233
fix: db import of basic block properties
...
Some FIXMEs will be fixed soon. Part of LOG-3176
2024-06-28 17:56:27 -04:00
Tienson Qin
6c653094dd
wip: class objects table
2024-06-29 00:50:30 +08:00
Gabriel Horner
9160f5a347
Revert "fix: prefer to use db-based schema's cardinality && valueType"
...
This reverts commit dbd9ab6bbb
.
This was only temporarily needed for rtc graphs which should longer have
this problem
2024-06-28 12:04:10 -04:00
Gabriel Horner
9ee09372aa
fix: cleanup inconsistent and incorrect import error handling
...
Some notified errors didn't include error object. Import cli didn't fail
on failure and stack was reversed. Error notifications sometimes
included full error which makes errors unreadable in CLI and possibly
confusing for users. Also fixed missing classpath. Part of
LOG-3176
2024-06-28 11:16:22 -04:00
Gabriel Horner
92134dec71
fix: add import test for asset
...
part of LOG-3092
2024-06-28 09:14:43 -04:00
Gabriel Horner
e24b386079
Bump nbb with latest datascript
...
Test fixes are reasonable as datascript catches more invalid uses of
query
2024-06-27 18:07:44 -04:00
Gabriel Horner
e58f1221d2
fix: Insufficient bindings error after datascript upgrade
...
After upgrading our forked datascript from 1.5.3 to 1.7.1,
bindings in two of our rules behaved differently. The workaround
of adding an `and` where none was required before is sufficient.
Fixes LOG-3177
2024-06-27 16:15:08 -04:00
Gabriel Horner
6b0b9c5e18
fix: db/id enhancement failing non-tx validation contexts
...
Simplify addition of :db/id and add it without forcing adding :db/id
in all schema declarations
2024-06-27 14:50:54 -04:00
Gabriel Horner
53bb0b689d
chore: add docs to explain property values more
2024-06-27 12:11:30 -04:00
Gabriel Horner
ab118d3a27
fix: typos
2024-06-27 12:05:16 -04:00
Tienson Qin
dbd9ab6bbb
fix: prefer to use db-based schema's cardinality && valueType
...
Instead of those values stored in the property blocks.
2024-06-27 23:24:35 +08:00
Tienson Qin
16c7a52468
enhance: add :db/id to invalid entity map when validated failed
2024-06-27 22:40:54 +08:00
Tienson Qin
ade53ebce1
fix: prefer passed page-uuid
2024-06-27 17:55:35 +08:00
Tienson Qin
fec74edc0c
Revert "fix: don't set :logseq.property/built-in? for properties"
...
This reverts commit e5bb634a08
.
2024-06-27 16:27:41 +08:00
Tienson Qin
073427d898
enhance: add backlinks and type to all pages
2024-06-27 16:27:15 +08:00
Tienson Qin
324a6f91ca
Merge branch 'experiment/tanstack-table' into feat/db
2024-06-27 15:49:24 +08:00
Tienson Qin
d8c94b7a2f
Revert "feat(shui): add shui table & expose tanStackReact APIs"
...
This reverts commit e2b6623ef5
.
2024-06-27 15:48:45 +08:00
Tienson Qin
e5bb634a08
fix: don't set :logseq.property/built-in? for properties
...
We still keep :logseq.property/built-in? for built-in classes, pages
and closed values.
Reasons why this change:
1. built-in? value is a entity (which type is `checkbox` and value is
`true`), this breaks the rule that db attributes shouldn't reference
non-db-attribute blocks, it also forces us to load the built-in? value
entity first when loading the db.
2. we already have a built-in properties map, we can use it to check
whether a property is built-in.
2024-06-27 15:10:33 +08:00
Gabriel Horner
b70ba087b3
fix: new graph-parser test passes with clj runner
...
part of LOG-3092
2024-06-26 16:14:50 -04:00
Gabriel Horner
e619874dc4
enhance: add acceptance test for file to db graph import
...
Part of LOG-3092
2024-06-26 15:59:09 -04:00
Gabriel Horner
51a2c1425f
fix: db import for very basic file
...
Basic file couldn't import because :block/name is no longer unique for
db graphs. Part of LOG-3176
2024-06-26 15:59:09 -04:00
Gabriel Horner
5520bc1d33
fix: import single file from CLI didn't print error
...
Also improved CLI error reporting so sci stack is readable and
not filled with stack fn docstrings
2024-06-26 15:59:09 -04:00
Tienson Qin
b6bdc4b1d5
chore: update datascript version
2024-06-27 00:35:37 +08:00
Tienson Qin
039804d87a
chore: bump upstream datascript
2024-06-27 00:26:31 +08:00
Tienson Qin
a21a61fde6
fix: sorting
2024-06-26 22:26:20 +08:00
Gabriel Horner
5e5a8ee1df
fix: display property names not idents for query
...
table and settings
2024-06-26 09:34:33 -04:00
Tienson Qin
cc56ba1227
add delete support for all pages
2024-06-26 20:27:33 +08:00
Tienson Qin
5c965e5235
fix: load all pages initially
...
There're still some issues when loading partial pages initially,
let's improve the performance during the test.
2024-06-26 17:46:52 +08:00
charlie
119b519e2a
Merge branch 'feat/db' into experiment/tanstack-table
2024-06-26 11:33:18 +08:00
charlie
d278067f8c
enhance(ui): support hide close button option for the shui dialog
2024-06-26 10:01:54 +08:00
Gabriel Horner
c772b0cdd1
fix: migrate built-in? property to use :checkbox
...
Can now delete temporary :boolean type
2024-06-25 15:02:25 -04:00
Tienson Qin
2cdfaa7fdf
Remove debug
2024-06-25 22:42:53 +08:00
Tienson Qin
9b259a8291
fix: shui table demo
2024-06-25 22:42:23 +08:00
Tienson Qin
da602e7490
wip: shui table
2024-06-25 19:10:58 +08:00
charlie
946499ad56
enhance(ui): support auto width for the shui dialog content
2024-06-25 18:06:13 +08:00
charlie
e2ff6e1990
enhance(ui): refactor classic modals with the shui dialog
2024-06-25 15:37:11 +08:00
Tienson Qin
da4f9b5498
chore: remove :block/collapsed-properties
2024-06-25 10:57:44 +08:00
Gabriel Horner
3c838bc243
fix: disallow changing property cardinality from :many to :one
...
for existing data as it leads to invalid data. Fixes LOG-3164
2024-06-24 14:10:23 -04:00
Gabriel Horner
4fce0cb5d5
fix: sqlite.build journals should use new journal uuid format
2024-06-24 13:40:15 -04:00
Gabriel Horner
67d546850c
fix: recent bugs with create-user-class-ident-from-name
...
This fn keeps api's assumptions and bugs with property idents only in the api ns and
prevents them from affecting all other namespaces creating properties /cc @xyhp915. Users
should not be choosing the property namespace. Doing so allows users to
overwrite logseq's built in ones which can break basic features. It also
allows users to specify a non-property namespace, which means the
property would not work in the app
2024-06-24 11:56:50 -04:00
charlie
305b7ff570
fix(api): ignore qulified keyword when create user property name
2024-06-24 18:25:26 +08:00
charlie
e2b6623ef5
feat(shui): add shui table & expose tanStackReact APIs
2024-06-24 16:59:58 +08:00
charlie
edd8746b5e
enhance(ui): refactor the classic modal with the shui dialog & enhancements for ux
2024-06-24 16:05:41 +08:00
Tienson Qin
f17289c34a
fix: prefer chosen UUID value than page name
...
The reason is that multiple pages can share the same name
2024-06-24 12:11:15 +08:00
Gabriel Horner
0ea8a414f2
chore: move and rewrite outliner.property tests
...
Moved tests to be next to implementation. Rewrote some tests
so that they matched common usage of fns and rewrote some tests
so that each fn is tested independently
2024-06-23 23:47:08 -04:00
Tienson Qin
1c22c78c94
chore: remove buggy and rough template
...
Also, :object kinda works like template, and we also plan to
support templates on Classes.
2024-06-23 22:22:33 +08:00
Tienson Qin
eb245e5a76
fix: lint
2024-06-23 17:58:15 +08:00
Tienson Qin
caf1af1911
enhance: bring back inline tags support
2024-06-23 17:50:51 +08:00
Tienson Qin
797b13ac78
fix: lint and test
2024-06-21 18:09:20 +08:00
charlie
1a9ad96ad9
chore(ui): update shui demo
2024-06-21 16:22:25 +08:00
Tienson Qin
30230b38ca
fix: test
2024-06-21 14:04:42 +08:00
charlie
37cff08d4a
fix(ui): incorrect behavior for the shui tooltip within popups trigger
2024-06-21 14:02:25 +08:00
Tienson Qin
b0c03b0003
fix: tests
2024-06-21 12:50:29 +08:00
Tienson Qin
0b38900d70
fix: blocks->vec-tree
2024-06-21 11:31:52 +08:00
Gabriel Horner
d4a323805d
fix: deps lints
2024-06-20 09:14:59 -04:00
Tienson Qin
74a077668c
fix: add missing malli schema for :file/size
2024-06-20 20:55:57 +08:00
Tienson Qin
dec56b31f0
chore: remove unused :file/handle
2024-06-20 20:53:15 +08:00
rcmerci
be41c8bae7
chore: add some comments
2024-06-20 17:01:58 +08:00
rcmerci
dc785a92a7
refactor: make journal-day page's uuid like this
...
00000001-2024-0620-0000-000000000000
2024-06-20 17:01:58 +08:00
Tienson Qin
62a2564f4d
fix: add missing file/created-at attribute for db graphs
2024-06-20 16:57:38 +08:00
Tienson Qin
519f3cab3f
fix: don't focus for :many property
2024-06-20 16:45:21 +08:00
Gabriel Horner
eae2156f6c
chore: move and add create-property-text-block tests
2024-06-19 23:01:44 -04:00
Gabriel Horner
c23513eaa8
fix: non :default property reuses existing entities
...
Also add tests for this and a common set-block-property case
2024-06-19 22:17:03 -04:00
Tienson Qin
626e0b67e8
fix: store latest file stat
...
Fixes LOG-3143
2024-06-20 09:22:35 +08:00
Tienson Qin
adae8ef5eb
fix: get-block-and-children returns sorted blocks
...
Fix unit tests
2024-06-20 07:56:30 +08:00
Gabriel Horner
b35f30e203
fix: circular dependency between outliner and frontend
...
by moving batch-tx into outliner dep. Outliner dep is
now fully independent and we are able to write unit tests
for all outliner namespaces unlike before
2024-06-19 17:21:22 -04:00
Gabriel Horner
7b787a8fb2
fix: db lint
2024-06-19 14:39:39 -04:00
Tienson Qin
71dc122a75
fix: copy block properties doesn't work
...
Fixes LOG-3160
2024-06-20 00:39:08 +08:00
Gabriel Horner
16248f0bd2
fix: unable to build :default property for sqlite.build
...
Also add tests for different built-in cases and addressed
related TODO
2024-06-18 16:29:01 -04:00
Gabriel Horner
de730e236a
fix: outliner lint
2024-06-18 11:03:55 -04:00
Gabriel Horner
ee77145caf
fix: :checkbox property not working in simple queries and rules
...
Also fix booleans not rendering in query table
2024-06-18 10:38:09 -04:00
Tienson Qin
c3f30a9dc9
fix: lint
2024-06-18 21:37:12 +08:00
Tienson Qin
0bd6c05e69
refactor: add page outliner ops
...
The rule is to avoid calling worker modules from UI, all db
transactions should go through apply-outliner-ops.
2024-06-18 05:21:00 +08:00
charlie
5b0ed592f0
fix(ux): sometimes the block children can't be collapsed
2024-06-17 17:54:19 +08:00
charlie
5e8e3edc5d
enhance(ui): refactor the classic modals with the shui dialog
2024-06-17 13:27:20 +08:00
Tienson Qin
96be194de5
Refactor: use last modified time to decide if file has been changed
...
Previously, we're using file content.
Fixes LOG-3161
2024-06-16 11:00:40 +08:00
Tienson Qin
54e54ebd63
fix: get-pid not works for non-built-in properties in file graphs
2024-06-15 23:20:13 +08:00
Tienson Qin
b294896f8a
fix: reuse page uuids when parsing files
...
This commit also removes `with-id?` because it's too confusing.
Fixes LOG-3143
2024-06-15 22:52:30 +08:00
Tienson Qin
4281274512
fix: graph parser tests
2024-06-15 21:08:25 +08:00
Gabriel Horner
244a86557f
chore: rename :property/value to :property.value/content
...
property-value is widely being used to refer to the entity or value
associated with a property entity. Naming the content of a
property-entity :property/value is confusing. property-value content is
a unique name and consistent with :block/content. Also rename related
fns which had similarly confusing names
2024-06-14 18:11:20 -04:00
Gabriel Horner
04a6aa141e
fix: remove unused dep from db
2024-06-14 16:56:27 -04:00
Gabriel Horner
9a8c91c0cc
chore: mv logseq.db.sqlite.db into sqlite.cli
...
for more explicit name and purpose. Also updated outdated db readme
and removed unused fns in logseq.db.sqlite.db
2024-06-14 16:53:19 -04:00
Gabriel Horner
8ba5c15f93
fix: remove cli namespace dependency from electron namespaces
...
Added a :discouraged-namespace linter check for future times.
Had to add clj-kondo configs for db and outliner since they
were incorrectly inheriting the frontend config, specifically
the :discouraged-namespace linter. Also removed a 'm/=>' in outliner dep
b/c it would've created a complex clj-kondo setup for malli that
would need to be updated for both top-level clj-kondo and deps/outliner
2024-06-14 15:50:05 -04:00
Gabriel Horner
95db811f55
fix: frontend tests shouldn't depend on sqlite3
...
frontend.test.helper was accidentally coupled to sqlite3 via
logseq.outliner.db-pipeline. Split out sqlite3 dependent fns to
logseq.outliner.cli so it's clear this shouldn't be coupled to frontend
2024-06-14 14:41:24 -04:00
Gabriel Horner
0f122e9a7e
fix: schema graph generation
...
Regressed with property value change. Also updated debug file and
fixed a missing built-in property ns which caused an invalid debug file
2024-06-14 11:38:14 -04:00
Tienson Qin
d588df622e
fix: :block/uuid not created for property value pages
...
Related to LOG-3124
2024-06-14 22:15:56 +08:00
Tienson Qin
c7827ee268
fix: can't create alias property for file based graph
2024-06-14 21:00:32 +08:00
Tienson Qin
1858180476
fix: don't create bi-directional alias
...
related to LOG-3124
2024-06-14 20:00:37 +08:00
Gabriel Horner
5f2371486e
fix: simple query for :number properties
...
also fixes deps db tests
2024-06-13 23:16:17 -04:00
Gabriel Horner
137f388edd
enhance: property ref values can store their
...
original value optionally with :property/value.
Currently applies to :url and :number and not :default
as :default is meant to be a block and thus highly coupled
to :block/content. By introducing this, functionality that relies
on original property values automatically work e.g.
sorting by :number property for query results just works
2024-06-13 23:03:18 -04:00
Gabriel Horner
57241d0644
Revert "fix: :block/content should be string including :number properties"
...
This reverts commit 8a6b44bb31
.
2024-06-13 21:25:21 -04:00
charlie
6c7c282a03
fix(pdf): insert keyword property value for the file based graphs
2024-06-13 17:25:05 +08:00
Tienson Qin
4d684a5ec9
fix: throw exception if calling db property fns for file graphs
2024-06-13 14:50:20 +08:00
Tienson Qin
0ce2ee42db
Revert "refactor: use files instead of sqlite for electron db storage"
...
This reverts commit c2c5ab80aa
.
2024-06-13 13:04:00 +08:00
Tienson Qin
ec25550455
Revert "chore: remove unused fn"
...
This reverts commit 1ec30bbf1a
.
2024-06-13 13:04:00 +08:00
Tienson Qin
596089f161
Revert "fix: add missing fs-extra package"
...
This reverts commit 032cad0318
.
2024-06-13 13:04:00 +08:00
Tienson Qin
6d4f3425cd
Revert "fix: nbb compatibility for mv to file db for electron"
...
This reverts commit 4403b5e52a
.
2024-06-13 13:04:00 +08:00
Gabriel Horner
03f797fde3
fix: outliner lint and doc formatting
2024-06-12 15:24:04 -04:00
Tienson Qin
1dc72d79f2
fix: separate page/create impl for db and file graphs
...
Also, move rtc page create impl to its own fn.
2024-06-12 06:39:06 +08:00
Gabriel Horner
1b51d28682
fix: outliner lint
2024-06-11 16:49:14 -04:00
Gabriel Horner
4403b5e52a
fix: nbb compatibility for mv to file db for electron
...
Followup to c2c5ab80aa
2024-06-11 16:44:19 -04:00
Gabriel Horner
0e1ada2ef6
enhance: bb task for creating graphs from EDN file
...
Converted inferred graph to an EDN file now that this task exists. Also
merge last of tasks.create-graph to relevant ns so that external users
can also create such tasks
2024-06-11 10:09:37 -04:00
Tienson Qin
2d3f152454
fix: simplify page delete and fix rtc issues
2024-06-11 20:23:57 +08:00
Tienson Qin
032cad0318
fix: add missing fs-extra package
2024-06-11 20:00:32 +08:00
Tienson Qin
1ec30bbf1a
chore: remove unused fn
2024-06-11 19:58:54 +08:00
Tienson Qin
c2c5ab80aa
refactor: use files instead of sqlite for electron db storage
2024-06-11 08:30:49 +08:00
Gabriel Horner
dbf263ed7c
fix: unbound vars caught by lint
...
also updated property type for previous commit
2024-06-10 17:12:03 -04:00
Gabriel Horner
0ce4e1b65e
fix: query table not displaying user property columns
...
Also fixed rendering property values for all property types
2024-06-10 16:05:33 -04:00
Gabriel Horner
2d1073fa5b
fix: remove outdated clauses for property values
...
This became outedated with to property values as refs
2024-06-10 13:26:21 -04:00
Gabriel Horner
16cfb76c9b
fix: update :query/result-transforms to work with db graphs
...
since they are the future. Leave example disabled by default as it's
not important to have :sort-by-priority enabled by default and working
for both file and db graphs
2024-06-10 12:38:40 -04:00
Gabriel Horner
04b25a9240
chore: add basic tests for sqlite.build
...
and added a couple db-graph specific for query-dsl. Also
moved fns in pu that should be in db-pu
2024-06-10 11:52:39 -04:00
Tienson Qin
03a0e99b65
enhance: add block-order malli schema
2024-06-09 11:39:00 +08:00
Tienson Qin
0a77ba077f
fix: reuse :block/order if exists when inserting blocks from remote
2024-06-09 11:02:26 +08:00
Gabriel Horner
9636fbe7ab
fix: remaining query dsl tests for db graphs
...
Re-enable CI step for testing query-dsl and db graphs
2024-06-07 18:02:32 -04:00
Gabriel Horner
7f3e22c8eb
fix: priority filters for db graphs
2024-06-07 17:58:49 -04:00
Tienson Qin
214eefbf67
enhance: drop -page for filter properties
2024-06-08 05:33:41 +08:00
Tienson Qin
b2e113d8eb
refactor: db based filters
...
Uses properties :logseq.property.linked-references/included-pages
and :logseq.property.linked-references/excluded-pages to store filters
instead of a map.
Fixes LOG-3074
2024-06-08 05:28:55 +08:00
Gabriel Horner
039da828ac
enhance: infer property schema and add new-pages from properties
...
for sqlite-build graphs. Also fixed numbered page query not working for
db graphs and related tests
2024-06-07 12:10:15 -04:00
Gabriel Horner
516192fa92
fix: db lint
2024-06-06 17:22:02 -04:00
Gabriel Horner
938dd04811
enhance: add :build/tags and :auto-create-ontology?
...
for tested+generated graphs. :build/tags allows easy generation of
objects as seen in fixed up inferred graph
2024-06-06 17:05:13 -04:00
Tienson Qin
9b1da32028
fix: simplify deleting refed blocks
...
The new implementation will replace refs of the current deleting block
with the nearby block (if exists).
2024-06-06 19:36:40 +08:00
Tienson Qin
9e5a002cf8
enhance: avoid replacing page refs if there's no special chars
2024-06-06 15:15:01 +08:00
Tienson Qin
8a6b44bb31
fix: :block/content should be string including :number properties
2024-06-06 14:53:26 +08:00
Tienson Qin
fb01f99a4d
fix: outliner tests
2024-06-06 07:11:09 +08:00
Gabriel Horner
62701e1b6e
fix: tests with outdated datom counts
...
I think caused by recent macros parsing or whiteboard changes
2024-06-05 17:06:16 -04:00
Gabriel Horner
8f6f52d630
fix: sort-by filter for db graphs
...
Also fixed a dsl-query sorting bug where nil property values where
incorrectly being treated as greater than non-nil values. Also
fixed a bug where blocks with an explicit :block/created-at weren't
being set for sqlite-build
2024-06-05 16:57:51 -04:00
Gabriel Horner
29faedc4d0
fix: db graph tests with children, created-at properties
...
and journal pages
2024-06-05 14:47:38 -04:00
Gabriel Horner
916fef8336
enhance: generate any outline structure with :build/children
...
Already useful for testing and will be for more interesting generation
cases
2024-06-05 12:15:12 -04:00
Tienson Qin
592e2a9b26
fix: add tags when not exists
2024-06-05 22:39:55 +08:00
Tienson Qin
44366dced0
fix: removing a heading's hashtags doesn't delete
...
fixes LOG-3138
2024-06-05 20:01:46 +08:00
Tienson Qin
a314e3469a
fix: page can alias itself and then fail to load
...
fixes LOG-3136
2024-06-05 17:18:32 +08:00
Tienson Qin
7beebedbd2
fix: embed block macro is buggy
...
fixes LOG-3145
2024-06-05 14:27:13 +08:00
Tienson Qin
ed97102b38
fix: can't move block up with a :default property
...
fixes LOG-3140
2024-06-05 14:08:57 +08:00
Gabriel Horner
e7f795103d
fix: simple task queries and start fixing db dsl-query tests
...
Tests caught that task query wasn't working. Also disabled
namaspace test and rule for db graphs since they aren't supported
there
2024-06-04 15:53:36 -04:00
Gabriel Horner
05227f475b
chore: mv more tests to appropriate dep enabled by :build/journal
2024-06-04 12:02:25 -04:00
Gabriel Horner
14222a546f
enhance: make journals easier to generate with :build/journal
...
Use it in tests that more appropriately belong in db dep.
Also did minor cleanup around page prep for page-uuids
2024-06-04 12:02:25 -04:00
Gabriel Horner
13066001cd
fix: storing and querying of :number property values
2024-06-03 17:41:32 -04:00
Gabriel Horner
5ecb3fe3d4
fix: lints
2024-06-03 14:13:55 -04:00
Gabriel Horner
df10beb325
enhance: add schema and validation to sqlite.build
...
Also renamed block-level keys that are specific to the ns to have
a :build namespace. A lot easier to read, maintain and extend later.
Also cleaned up page naming to consistently require :block/original-name
2024-06-03 12:46:53 -04:00
Gabriel Horner
a67e2c8c23
chore: use easier way to build db graph test data
...
in rules tests
2024-06-03 12:46:53 -04:00
Gabriel Horner
2456deb097
enhance: create sqlite.build ns as a better
...
load-test-files helper for db graphs and deps.
Most of this ns is split off from create-graph.
Migrated pipeline-test to correct outliner dep and
moved previous pipeline-test to correct db dep
2024-06-03 12:46:53 -04:00
Tienson Qin
721a9e14ad
fix: arrow color
2024-06-03 19:20:50 +08:00
Tienson Qin
e7de721dde
fix: broken block ref after deleting source blocks
2024-06-03 15:33:49 +08:00
Tienson Qin
bce5a308bb
perf: skip db storage when batch applying outliner ops
2024-06-03 14:53:06 +08:00
rcmerci
8a94b856bd
enhance(rtc): add debug prn when failed to transact
2024-06-02 21:19:59 +08:00
Gabriel Horner
03167ae19c
enhance: extract block content refs for generated graphs
...
Also update content with ids and create pages as needed
2024-05-31 17:19:25 -04:00
Gabriel Horner
ec7839fcce
fix: simple queries in db graphs for most property types
...
Also fix parse-query was being called in multiple places
without a correct default value for :db-graph? option
2024-05-30 15:54:20 -04:00
Gabriel Horner
790d0460a1
fix: remove + disable :block/macros for db graphs
...
part of LOG-3137
2024-05-30 11:01:37 -04:00
Tienson Qin
da3929376a
fix: don't extract macros from block content for db graphs
2024-05-30 21:32:45 +08:00
Tienson Qin
9ce7f5d709
fix: eager loading nested blocks for short pages
2024-05-30 20:01:31 +08:00
Tienson Qin
13b19a1b9c
perf: render less blocks and improve app start time
...
1. load only 1 journal when app starts
2. fix can't load more journals
3. pretend all the unloaded pages as long pages to avoid more
rendering
4. don't send <get-block queries if there're already requests
2024-05-30 18:31:19 +08:00
Gabriel Horner
1dd9823fdf
fix: remove alias ref to avoid recursive display bug
...
A page with aliases resulted in linked references recursively showing the
current page
2024-05-29 13:25:32 -04:00
Gabriel Horner
a4d8e05e2f
fix: esc saves a tag class with a :db/ident
...
Also refactor to update class tests to use correct helper
2024-05-29 11:09:09 -04:00
Gabriel Horner
cc92702a98
chore: remove unused fn when setting prop values
2024-05-29 11:09:09 -04:00