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
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
Tienson Qin
1854286cf0
refactor: persistent views stored using blocks
2024-07-07 21:05:14 +08:00
Tienson Qin
e27e5f9aa9
fix: built-in? value block is not loaded
2024-07-07 15:08:12 +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
Gabriel Horner
655c701d9d
chore: make last arg optional for get-page-blocks
2024-07-06 12:24:07 -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
Tienson Qin
f0b496db93
Merge branch 'feat/tables' into feat/db
2024-07-05 15:25:10 +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
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
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
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
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
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
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
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
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
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
Gabriel Horner
5e5a8ee1df
fix: display property names not idents for query
...
table and settings
2024-06-26 09:34:33 -04: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
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
da4f9b5498
chore: remove :block/collapsed-properties
2024-06-25 10:57:44 +08: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
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
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
caf1af1911
enhance: bring back inline tags support
2024-06-23 17:50:51 +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
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
626e0b67e8
fix: store latest file stat
...
Fixes LOG-3143
2024-06-20 09:22:35 +08:00