Commit Graph

15367 Commits (9bab096def6570e2f8b7cac373d9eea3cbb3bb03)

Author SHA1 Message Date
Tienson Qin caa0763cee fix: restore to empty string after deleting the last block value 2024-04-05 14:10:21 +08:00
Tienson Qin 86a9d1ee1a fix: tags select 2024-04-05 14:01:24 +08:00
Tienson Qin ea98a1623e Merge branch 'refactor/db-properties-schema' into refactor/db-remove-block-name-unique 2024-04-05 09:56:39 +08:00
Tienson Qin 04b00322a3 fix: add class property 2024-04-05 09:47:23 +08:00
Gabriel Horner 14a3e5287b enhance: ident validation
block properties and class idents now have specific validation.
Also cleaned up overlapping ident definitions and updated incorrect
docstrings
2024-04-04 21:39:10 -04:00
Gabriel Horner 608d627544 fix: add back properties validation
and fix closed validation. Also temporarily comment out properties graph parts
that are still invalid
2024-04-04 21:09:28 -04:00
Tienson Qin 18a9c4af55 fix: unsafe cardinality from many to one 2024-04-05 07:59:49 +08:00
Tienson Qin b096b4673c fix: use :entity type instead of :uuid for ref type values 2024-04-04 16:58:24 -04:00
Gabriel Horner 7c1f52d2a4 chore: add format to build-new-page
every use of it was adding it manually
2024-04-04 09:25:20 -04:00
Gabriel Horner 3e504f5ab9 dev: add more tests for page-property rule 2024-04-04 09:22:39 -04:00
Tienson Qin eea1858040 fix: can't add alias 2024-04-04 18:16:23 +08:00
Tienson Qin 035fbb46c9 fix: use :entity type instead of :uuid for ref type values 2024-04-04 18:07:26 +08:00
Tienson Qin 8054150eef fix: unit tests 2024-04-04 15:57:49 +08:00
Tienson Qin fe2a426761 fix: rename page tests 2024-04-04 15:57:49 +08:00
Tienson Qin bf539751a8 disable rtc merge tests for now 2024-04-04 15:57:49 +08:00
Tienson Qin 6167abe160 fix: extract page from whiteboard edn 2024-04-04 15:57:49 +08:00
Tienson Qin e7717e92d9 fix: recent pages test 2024-04-04 15:57:49 +08:00
Tienson Qin 97030c571e fix: db model tests 2024-04-04 15:57:49 +08:00
Tienson Qin 5a3bbcddac fix: lint warnings 2024-04-04 15:57:49 +08:00
Tienson Qin 08f492b849 fix: use pu/get-pid for both file && db graphs 2024-04-04 15:57:49 +08:00
Tienson Qin 1b32378884 more places to use db eid instead of page name 2024-04-04 15:57:49 +08:00
Tienson Qin ed72c7d00a fix: whiteboard page properties 2024-04-04 15:57:49 +08:00
Tienson Qin a78c20eeed fix: whiteboard links 2024-04-04 15:57:48 +08:00
Tienson Qin c018f1517d perfer to use get-page instead of get-first-page-by-name 2024-04-04 15:57:48 +08:00
Tienson Qin 5f08e17a85 fix: more redirects use uuid instead of page name 2024-04-04 15:57:48 +08:00
Tienson Qin 2c29cbd495 fix: favorites 2024-04-04 15:57:48 +08:00
Tienson Qin 86f540bb6b fix: page url for whiteboards in recents 2024-04-04 15:57:48 +08:00
Tienson Qin 1f32893547 fix most issues on whiteboards 2024-04-04 15:57:48 +08:00
Tienson Qin 4a63f78aa8 fix: zoom into block 2024-04-04 15:57:48 +08:00
Tienson Qin 27a29a3fbe fix: lint warnings 2024-04-04 15:57:48 +08:00
Tienson Qin 9df8918f94 Remove more :block/name lookup ref usage 2024-04-04 15:57:48 +08:00
Tienson Qin 50e3ef5157 Handle more block/name lookup refs 2024-04-04 15:57:48 +08:00
Tienson Qin 96c9605b82 Recents store page db ids instead of uuids or page names 2024-04-04 15:57:48 +08:00
Tienson Qin 60d4fca0ba wip: remove :block/name uniqueness for db based graphs
This PR also remove supports for:
1. merge pages when renaming a page to existing page
2. namespaces such as a/b/c
3. nested page such as [[a [[nested page]]]]

Pages merge might be added back depends on RTC, but it should be
decoupled from renaming, otherwise it's too complex.

Namespaces and nested pages have been contributed some critical bugs
that lead data-loss, they're so complex together with page alias,
it's just impossible to have a good test coverage and ensure the app
is stable, especially when page rename and RTC.
2024-04-04 15:57:48 +08:00
Andelf 2d54433d7e fix(build): ios ci 2024-04-04 12:21:42 +08:00
Gabriel Horner c448e9a0d0 enhance: convert has-page-property rule with tests
also started on page-property rule. Tests confirm that
binding won't be an issue unlike the previous version
of these rules
2024-04-03 17:20:44 -04:00
Gabriel Horner 30d218169e fix: regression on editable property values in publishing 2024-04-03 13:58:27 -04:00
Gabriel Horner fbe84d3db6 fix: regression on allowing user to delete built-in pages 2024-04-03 13:55:30 -04:00
Gabriel Horner 438763d530 fix: unable to add a class property 2024-04-03 13:36:33 -04:00
Gabriel Horner 97f617bdd6 fix: unable to enter logseq.table* properties
also fix using renamed properties since their db-idents
aren't currently updated on rename
2024-04-03 10:20:28 -04:00
Gabriel Horner a8a2afbf4a chore: allow query script to fetch by entity 2024-04-03 09:00:38 -04:00
Tienson Qin 7084b53dad Merge branch 'feat/db' into refactor/db-properties-schema 2024-04-03 20:29:11 +08:00
rcmerci a7c8451ce4 refactor(undo): update ns frontend.worker.undo-redo (wip) 2024-04-03 17:59:13 +08:00
Andelf 1b0ea5358a ci: self-hosted runner to codesign 2024-04-03 16:41:50 +08:00
rcmerci 6339d76db0 refactor: use defmethod to collect all db-listen-handlers 2024-04-03 12:04:19 +08:00
Gabriel Horner 661cdc8636 fix: built-in properties with :name have incorrect names
Properties like logseq.table.version weren't available to add.
Also added conflict detection on properties graph which is how I
indirectly found this bug
2024-04-02 15:57:33 -04: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
Gabriel Horner 3d49585078 fix: create properties graph and validate graph script 2024-04-02 13:58:52 -04:00
Tienson Qin 298555d36c Still treat properties as pages 2024-04-02 23:11:52 +08:00
Gabriel Horner 12c667fabb Update nbb-logseq to latest datascript 2024-04-02 09:36:28 -04:00