Commit Graph

415 Commits

Author SHA1 Message Date
Tienson Qin
ac02648c33 fix: broken checkbox type 2024-09-25 05:49:00 +08:00
Gabriel Horner
4eded5264d fix: typing {{query is deprecated
and no longer creates tagged node. Related to #11540
2024-09-24 16:38:51 -04:00
Tienson Qin
fb2cc14444 fix: don't parse parent from namespace pages 2024-09-25 01:54:42 +08:00
Tienson Qin
cb0539ebec fix: search nodes shows title with parents
This commit also removes parents from page reference display because
1. there're bugs when clicking to edit
2. this may not be users' expected behavior
2024-09-24 21:32:37 +08:00
Tienson Qin
263a2bf219 feat: add #Cards and :logseq.property/query
Some enhancements:
1. DSL query is a property value (:default type) for better UX.
2. Cards can be selected on the flashcards dialog.
2024-09-24 18:19:05 +08:00
Tienson Qin
aba71115bc feat: batch set property for selected blocks 2024-09-24 18:19:05 +08:00
Gabriel Horner
aba8080271 fix: db pages can't have parent char
renaming a page to include '/' resulted in that page being
a name you couldn't type as '/' is reserved for parent/namespace
2024-09-23 14:54:37 -04:00
Gabriel Horner
afe4280c6a refactor: DRY up spread out definition of db's
namespace/parent feature. Following up to #11517, provide vars
so it's clear how a feature is used and coupled throughout the codebase
2024-09-23 14:53:12 -04:00
Tienson Qin
250d7303d1 fix: disallow renaming normal pages to journals
fixes https://github.com/logseq/db-test/issues/118
2024-09-23 17:14:39 +08:00
Tienson Qin
7e26022c8b Merge branch 'feat/db' into feat/namespace 2024-09-21 07:44:53 +08:00
Gabriel Horner
fdc0ca58d4 fix: changing tag cases should not break their identity
Fixes logseq/db-test#83. Also add a handy log to toggle when tracing sources
of ui bugs
2024-09-20 16:11:39 -04:00
Tienson Qin
8d1d5363a0 Merge branch 'feat/db' into feat/namespace 2024-09-20 20:34:21 +08:00
Gabriel Horner
702b5b45b5 fix: can add '#' to property name through dropdown
Also fix blank property name not giving user a notification
2024-09-19 11:11:55 -04:00
Gabriel Horner
cfd561d28c fix: validation error messages don't match user messages 2024-09-19 11:04:01 -04:00
Tienson Qin
c3f0cc1953 fix: disallow # in page name
Because it creates ambiguity in some cases:
1. With cmd-k we can’t tell the difference between an Apple page
tagged with Fruit and a page named "Apple #Fruit"
2. What should we do with [[Apple #Fruit king]]?
3. Is `#` for Markdown heading or part of a page name?

Fixes https://github.com/logseq/db-test/issues/100
Fixes https://github.com/logseq/db-test/issues/106
Fixes https://github.com/logseq/db-test/issues/105
2024-09-19 06:31:26 +08:00
Gabriel Horner
45f8922d6e fix: tag block with #Query
when user types it or when pasted. Fix following up #11508
2024-09-16 17:39:03 -04:00
Tienson Qin
b826fc5ba9 fix: built-in pages shouldn't be deleted
Fixes https://github.com/logseq/db-test/issues/91.

We still need to add validation before db/transact!, this will be
handled in another commit.
2024-09-16 06:24:38 +08:00
Tienson Qin
3f3ab05d0a fix: restore tag's parent to Root tag when deleting its parent
Related to https://github.com/logseq/db-test/issues/75
2024-09-15 18:48:03 +08:00
Tienson Qin
ca7fc83048 fix: built-in? value shouldn't be edited
Related to https://github.com/logseq/db-test/issues/75
2024-09-15 18:28:48 +08:00
Tienson Qin
4a42168dc3 fix: tag inheritance only going one level deep
fixes https://github.com/logseq/db-test/issues/88
2024-09-15 12:29:23 +08:00
Tienson Qin
a47608e953 fix: inline namespace tag editing 2024-09-15 11:58:32 +08:00
Tienson Qin
ddf700ee71 fix: namespace tag 2024-09-13 23:56:00 +08:00
Tienson Qin
f1ba09f0ff fix: lint 2024-09-13 23:56:00 +08:00
Tienson Qin
73f007ef62 fix: lint 2024-09-13 23:56:00 +08:00
Tienson Qin
487a40616c fix: lint 2024-09-13 23:56:00 +08:00
Tienson Qin
4b3534476c fix: display parent in editor mode 2024-09-13 23:56:00 +08:00
Tienson Qin
bf50c8ca02 typo 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
Gabriel Horner
ddabf90263 fix: remove uniqueness on blocks for now
Fixes https://github.com/logseq/db-test-cn/issues/26. Also fixes
the same issue for duplicate queries. Revisit this when use
cases are better understood for tagged blocks
2024-09-11 21:35:16 -04:00
Gabriel Horner
4cd886cf1e fix: validate unique page by tags
only applies to type page. Otherwise their would be bugs
with properties and classes having duplicate names.
Also add test for f939b0eff1
2024-09-11 14:33:23 -04:00
Gabriel Horner
6dbc0ce4fc fix: validation allows user property to have same name as built-in property
This is consistent with how 'Add property' works. Fix for
https://github.com/logseq/db-test/issues/69#issuecomment-2343054408
2024-09-11 14:23:11 -04:00
Gabriel Horner
5146e0da40 fix: validate property name when changed from menu
Fixes logseq/db-test#69
2024-09-10 17:45:05 -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
97d4a4caf6 enhance: display empty positioned checkbox properties 2024-09-05 05:21:54 +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
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
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
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
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
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
Tienson Qin
8ccf7aa506 fix: remove :block/pre-block? for db graphs 2024-08-29 13:25:06 +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