Commit Graph

71 Commits

Author SHA1 Message Date
Tienson Qin
8714df3d8c enhance(ux): put property configure in tabs 2024-12-17 22:04:27 +08:00
Tienson Qin
646566399f enhance: put tagged nodes and nodes with property into tabs 2024-12-17 22:04:27 +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
Tienson Qin
f442c9e954 fix: lint 2024-08-27 23:22:27 +08:00
Tienson Qin
a8bf7d38e1 enhance: tag and property configure 2024-08-27 23:22:27 +08:00
Tienson Qin
12fdd7195e fix: add missing rum/reactive and db-mixins/query 2024-08-27 23:22:27 +08:00
Tienson Qin
a17b66df63 fix: property configure 2024-08-27 23:22:27 +08:00
Tienson Qin
7eb4197ff4 fix: available choices 2024-08-27 23:22:27 +08:00
Tienson Qin
45386637d9 wip: class & property configure 2024-08-27 23:22:27 +08:00
Tienson Qin
8e8e97c7a6 enhance: unify page/block editor 2024-08-27 23:22:27 +08:00
Tienson Qin
f46372b346 chore: keep using class instead of tag for internal usage 2024-08-06 07:15:41 +08:00
Tienson Qin
411b05e7ba Prefer to use ldb/{type}? check when possible 2024-08-05 17:51:24 +08:00
Tienson Qin
4083a2d0a0 enhance: prefer tag instead of class on UI
Some users are confused with Classes/Objects, so on UI it'll be
Tags/Nodes.
2024-08-05 15:06:54 +08:00
Tienson Qin
8bef1d7742 Merge branch 'refactor/boolean-not-ref-type' into refactor/single-block-type 2024-08-03 15:37:17 +08:00
Tienson Qin
8c81895ff7 refactor: don't store :checkbox as ref type 2024-08-01 13:06:47 +08:00
Tienson Qin
d26e620a82 refactor: update :block/type to cardinality one instead of many 2024-07-31 19:35:26 +08:00
Gabriel Horner
ee77145caf fix: :checkbox property not working in simple queries and rules
Also fix booleans not rendering in query table
2024-06-18 10:38:09 -04:00
charlie
02663da968 fix(ui): can't close the page class modal 2024-06-13 09:49:04 +08:00
rcmerci
877193c887 chore: lint 2024-05-29 19:26:21 +08:00
Tienson Qin
f4dd06f959 enhance: display tags the same way as other properties 2024-05-29 15:37:23 +08:00
Tienson Qin
7b6bd38f3f fix: align page elements including properties, references, etc. 2024-05-29 15:17:00 +08:00
Tienson Qin
2cefa3b505 enhance: add icons for different types of properties 2024-05-29 13:37:43 +08:00
Tienson Qin
170e8bbc15 fix: property value alignment 2024-05-29 12:47:55 +08:00
Tienson Qin
c866c0cc60 chore: code cleanup 2024-05-28 15:52:00 +08:00
Tienson Qin
02fcc69928 CSS tweaks 2024-05-28 03:02:22 +08:00
Tienson Qin
5842954b81 chore: style tweak 2024-05-21 19:43:38 +08:00
Tienson Qin
a2292284c1 enhance: css tweaks 2024-05-20 11:42:01 +08:00
Tienson Qin
ce4cad2cc7 Refactor/move property handler to outliner dep (#11311)
The end goal is to get rid of `db/transact!` and send outliner ops to
the db worker.

Currently, some property ops are async, set-block-property! will also
need to be async because when setting a non-ref value (e.g. a number
str "2"), we need to query whether a block with the value exists, this
unfortunately, will be an async query, so we're risking turning more
functions to async in the future which makes it hard to reason about
the implementation.
2024-05-13 18:16:21 +08:00
Gabriel Horner
27aca24199 fix: pages not displaying their page properties
on initial load. Page properties would only show up
after clicking on Configure which is confusing and made the initial
page load seem buggy
2024-04-18 16:07:53 -04:00
Tienson Qin
ee9391e091 fix: display class properties 2024-04-16 15:07:42 +08:00
Tienson Qin
d30e20e4eb enhance: move tags outside page info 2024-04-15 14:43:55 +08:00
Tienson Qin
81da3a9960 enhance: move tags and icon to properties area too 2024-04-15 12:52:53 +08:00
Tienson Qin
0c0291e93d fix: don't show property info if all properties are built-in 2024-04-11 20:53:06 +08:00
Tienson Qin
f3dc460f3a more tweaks 2024-04-10 13:49:08 +08:00
Tienson Qin
39c2ee85fd style tweaks 2024-04-09 16:38:29 +08:00
Tienson Qin
4b1e3a827f enhance: move page configure trigger to the top of page title 2024-04-09 16:23:34 +08:00
Gabriel Horner
8a38390ff2 fix: bring back configuring property from page
This is the only way to configure a closed value property
without being forced to add one to a block
2024-04-02 14:22:04 -04:00
Tienson Qin
54989b47b8 fix: tags 2024-04-01 15:22:20 +08:00
Tienson Qin
44b167ac14 fix: task status switch 2024-03-29 14:31:24 +08:00
Tienson Qin
4b34ba98e9 fix: property is no longer a page 2024-03-29 14:21:13 +08:00
Tienson Qin
cda9ac3e26 fix: display class properties 2024-03-29 10:02:29 +08:00
Tienson Qin
1b2771fe42 enhance: use eid instead of uuid for set block's properties 2024-03-28 21:33:36 +08:00
Tienson Qin
849d19f190 wip: replace property uuid/name with db ident 2024-03-28 21:14:51 +08:00
Tienson Qin
41e2944720 Replace more property name usage with db/ident 2024-03-28 20:41:12 +08:00
Tienson Qin
8d31f94b24 Remove :block/uuid and :block/name for properties 2024-03-28 17:37:28 +08:00
Gabriel Horner
67a7a0a3e9 enhance: Add default namespace of :logseq.property
for db/ident of built-in-properties. Namespacing block identities will
be important for future features. Adding namespacing also fixed some
hidden coupling between identity and name. Also converted a couple more
related :block/name queries to use :db/ident to slowly get us closer to
named blocks
2024-03-15 18:37:15 -04:00
Gabriel Horner
26a72ae54d fix: frontend lints 2024-03-15 10:48:59 -04:00
Tienson Qin
22a9b61b32 fix: remove :block/metadata
Use built-in properties
2024-03-08 01:01:55 +08:00
charlie
ddacb470b2 enhance(ui): polish page info UI details 2024-03-06 12:18:38 +08:00
Tienson Qin
a2041bfb3e fix: property values needed to be async query 2024-02-28 17:18:37 +08:00