Gabriel Horner
12f5215d6c
fix: db tests missing correct setup with new class
2024-09-06 18:51:19 -04:00
Gabriel Horner
39b0e3e368
enhance: all journal pages have #Journal class
...
Also add some support for importer to do the same
2024-09-06 18:27:58 -04:00
Gabriel Horner
72482a4fe7
fix: validity of :node property value
...
:node isn't the same as :entity. Also fixed another lint
2024-09-05 18:02:14 -04:00
Gabriel Horner
04742d6922
fix: db import of 'parent' property
...
Bug only triggered by user properties that happen to have same name as a
built-in property and the built-in is capitalized. Added a helper fn to
avoid this bug in the future. Removed hack from #11494 as assuming
a user properties are built-in ones would result in surprised users with
buggy imports. Also fixed lint from previous commit
2024-09-05 17:14:20 -04:00
Gabriel Horner
1a47978111
fix: regression on distinguishing tagged blocks on sidebar
...
related to LOG-3214. Also create helper for common uses of object?
2024-09-05 09:52:09 -04:00
Tienson Qin
c90505c9a5
fix: page can have an alias block which doesn't work
...
Updates :block/tags to be type of `:class` and :block/alias to be
`:page`.
fixes https://linear.app/logseq/issue/LOG-3210/page-can-have-an-alias-block-which-doesnt-work
2024-09-05 17:20:51 +08:00
charlie
a7a19eb88b
enhance(plugin): get caller plugin id from host
2024-09-05 11:31:52 +08:00
Tienson Qin
97d4a4caf6
enhance: display empty positioned checkbox properties
2024-09-05 05:21:54 +08:00
Tienson Qin
f454e23120
feat: allow tags to be hidden from node
...
By introducing a new property `:logseq.property.class/hide-from-node`.
2024-09-05 04:39:09 +08:00
Gabriel Horner
7c5e94b091
fix: deps lints
2024-09-04 08:57:21 -04:00
Tienson Qin
f939b0eff1
fix: page uniqueness check
2024-09-04 20:25:20 +08:00
Tienson Qin
f3c59a9db3
fix: graph-parser tests
2024-09-04 12:55:37 +08:00
Tienson Qin
5aece39cee
fix: outliner test and lint
2024-09-04 12:07:10 +08:00
Tienson Qin
c23c15ca7e
fix: node references do not appear on blocks that contain a tag
...
fixes https://github.com/logseq/db-test/issues/43
2024-09-04 11:10:14 +08:00
Gabriel Horner
c36984c433
refactor: don't couple internal ref types to places it's not used
...
Follow up to #11494 . Internal ref types are not used in most of the UI
and in any of the outliner layer. Have separate vars for internal and
user ref types so we can see how they're used
2024-09-03 16:23:04 -04:00
Gabriel Horner
2654ca9b6f
fix: class/properties bugs if selected within Tag properties
...
Class properties were moved to a property in #11494 . If selected within
itself, the objects from this class have buggy behavior e.g. property
values don't get added correctly to it in an object. class/properties
shouldn't ever be in a property dropdown since the behavior is very
customized to our built-in classes
2024-09-03 14:31:34 -04:00
Gabriel Horner
83c8b968e4
refactor: block type predicate fns belong in util ns
...
block type checks are used in more places than property types
and belong in a lower level util ns
2024-09-03 13:16:26 -04:00
Gabriel Horner
b8127dda14
fix: remove unused code from #11494
...
Remove class-attrs b/c parent and class properties are now validated
through :block/properties
2024-09-03 11:55:18 -04:00
Gabriel Horner
efbdbb79d1
fix: malli schema for collapsed pages
...
Pages with properties can be collapsed since page/block title
editor was unified
2024-09-03 09:15:39 -04:00
Tienson Qin
9f6667a750
fix: limit :logseq.property/parent for pages
2024-09-03 14:13:10 +08:00
Tienson Qin
c7677c813e
refactor: set parent for any page, not just tags ( #11494 )
...
* refactor: replace :class/parent with :logseq.property/parent
* replace :class/schema.properties with property.class/properties
* enhance: display schema properties directly in Tag properties
* tag properties style tweaks
* fix: properties view context
* fix: limit parent to be classes or pages depends on the current node
* enhance: display ancestors in Parent
* fix: ancestors
* enhance: display tag properties always for tags
* enhance: display tag block container instead of properties area
* enhance: show add property as popup instead of dialog
* fix: tag parent must be a tag
* enhance: display properties in the right sidebar
* fix: tags style
* fix: icon style
* fix: positioned icons
* fix: lint
* fix: tests
* fix: remove properties from rtc watched attrs
* fix: graph-parser tests
* enhance: style tweaks
* enhance: page/create parses tags from user-input title
* enhance(ux): [[ref]] followed by # (no whitespace) to add tags
* fix: tests
* fix: graph-parser lint and tests
* fix: allow tagged nodes to be parents
* enhance(ux): display tag property descriptions
Also, make it editable.
2024-09-03 07:32:38 +08:00
charlie
24ff1d2540
enhance(ux): improve interaction for the dummy block
2024-09-02 11:17:03 +08:00
Gabriel Horner
d9443a0fd0
enhance: validate existence of created-from-property on block types
...
that require it. We used to have this validation but it got lost
2024-08-30 10:41:16 -04:00
Tienson Qin
dbd6f7d780
fix: disable renaming for built-in pages
2024-08-30 08:22:22 +08:00
Gabriel Horner
9d2c3ff5e2
fix: outliner lint - part of LOG-3197
2024-08-29 17:53:43 -04:00
Gabriel Horner
fb2eeefbfe
enhance: add duplicate detection for pages without tags
...
Also added tests for duplicates and improved error ux.
Fixes LOG-3197
2024-08-29 17:25:46 -04:00
Gabriel Horner
2fc8c0a843
fix: outliner query should be fast - part of LOG-3197
2024-08-29 10:13:58 -04:00
Gabriel Horner
c8316a2600
fix: validity of new graphs
...
When new property namespaces are introduced, should update the
var that validates them
2024-08-29 08:40:34 -04:00
Tienson Qin
2293d11a2b
chore: rename :logseq.property/title-format to
...
:logseq.property.journal/title-format
2024-08-29 14:29:22 +08:00
Tienson Qin
2aa4ac4de0
fix: lint
2024-08-29 14:12:32 +08:00
Gabriel Horner
84a20a23fe
fix: validate uniqueness for pages and object
...
by name and tag. More todo. Part of LOG-3197 and part of LOG-3209
2024-08-29 14:00:05 +08:00
Gabriel Horner
632ed42275
fix: create and edit choices with a :many property
2024-08-29 14:00:05 +08:00
Gabriel Horner
5397ca4d87
chore: remove unused vars in property.type
...
We used to use these vars when :block/schema contained cardinality and
classes
2024-08-29 14:00:05 +08:00
Gabriel Horner
41907e6063
fix(regression): checkbox can't have :many cardinality
...
Also fixed property type enabled in publishing and fixed lint
2024-08-29 14:00:05 +08:00
Tienson Qin
133d586831
chore: migration
2024-08-29 13:58:54 +08:00
Tienson Qin
8ccf7aa506
fix: remove :block/pre-block? for db graphs
2024-08-29 13:25:06 +08:00
Tienson Qin
d3f394761a
fix: change journal title format
2024-08-29 01:55:52 +08:00
Tienson Qin
0643c862d9
wip: journal custom title
2024-08-28 16:50:48 +08:00
Gabriel Horner
7a96fc0e32
fix: show blank page error to user instead of silent failure
...
also fix outdated lint
2024-08-27 17:11:36 -04:00
Tienson Qin
4859ecd7ea
fix: page title shouldn't be blank
2024-08-27 23:22:27 +08:00
Tienson Qin
4dff1a42c1
fix: update :block/name for pages when using outliner-core/save-block
2024-08-27 23:22:27 +08:00
Tienson Qin
8e8e97c7a6
enhance: unify page/block editor
2024-08-27 23:22:27 +08:00
Gabriel Horner
d2b4b15106
fix: all CLI scripts failing basic operations
...
Update sqlite.cli fns to match changes from #11483 in db-worker
2024-08-26 12:21:40 -04:00
Gabriel Horner
de6c6aedd2
chore: bump nbb-logseq for datascript bump in #11483
2024-08-26 11:22:40 -04:00
Tienson Qin
7a977dbba3
enhance: mod+p to set icon and able to set block's icon
...
A block can use its tags' icon if it doesn't has its own icon.
2024-08-26 18:46:00 +08:00
charlie
3d582c9cda
enhance(ux): support do not remind me for the shui confirm dialog
2024-08-26 16:34:53 +08:00
Tienson Qin
0ffca2b6f6
Merge branch 'feat/db' into fix/ensure-db-safety
2024-08-26 12:31:55 +08:00
Gabriel Horner
f2b38b5963
fix: stop shadowing vars in deps and turn on related lint
...
Follow up to last commit. Added some exceptions for cljs.core
to minimize change for now
2024-08-23 16:58:08 -04:00
Tienson Qin
652de8d544
fix: removing a node-reference to a page deletes the page
...
fixes https://github.com/logseq/db-test/issues/35
2024-08-23 16:12:58 +08:00
Tienson Qin
f11932e0c5
fix: putting the text "#Task" in a block breaks creating new tasks
...
fixes https://github.com/logseq/db-test/issues/24
2024-08-23 14:37:46 +08:00