Commit Graph

1791 Commits (cce10f61a8306d687489995691c67cb14db157fa)

Author SHA1 Message Date
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
charlie 3d582c9cda enhance(ux): support do not remind me for the shui confirm dialog 2024-08-26 16:34:53 +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 3d1ed4ca54 fix: :default property value objects shouldn't reference
their parent block. For logseq/db-test#36
2024-08-22 17:23:37 -04: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
Tienson Qin a7d330af83 fix: add sqlite kvs table migration 2024-08-22 22:03:54 +08:00
Tienson Qin fa493f72dc chore: bump datascript 2024-08-22 21:39:54 +08:00
Tienson Qin 674dbfb890 fix: don't delete rows from kvs if they're still used by other rows 2024-08-22 21:28:44 +08: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
charlie ac2417a9fb enhance(ux): WIP dropdown property editor 2024-08-20 12:49:02 +08: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
Gabriel Horner 658ea25a21 fix: two db importer bugs introduced last week
- Graphs with description page failed to import
- Graphs that had a page with a built-in class name mangled the block
  types. Reverted fix for logseq/db-test#17
- Also updated test for datom count as some parser changes were made
  last week to alter it
2024-08-19 12:45:12 -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
Tienson Qin 7778e0fa7e fix: unable to create page if tag exists
fixes https://github.com/logseq/db-test/issues/6
2024-08-16 17:32:57 +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 8ce71bd413 fix: can't create a new date property
Fixes https://github.com/logseq/db-test/issues/17
2024-08-16 10:18:26 +08:00
rcmerci 138900ccad fix(shui): limit value's type before compare when sorting 2024-08-16 02:31:39 +08:00
Tienson Qin 5c63b9fe7c fix: safe check block title when saving inline tags 2024-08-15 21:11:32 +08:00
Tienson Qin 8f3cdc9d94 fix: inline tag are not created if it doesn't exist in db 2024-08-15 20:59:54 +08:00
Tienson Qin e3dd075a55 enhance: Tag support inline display 2024-08-15 19:02:49 +08:00
charlie 837a32f03d fix(pdf): incorrect highlight value 2024-08-15 18:27:06 +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 2b36f67836 fix: enable property value blocks to be moved 2024-08-13 17:32:00 +08:00
charlie 528aa48b87 fix(ux): sticky table header within the right sidebar 2024-08-12 17:53:37 +08:00
charlie 37830905ae fix(ux): table sticky header in viewport 2024-08-12 12:09:29 +08:00
Tienson Qin bcf2fb9977 fix: class properties 2024-08-12 11:11:40 +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
Gabriel Horner fc518f0756 fix: block not collapsing for simple queries 2024-08-09 14:39:50 -04:00
Gabriel Horner 20eac03cea refactor: mv common worker/frontend ns to frontend/common
Move common core.async, date and search utils to frontend/common.
Part of LOG-3171
2024-08-09 11:18:32 -04:00
charlie fcb92a5bdc fix(ui): sticky header for all pages table 2024-08-09 17:58:27 +08:00
charlie bbe28d1ad2 fix(ui): sticky header for the tagged table 2024-08-09 17:21:28 +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 a2df9564c6 refactor: list file-graph properties that are supported
by export rather than listing db-graph properties which would
change a lot. This is a follow up to fixing built-in property conflicts
as part of LOG-3039
2024-08-08 15:16:21 -04: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 48df03a1fa fix: finish removing arweave
Follow up to a6e0b0a092
2024-08-08 09:24:02 -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
Tienson Qin b4a887c026 fix: can't paste headings
fixes https://github.com/logseq/db-test-cn/issues/7
2024-08-08 20:28:11 +08: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 beaa1709bb fix: image paste not work on production 2024-08-08 13:55:08 +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 3d8e579e67 refactor: decouple block extraction for db graphs and exporting
Coupling db graph app to export needs could lead to bugs and is harder
to maintain. Also fix a test assertion
2024-08-07 18:12:31 -04:00
Gabriel Horner dcb73b1003 fix: db import of advanced queries
Fixes LOG-3082
2024-08-07 16:30:20 -04:00
Gabriel Horner 66439dde68 fix: db import of markdown tables and multiline blocks
Fixes LOG-3072 and fixes LOG-3070
2024-08-07 12:33:13 -04: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 f811ab242c fix: test count changed by #11458 2024-08-06 15:53:07 -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 72552d6224 fix: avoid :block/refs self cycle 2024-08-06 15:21:13 +08: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
Gabriel Horner e9d1ec1cef fix: db import of properties that conflict with new built-in property names
Fixes LOG-3039. This was noticed because new description built-in
conflicted with file graphs that had the same name. This fixes the issue
for :description but also any of the other new db built-in property
names
2024-08-05 15:13:10 -04:00
Tienson Qin 5d2cd70142 Support db migration for :block/type update 2024-08-05 21:23:16 +08:00
Tienson Qin 825b6d0678 fix: allow closed values to be deleted when they've been refed 2024-08-05 19:04:18 +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 ccc9c99744 fix: outliner test 2024-08-05 15:46:01 +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 cb7b15402b fix: shouldn't hide markers/priorities for db graphs
Fixes LOG-3090
2024-08-03 15:21:41 +08:00
Tienson Qin 390b44985c chore: bump mldoc to 1.5.9 2024-08-03 15:19:51 +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 b2f1f79b3d fix: graph-parser tests 2024-08-03 04:11:38 +08:00
Tienson Qin 09ad9d6d97 fix: outliner tests 2024-08-03 00:51:08 +08:00
Tienson Qin fb681d3b12 fix: move [?p ?prop ?pv] to the front 2024-08-03 00:05:31 +08:00
Tienson Qin 870ff095aa fix: db rules tests 2024-08-02 23:54:39 +08:00
Tienson Qin 3a9fc0628e fix: db test 2024-08-02 23:22:32 +08:00
Tienson Qin 04e32b33d2 fix: more outdated :page type 2024-08-02 22:37:08 +08:00
Tienson Qin 227437f852 fix: replace outdated :page type with :node type 2024-08-02 10:36:07 -04:00
Gabriel Horner 0769583183 fix: more missed renames of :page to :node type
from #11433
2024-08-02 10:34:35 -04:00