Commit Graph

1026 Commits

Author SHA1 Message Date
Gabriel Horner
a246db8a82 fix: remove built-in properties only used by file graphs
In #11508 we switched to a new table component for db graph queries which left
these built-in properties unused. Also moved file query code to
file-based namespaces and fixed a bug where multiple query properties
couldn't be set for a file graph query
2024-09-13 12:08:42 -04:00
Tienson Qin
4b3534476c fix: display parent in editor mode 2024-09-13 23:56:00 +08:00
Tienson Qin
8fa71f51b6 feat: support namespace pages and tags 2024-09-13 23:56:00 +08:00
Gabriel Horner
eb65dd9c20 fix: lint and test
Also add a sanitized suffix to make them somewhat readable for debugging
and in places where users can see them e.g. simple queries
2024-09-12 15:00:17 -04:00
Tienson Qin
68ad7f4f19 refactor: use nanoid for user classes and properties
This commit doesn't affect old idents because RTC is not supported yet
and all new user idents will be `:user-or-whatever-namespace/nanoid`.
2024-09-12 22:57:21 +08:00
Gabriel Horner
9f27f83f36 enhance: save graph's initial schema and created-at
With backups we're likely to have longer lived db graphs. Having this extra
data will be helpful for debugging and maybe migrations
2024-09-12 13:02:45 +08:00
Tienson Qin
ad67958d17 enhance: auto backup every hour 2024-09-12 13:02:45 +08:00
Tienson Qin
bf351d4c29 feat: support db backup on web 2024-09-12 13:02:45 +08:00
Gabriel Horner
54c6da3232 fix: better names for column toggle and all pages view
'Properties visibility' wasn't correct as we display column options that aren't
properties
2024-09-10 09:53:14 -04:00
Tienson Qin
19f3f287fe Feature: tag multiple views (#11511)
Add tag multiple views support
2024-09-10 16:12:25 +08:00
Gabriel Horner
fc58750557 fix: choices for new view type weren't translateable
Follow up to #11508. Avoid dynamically generating built-in property
choices as it prevents us from being able to translate this easily. All
other built-in choices are strings in a file that we can easily
translate
2024-09-09 16:10:27 -04:00
Tienson Qin
c268841121 refactor: query result with the new table view (#11508)
feat: table && list view
2024-09-09 06:55:37 +08:00
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
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
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
f3c59a9db3 fix: graph-parser tests 2024-09-04 12:55:37 +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
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
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
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
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
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
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
Gabriel Horner
9291e8b3b0 enhance: users can navigate to public built-in nodes like task ones
We spent a good amount of effort making tasks customizable. It should
be easy for users to navigate to Task or status page to customize them
2024-08-23 01:05:31 +08:00
Tienson Qin
0ddde1f024 fix: migrate kvs table 2024-08-22 22:36:48 +08:00
Gabriel Horner
e8ab1cea49 enhance: users can navigate to public built-in nodes like task ones
We spent a good amount of effort making tasks customizable. It should
be easy for users to navigate to Task or status page to customize them
2024-08-22 10:33:34 -04:00