Commit Graph

824 Commits (3d1ed4ca548aed4a6053a42c686a092651b3cbd4)

Author SHA1 Message Date
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
Gabriel Horner fbcaeb5e20 fix: example edn uses outdated property type 2024-08-20 17:10:28 -04:00
Gabriel Horner 85e358e57b fix: not able to create case sensitive classes
Also important to keep db graphs decoupled from file specific
:block/name. Made sure that related fix in logseq/db-test#9 still works
2024-08-20 17:08:14 -04:00
Gabriel Horner 3a4cc55cda fix: graph-parser test and lint
Removed test as no error handling is needed for ident generation. Also
removed all related downstream uses of catch for
db-ident/create-db-ident-from-name that are no longer needed
2024-08-19 15:40:28 -04:00
Gabriel Horner eff0d5e7d4 refactor: db ident generation with tests
Add tests for recent db ident fixes. Add check that backup keyword is valid
edn. Also generate correct keyword for cases like logseq/db-test#4 as
catch should be relied only for unexpected cases
2024-08-19 15:17:20 -04:00
Tienson Qin 562c83eab2 fix: cut and Paste does not copy the contents of properties
fixes https://github.com/logseq/db-test/issues/20
2024-08-19 11:02:45 +08:00
Tienson Qin f28ab33bda fix: block property lost cursor when there're multiple instances
fixes https://github.com/logseq/db-test/issues/5
2024-08-17 10:34:47 +08:00
Tienson Qin c59fac647f fix: distinct initial datoms 2024-08-16 18:10:06 +08:00
rcmerci dacbf11a03 fix: assert will be skipped in release, use throw instead 2024-08-16 17:30:26 +08:00
Tienson Qin b465ec7d33 fix: db ident can't start with number 2024-08-16 16:30:33 +08:00
Tienson Qin 3aae90b7fb fix: can't create tag from existing page 2024-08-16 10:57:12 +08:00
Tienson Qin 5c63b9fe7c fix: safe check block title when saving inline tags 2024-08-15 21:11:32 +08:00
Tienson Qin e3dd075a55 enhance: Tag support inline display 2024-08-15 19:02:49 +08:00
Tienson Qin f39e62678e fix: convert page to tag does not work with special chars
fixes https://github.com/logseq/db-test/issues/4
2024-08-13 22:47:23 +08:00
Tienson Qin 046e81bb31 fix: property sort column 2024-08-13 18:19:43 +08:00
Tienson Qin 6c403fe506 fix: sort nodes by closed value properties and task deadline 2024-08-11 10:07:57 +08:00
Tienson Qin b9f9fa0ca6 wip: Demo switch to use db graph 2024-08-10 13:42:37 +08:00
Tienson Qin 4b9875cde0 fix: don't mark a page as loaded if it doesn't ask for children 2024-08-09 17:20:17 +08:00
rcmerci c7c17e3dd2 fix: able to delete properties not built-in for the specific class 2024-08-09 17:12:16 +08:00
Tienson Qin b62715ebd8 enhance: replace inline tags with node references 2024-08-09 10:50:17 +08:00
Gabriel Horner 4a69e75e88 fix: import doesn't fail if it has a page with new class name
fixes LOG-3039
2024-08-08 15:16:21 -04:00
Gabriel Horner b90137199d fix typos 2024-08-08 09:24:02 -04:00
Gabriel Horner c660096937 fix: common test failing due to code organization
datascript based utils should be in db dep. common is for dependency free
namespaces
2024-08-08 09:24:02 -04:00
rcmerci d132f41cab enhance: validate :block/type change 2024-08-08 17:11:44 +08:00
Tienson Qin a6004f416d fix: ensure all pages list pages only 2024-08-08 16:07:18 +08:00
Tienson Qin 9b8a8e7da5 enhance: implement ISeqable and IPrintwithwriter for EntityPlus 2024-08-08 13:43:18 +08:00
Tienson Qin 75463c4df4 fix: don't depend frontend.(db|state) in worker ns 2024-08-08 10:34:03 +08:00
Gabriel Horner f74e5fbad7 fix: remove unused built-in property
Stop being used in #11311
2024-08-06 15:56:50 -04:00
Gabriel Horner 4b4fa45ae2 fix: db import broken by type changes in #11458 and other import bugs
New data model of allowing a single :block/type failed a lot of import tx
because properties and class types could be overwritten by a single page ref.
Also this fixes page-properties-tx which wasn't just transacting the
page properties. Also fixes importing pages like 'Tags' which were
incorrectly getting associated to built-in properties with the same name
2024-08-06 15:35:21 -04:00
Tienson Qin c1c6197b9b fix: pages of different types can use the same name 2024-08-06 13:08:35 +08:00
Tienson Qin 9c60742519 Merge branch 'feat/db' into refactor/single-block-type 2024-08-06 07:24:29 +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 beb3472fec Disable lint rules for db :property and :page-property 2024-08-05 17:12:24 -04:00
Gabriel Horner 512dd6b543 chore: update linters to use latest deps 2024-08-05 16:29:28 -04:00
Gabriel Horner 94b67d95f2 fix: db import from UI having some intermittent invalid blocks
Some imported blocks in UI have :block.temp/fully-loaded? but db on disk
doesn't.  Unsure what recent change caused this. Also improve console
import errors
2024-08-05 15:26:31 -04:00
Tienson Qin 5d2cd70142 Support db migration for :block/type update 2024-08-05 21:23:16 +08:00
Tienson Qin 411b05e7ba Prefer to use ldb/{type}? check when possible 2024-08-05 17:51:24 +08:00
Tienson Qin 0a9320c234 Disable lint rules for db :property and :page-property 2024-08-05 17:06:47 +08:00
Tienson Qin 4d7e3d33c8 Merge branch 'feat/db' into refactor/single-block-type 2024-08-05 15:19:32 +08:00
Tienson Qin 69912f3dce fix: lint 2024-08-05 15:19:04 +08:00
Tienson Qin 8f4bd7d713
refactor: updates :checkbox type to store Boolean values instead of ref values (#11451)
* refactor: don't store :checkbox as ref type

* fix: :property dsl query

* fix: task rule uses :property-ref-type

* enhance: dynamic query in :property rule depends on db/valueType

* enhance: use identity to avoid multiple vals binding error

* fix: replace outdated :page type with :node type

* fix: query-dsl tests

* fix: more outdated :page type

* fix: db test

* fix: db rules tests

* fix: move [?p ?prop ?pv] to the front

* fix: outliner tests

* fix: graph-parser tests

* Migrate checkbox ref type to non-ref type
2024-08-05 15:10:12 +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 4cb9cb63a6 Merge branch 'feat/db' into refactor/single-block-type 2024-08-03 15:34:40 +08:00
Tienson Qin a85fcdb842 Merge branch 'feat/db' into refactor/boolean-not-ref-type 2024-08-03 15:10:53 +08:00
Gabriel Horner eb63add1f0 enhance: provide a built-in description property
that is used by properties and closed values and can easily be used by
other blocks. Also removes :block/schema for closed values and schema
:description for properties which helps get away from data modeling debt
of :block/schema
2024-08-03 00:13:13 -04:00
Tienson Qin 8155d06d22 fix: properties on a property page don't load correctly
Fixes LOG-3202
2024-08-03 07:09:16 +08:00
Tienson Qin ea0a26e744 Merge branch 'feat/db' into refactor/boolean-not-ref-type 2024-08-03 04:48:54 +08:00
Tienson Qin 5869681598 Migrate checkbox ref type to non-ref type 2024-08-03 04:45:02 +08:00
Tienson Qin 09ad9d6d97 fix: outliner tests 2024-08-03 00:51:08 +08:00