Commit Graph

12559 Commits

Author SHA1 Message Date
Gabriel Horner
8d9d258aef fix: auto-created property values shouldn't have multiple classes 2023-09-07 16:12:52 -04:00
Gabriel Horner
e63b9716b4 fix: Update create scripts to use :classes instead of :class
For schema script, changed property type detection and added all classes
For inferred script, also fixed a db/id issue caused by previous negative num
changes
2023-09-07 15:47:46 -04:00
Gabriel Horner
651866ba0b fix: searching in :classes field 2023-09-07 09:50:53 -04:00
Gabriel Horner
4b15a727a9 Add readme, lint and CI for outliner dep
Also got outliner lints passing
2023-09-06 17:03:04 -04:00
Gabriel Horner
a93fe4d81b Move recalculate-block-path-refs to outliner dep
Moved dependent query fns also into the outliner dep. Removed
get-block-children-ids from model as there was only one use of it after
the refactor. Also setup testing for outliner and moved in a test for it
2023-09-06 16:20:29 -04:00
Tienson Qin
128e03452f fix indent/outdent/move-up-down cursor when there's a link block
This commit also replaces setTimeout with rum/schedule
2023-09-07 01:29:43 +08:00
Tienson Qin
0cbd6c09f8 perf: slow switch to the editor mode for long pages 2023-09-07 00:12:48 +08:00
Tienson Qin
a23068fec7 fix: blocks rendering 2023-09-07 00:12:48 +08:00
Gabriel Horner
ea8d6679de Fix frontend and graph-parser tests
A number of outliner tests were failing which is distracting when trying
to separate out outliner namespaces. Most failures were caused by
introduction of state/get-selection-blocks into outliner layer. A few
are caused by trivial count change in datoms. Removed config/test? from
outliner as it's unused
2023-09-06 11:57:41 -04:00
Tienson Qin
481481fc47 perf: disable lazy load for short pages
Also, fixed slow blocks selection
2023-09-06 22:49:18 +08:00
Tienson Qin
853b54510c perf: fast rendering for long pages (no need to wait for seconds) 2023-09-06 22:00:39 +08:00
Tienson Qin
4657acbc43 perf: reduce cost for edit-block! 2023-09-06 21:38:08 +08:00
Tienson Qin
89186a438e perf: avoid unnessary block component rendering 2023-09-06 21:38:08 +08:00
Gabriel Horner
c07da6cc80 Move handler.common.repo fn into sqlite-util
This makes create-graph* namespaces independent of frontend
as they should be to be used externally
2023-09-06 08:59:40 -04:00
Tienson Qin
26a673f201 fix: redirect to linked block if zoom in 2023-09-06 14:12:47 +08:00
Gabriel Horner
b264d17309 Move db-graph property fns to its own logseq.db ns
db-graph related fns like these shouldn't be in the graph-parser dep as
that dep should only really be used with file graphs as much as possible.
This is also being done in preparation for making the create-graph ns independent of
the frontend

Also db- prefixes in fns were dropped since the ns now carries the db-
prefix
2023-09-05 17:15:45 -04:00
Gabriel Horner
7f0f5f4f70 fix: create graph script not working
also fix not being able to use logseq.tasks.db-graph.* with nbb scripts
external to logseq
2023-09-05 16:10:31 -04:00
Tienson Qin
60ab58c2ad fix: can't tag a block if the tag name has spaces 2023-09-06 01:08:33 +08:00
Tienson Qin
11ad914f27 fix: display tags for blocks too 2023-09-05 23:24:22 +08:00
Tienson Qin
3af4b7e530 fix: no need to update existing object's classes 2023-09-05 22:00:09 +08:00
Tienson Qin
ff078afb8e fix: select objects from specified classes 2023-09-05 21:56:36 +08:00
Tienson Qin
93643dafd5 feat: specify multple classes for object type 2023-09-05 20:19:31 +08:00
Tienson Qin
5f282ce3bb remove unnecessary div 2023-09-05 17:49:00 +08:00
Tienson Qin
b9424d662b style tweaks 2023-09-05 17:39:42 +08:00
Tienson Qin
07d58178b2 feat: configure hidden properties 2023-09-05 16:40:14 +08:00
Tienson Qin
cab00429c0 enhance: preload more blocks 2023-09-04 22:13:46 +08:00
Tienson Qin
dfd5fa0a16 revert the change 2023-09-04 22:12:08 +08:00
Tienson Qin
02cc7eb46c enhance: set block placeholder height to 120 2023-09-04 22:10:37 +08:00
Tienson Qin
f8f2f987c4 enhance: new lazy blocks implementation
1. GC blocks below viewport only
2. No long uses heavy react-intersection-observer
2023-09-04 22:00:45 +08:00
Tienson Qin
43ca48bdde fix: outdent not working for newly added object block 2023-09-04 17:41:50 +08:00
Tienson Qin
54de53d4aa fix: scroll up if Enter pressed at the bottom 2023-09-04 15:12:07 +08:00
Tienson Qin
33f8a24397 perf enhancement
1. add :block/tx-id to check whether block has been updated
2. avoid rendering blocks if they're not updated
2023-09-04 14:15:46 +08:00
Tienson Qin
b7a6b92be0 enhance: small text for tags 2023-09-03 23:01:57 +08:00
Tienson Qin
cb177df037 fix: order block's own properties by id (squuid time) 2023-09-03 23:01:03 +08:00
Tienson Qin
3a14808b57 updated default icon for properties 2023-09-03 22:50:26 +08:00
Tienson Qin
387ad13536 enhance: group properties by classes 2023-09-03 22:09:39 +08:00
Gabriel Horner
b3efb93335 Move initial namespaces to start outliner dep 2023-09-01 17:23:34 -04:00
Gabriel Horner
d17c9a21f5 enhance: sort parent class options 2023-09-01 16:03:31 -04:00
Gabriel Horner
22d1cb54c5 fix: schema.org classes missing from tree
also fix typos
2023-09-01 15:08:11 -04:00
Gabriel Horner
adab8a8e2e Add a basic tree hierarchy for db graph classes 2023-09-01 11:33:56 -04:00
Gabriel Horner
4c90983fd1 enhance: meta-click on a parent class to navigate to it 2023-08-31 14:24:25 -04:00
Gabriel Horner
22ac81a9d5 fix: regression on file graphs not showing hashtag for tags 2023-08-31 11:24:44 -04:00
Tienson Qin
f5b290c64f enhance: show tags when editing a block 2023-08-31 17:36:38 +08:00
Tienson Qin
285bda2c29 enhance: display an empty block ready for input for block type value 2023-08-31 14:43:14 +08:00
Tienson Qin
1c12085150 fix: wrap property key if it's long 2023-08-31 13:45:03 +08:00
Gabriel Horner
7a48557ec9 Add url properties to schema and page properties
This required adding support for property :properties to create-graph.
Also fixed a subtle bug where transact! silently fails for positive
:db/id integers. Also misc script cleanup and docs
2023-08-30 16:15:46 -04:00
Gabriel Horner
43c299972c Fix url and text type detection in script 2023-08-30 16:15:46 -04:00
Gabriel Horner
34248736c7 First pass at a script that creates a db graph with schema.org ontology 2023-08-30 16:15:46 -04:00
rcmerci
510df28e06 support page create/rename/delete in rtc 2023-08-30 22:10:55 +08:00
rcmerci
27ccf55d11 listen ds tx-report to generate page related ops 2023-08-30 13:04:33 +08:00