Commit Graph

2083 Commits

Author SHA1 Message Date
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