Tienson Qin
cda9ac3e26
fix: display class properties
2024-03-29 10:02:29 +08:00
Tienson Qin
9115ca72ad
fix: wrong arguments
2024-03-29 09:18:06 +08:00
Tienson Qin
da42189deb
fix: property ref value
2024-03-29 09:02:51 +08:00
Gabriel Horner
2e580df0da
chore: rename exporter built-in property
...
use dashes like other built-ins
2024-03-28 14:41:37 -04:00
Gabriel Horner
ad35e83958
enhance: properties can also be block only
...
configure built-in properties that are block only.
Fixes LOG-2874
2024-03-28 13:44:29 -04:00
Gabriel Horner
3e5e7f9f7e
enhance: built-in properties can be page only
...
This allows properties like alias and public to not
show up nonsensically in block contexts. In the case
of alias it fixed a bug where it couldn't be removed from a block
context. Also fixed :public property losing its :public?
Part of LOG-2874
2024-03-28 11:20:32 -04: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
9c5309da47
enhance: frontend consistently uses :db/ident
...
for fetching built-in properties instead of :block/name
2024-03-27 20:36:48 -04:00
Gabriel Horner
eecb510ccb
enhance: built-in properties are indexed by :db/ident
...
built-in-properties are identified by their :db/ident instead
of :block/name. This removes reliance on :block/name and allows
us to consistently use namespaces when identifying built-in properties
:visible was renamed to :public? and is now included in :block/schema to
allow for querying. Also added a couple more new graph tests and tweaked
CI for db dep
2024-03-27 15:03:18 -04:00
Gabriel Horner
78371c1ccd
fix: schema for properties and classes can have namespaces
2024-03-26 14:33:35 -04:00
Gabriel Horner
832e88b91d
fix: CLI db graphs setting wrong schema
...
Names of db graphs do not have db-prefix from CLI. Rely on
file graph prefix which does have indicator from CLI
2024-03-26 12:21:45 -04:00
Gabriel Horner
c5f72221ea
fix: update schema and script to use new attribute
2024-03-26 12:20:41 -04:00
Tienson Qin
76ebf19364
feat: class children area
2024-03-26 10:16:40 -04:00
Tienson Qin
55d7ef95dc
fix: :class/parent instead of block/namespace
2024-03-26 10:16:40 -04:00
Tienson Qin
ce8c13065c
wip: properties refactor
2024-03-26 14:18:33 +08:00
Gabriel Horner
eb621e191d
chore: remove attribute that hasn't been used
...
almost 3 years. Removed it because otherwise we should make it
valid for a db graph
2024-03-25 17:21:10 -04:00
Gabriel Horner
51828ee8fe
fix: invalid ident ns when creating new graph
2024-03-25 17:13:32 -04:00
Gabriel Horner
9b8540921e
enhance: more property helper fns uses db-ident
...
instead of name
2024-03-25 16:34:51 -04:00
Gabriel Horner
dd1b0ea5f0
enhance: validate :db/ident namespaces
...
also add test for a new graph to be valid under malli-schema
2024-03-25 08:56:55 -04:00
Tienson Qin
33f418b297
wip: properties refactor
2024-03-25 18:56:36 +08:00
Tienson Qin
98d2b92ab1
fix: schema && built-in properties
2024-03-25 10:59:09 +08:00
Tienson Qin
16a927ad00
Bump datascript
...
Which enables transacting schema like other tx-data.
2024-03-25 09:45:19 +08:00
Tienson Qin
eaf9fc0d33
fix: use :schema keyword to get datascript db's schema
2024-03-24 17:47:59 +08:00
Tienson Qin
ab5022066a
fix: use persisted db schema instead of the current one in code
2024-03-24 15:20:34 +08:00
Gabriel Horner
390c626897
fix: replace db-content fn with more specific one
2024-03-22 16:45:43 -04:00
Gabriel Horner
70b43ec71f
fix: invalid schema with new rtc graph
2024-03-22 13:46:50 -04:00
Gabriel Horner
1198123513
fix: closed values for date property no longer available
...
Detected by failing db-graph-test CI job. Confirmed
that issue from 3b57fa626c
hasn't regressed
2024-03-22 12:36:14 -04:00
Gabriel Horner
429b257ee9
fix: query table rows should show page ref names
...
instead of special ids. Also tweaked page delete message to
remove needless contraction
2024-03-21 17:05:36 -04:00
Gabriel Horner
e3b67a9d9a
fix lints
2024-03-21 12:35:28 -04:00
Tienson Qin
eae35d60e4
fix: rebuild block refs & path-refs after downloading a remote graph
...
Fixes LOG-3115
2024-03-21 16:45:00 +08:00
Tienson Qin
3b57fa626c
fix: can't add date if the property support multiple values
2024-03-20 17:24:20 +08:00
Tienson Qin
35dbce3b68
enhance: humanize malli errors
2024-03-19 20:45:37 +08:00
Tienson Qin
627d936626
fix: use existing db/id for :graph/uuid
2024-03-19 14:26:00 +08:00
Gabriel Horner
4ba9fea065
enhance: all default db idents are namespaced under logseq
...
Having consistent namespacing of core idents increases the
number of features they can be used for later
2024-03-18 22:57:24 -04:00
Gabriel Horner
f63095316b
enhance: all built-in closed values have same db/ident naming convention
...
Follow convention started by :task/status. Added tests to enforce this
convention as well as other db/ident conventions
2024-03-18 22:57:23 -04:00
Gabriel Horner
07ff534675
fix: schema for pages and collapsed properties
...
collapsing a :default page property sets block/collapsed-properties
2024-03-18 12:03:00 -04:00
Tienson Qin
08281eb21c
chore: remove wrong comment
2024-03-18 18:08:42 +08:00
Tienson Qin
0bbbbe38c8
Add comment for invalid entity map
2024-03-18 17:44:09 +08:00
Tienson Qin
c4e6db9afb
fix: don't start rtc for local db graphs
...
Also, stop rtc when switching into a local graph.
2024-03-17 13:47:19 +08:00
Tienson Qin
cd1c71291b
fix: conflict datoms from sqlite db and tail
...
Fixes LOG-3087.
Addressed by fc3645fa4a .
2024-03-17 12:05:44 +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
148f2f7b16
fix: built-in class property check works
...
if property or class name changes
2024-03-15 13:07:45 -04:00
Gabriel Horner
9cdf78ca6a
enhance: use db/ident for classes
...
allows built-in class names to change
2024-03-15 09:22:35 -04:00
Gabriel Horner
40a6b31fcf
fix: db lint
2024-03-14 15:32:52 -04:00
Gabriel Horner
6e7c410427
fix: other closed values should have :db/ident
...
Without db/ident, these values could be deleted easily
which would cause users to lose functionality
2024-03-14 15:26:18 -04:00
Gabriel Horner
c053fbab41
refactor: use db idents for more property identification
...
e.g. internal property validation, status and priority. The less we rely
on :block/name the more features we can open up later e.g.
interchangeable block/page and rename any page
2024-03-14 14:54:50 -04:00
Gabriel Horner
2f599919fb
fix: favorites not importing
...
Also made underlying fns reusable from UI and nbb compatible.
Fixes LOG-3031
2024-03-12 17:57:47 -04:00
Gabriel Horner
96b35c0252
Update nbb-logseq to stub in cljs-bean.transit
2024-03-11 15:19:50 -04:00
Tienson Qin
aebb39a98e
fix: icon wasn't shown initially
2024-03-11 22:19:17 +08:00