Commit Graph

1375 Commits (bbb454a7d70265dd431fa65c8a42f097972d5065)

Author SHA1 Message Date
Tienson Qin 9b1da32028 fix: simplify deleting refed blocks
The new implementation will replace refs of the current deleting block
with the nearby block (if exists).
2024-06-06 19:36:40 +08:00
Tienson Qin 9e5a002cf8 enhance: avoid replacing page refs if there's no special chars 2024-06-06 15:15:01 +08:00
Tienson Qin 8a6b44bb31 fix: :block/content should be string including :number properties 2024-06-06 14:53:26 +08:00
Tienson Qin fb01f99a4d fix: outliner tests 2024-06-06 07:11:09 +08:00
Gabriel Horner 62701e1b6e fix: tests with outdated datom counts
I think caused by recent macros parsing or whiteboard changes
2024-06-05 17:06:16 -04:00
Gabriel Horner 8f6f52d630 fix: sort-by filter for db graphs
Also fixed a dsl-query sorting bug where nil property values where
incorrectly being treated as greater than non-nil values. Also
fixed a bug where blocks with an explicit :block/created-at weren't
being set for sqlite-build
2024-06-05 16:57:51 -04:00
Gabriel Horner 29faedc4d0 fix: db graph tests with children, created-at properties
and journal pages
2024-06-05 14:47:38 -04:00
Gabriel Horner 916fef8336 enhance: generate any outline structure with :build/children
Already useful for testing and will be for more interesting generation
cases
2024-06-05 12:15:12 -04:00
Tienson Qin 592e2a9b26 fix: add tags when not exists 2024-06-05 22:39:55 +08:00
Tienson Qin 44366dced0 fix: removing a heading's hashtags doesn't delete
fixes LOG-3138
2024-06-05 20:01:46 +08:00
Tienson Qin a314e3469a fix: page can alias itself and then fail to load
fixes LOG-3136
2024-06-05 17:18:32 +08:00
Tienson Qin 7beebedbd2 fix: embed block macro is buggy
fixes LOG-3145
2024-06-05 14:27:13 +08:00
Tienson Qin ed97102b38 fix: can't move block up with a :default property
fixes LOG-3140
2024-06-05 14:08:57 +08:00
Gabriel Horner e7f795103d fix: simple task queries and start fixing db dsl-query tests
Tests caught that task query wasn't working. Also disabled
namaspace test and rule for db graphs since they aren't supported
there
2024-06-04 15:53:36 -04:00
Gabriel Horner 05227f475b chore: mv more tests to appropriate dep enabled by :build/journal 2024-06-04 12:02:25 -04:00
Gabriel Horner 14222a546f enhance: make journals easier to generate with :build/journal
Use it in tests that more appropriately belong in db dep.
Also did minor cleanup around page prep for page-uuids
2024-06-04 12:02:25 -04:00
Gabriel Horner 13066001cd fix: storing and querying of :number property values 2024-06-03 17:41:32 -04:00
Gabriel Horner 5ecb3fe3d4 fix: lints 2024-06-03 14:13:55 -04:00
Gabriel Horner df10beb325 enhance: add schema and validation to sqlite.build
Also renamed block-level keys that are specific to the ns to have
a :build namespace. A lot easier to read, maintain and extend later.
Also cleaned up page naming to consistently require :block/original-name
2024-06-03 12:46:53 -04:00
Gabriel Horner a67e2c8c23 chore: use easier way to build db graph test data
in rules tests
2024-06-03 12:46:53 -04:00
Gabriel Horner 2456deb097 enhance: create sqlite.build ns as a better
load-test-files helper for db graphs and deps.
Most of this ns is split off from create-graph.
Migrated pipeline-test to correct outliner dep and
moved previous pipeline-test to correct db dep
2024-06-03 12:46:53 -04:00
Tienson Qin 721a9e14ad fix: arrow color 2024-06-03 19:20:50 +08:00
Tienson Qin e7de721dde fix: broken block ref after deleting source blocks 2024-06-03 15:33:49 +08:00
Tienson Qin bce5a308bb perf: skip db storage when batch applying outliner ops 2024-06-03 14:53:06 +08:00
rcmerci 8a94b856bd enhance(rtc): add debug prn when failed to transact 2024-06-02 21:19:59 +08:00
Gabriel Horner 03167ae19c enhance: extract block content refs for generated graphs
Also update content with ids and create pages as needed
2024-05-31 17:19:25 -04:00
Gabriel Horner ec7839fcce fix: simple queries in db graphs for most property types
Also fix parse-query was being called in multiple places
without a correct default value for :db-graph? option
2024-05-30 15:54:20 -04:00
Gabriel Horner 790d0460a1 fix: remove + disable :block/macros for db graphs
part of LOG-3137
2024-05-30 11:01:37 -04:00
Tienson Qin da3929376a fix: don't extract macros from block content for db graphs 2024-05-30 21:32:45 +08:00
Tienson Qin 9ce7f5d709 fix: eager loading nested blocks for short pages 2024-05-30 20:01:31 +08:00
Tienson Qin 13b19a1b9c perf: render less blocks and improve app start time
1. load only 1 journal when app starts
2. fix can't load more journals
3. pretend all the unloaded pages as long pages to avoid more
rendering
4. don't send <get-block queries if there're already requests
2024-05-30 18:31:19 +08:00
Gabriel Horner 1dd9823fdf fix: remove alias ref to avoid recursive display bug
A page with aliases resulted in linked references recursively showing the
current page
2024-05-29 13:25:32 -04:00
Gabriel Horner a4d8e05e2f fix: esc saves a tag class with a :db/ident
Also refactor to update class tests to use correct helper
2024-05-29 11:09:09 -04:00
Gabriel Horner cc92702a98 chore: remove unused fn when setting prop values 2024-05-29 11:09:09 -04:00
Tienson Qin f4dd06f959 enhance: display tags the same way as other properties 2024-05-29 15:37:23 +08:00
Gabriel Horner effde81161 enhance: all user classes have :db/ident
This is important as a user's ontology (properties + classes) is now describable
with unique identifiers. This will allow for easy sharing and
importing of ontologies between users.
Also <create-class! now exists to create classes consistently. Will
be helpful when we want to provide some validation for classes
2024-05-28 16:52:12 -04:00
charlie 0dead80fe1 enhance(ui): support more props for the shui dialog config 2024-05-28 17:03:45 +08:00
Tienson Qin 02fcc69928 CSS tweaks 2024-05-28 03:02:22 +08:00
Tienson Qin 8de8377d4b fix: disable shortcut property when property dialog is opened 2024-05-27 23:03:24 +08:00
Tienson Qin 21e480ec3e fix: can't delete :checkbox property 2024-05-27 22:56:49 +08:00
Tienson Qin d432bb1f71 enhance: back to edit mode after setting a property
Except if the editing property is :default type
2024-05-27 21:10:00 +08:00
Tienson Qin 6ced3bff8f enhance: property editing support shortcut 2024-05-27 20:08:43 +08:00
Tienson Qin c326730ce5 fix: retract icon property when settign a closed value's icon to nil 2024-05-27 12:30:45 +08:00
Gabriel Horner 77f14ca1f6 fix: don't delete property values while typing
property values were deleted while typing b/c
content ref re-calculation wasn't considering them.
Related to LOG-2819
2024-05-24 18:14:14 -04:00
Gabriel Horner 7c0b154fff fix: disallow property self-refs
Causes wonky linked reference animations and maybe other
bugs. Can repro by creating a property url and then adding the :url
property as a page property to the url page
2024-05-24 14:03:16 -04:00
Gabriel Horner d2ea12fab6 refactor: simplify schema and creation of kv ents 2024-05-24 09:50:22 -04:00
Tienson Qin 8458b6b21b enhance: rename :key/value to :kv/value 2024-05-24 15:21:10 +08:00
Tienson Qin db7c4e2145 refactor: use one attribute :key/value for all kvs 2024-05-24 14:22:09 +08:00
Tienson Qin b2f38f6f0c Revert "chore: rename :db/type to :logseq.db/type"
This reverts commit 32e6433c44.
2024-05-24 14:06:39 +08:00
Tienson Qin 32e6433c44 chore: rename :db/type to :logseq.db/type 2024-05-24 14:02:16 +08:00