Tienson Qin
89edb3af9a
fix: can't remove Many values
2024-05-02 18:03:17 +08:00
Tienson Qin
742ac92561
fix: can't edit blocks on whiteboards
2024-05-02 17:33:24 +08:00
Tienson Qin
d907eb7654
fix: wrong digs for fractional index
2024-05-02 14:34:38 +08:00
Tienson Qin
d14cc50b48
fix: press enter at beginning of a block that isn’t a sibling
2024-05-02 13:17:36 +08:00
charlie
a417c43029
Merge branch 'master' into feat/db
2024-05-02 11:29:08 +08:00
Gabriel Horner
d4bc5f22ff
fix: large graph generation for some cases
...
Fixes some generation cases like 1 or 2 pages with 1000 blocks.
Larger generation with 10k+ blocks still fail b/c of block/order
generation. Also remove deleted :block-id-fn
2024-05-01 17:21:54 -04:00
Gabriel Horner
d4ecc393f0
fix: schema with :block/order changes
2024-05-01 16:47:25 -04:00
Tienson Qin
1ec4796eff
refactor: replace :block/left with :block/order
...
Finally no need to worry about parent-left conflicts and broken chain.
With :block/order, we only need to re-compute new orders for siblings
with same order (it can happens if there're bugs in our code, or
updates from rtc), but it doesn't break UI.
Another huge potential benefit after discussing with Zhiyuan is:
Ee might be able to simplify both RTC and undo/redo, currently, we
need to handle each new op for both of them, with recently
refactorings like properties being db attributes, :block/order
is a string instead of a ref, we can handle most property value
conflicts using last-write-wins, and others (e.g. :block/parent,
property with :default type) specifically.
I haven't fixed the issues of using :block/left in RTC and undo/redo,
because we might change both soon.
2024-05-02 01:12:22 +08:00
Gabriel Horner
439d6e6da7
fix: slash commands for task properties e.g. /TODO
2024-05-01 12:49:04 -04:00
Gabriel Horner
27ed8c7f29
enhance: allow user classes to have db idents
...
This allows imported and eventually user classes to have db idents.
Updated schema example graph which now imports classes as
:schema.class/X. Also fix schema properties which were removed from
the debug file and remove unused property uuids
2024-05-01 12:20:26 -04:00
Gabriel Horner
5c81b61774
fix: file graphs can't load b/c db specific attribute fetched
2024-05-01 09:07:23 -04:00
rcmerci
4ccd16dbe1
chore: some updates to naming
2024-05-01 16:30:51 +08:00
Gabriel Horner
39f6bebfc6
fix: slides not working in db graph
...
caused by property pair revert 5d4ae66d86
2024-04-30 15:57:40 -04:00
Gabriel Horner
fec63839bd
fix: update properties graph to generate string-closed
...
instead of default-closed. Also add string-many examples
2024-04-30 14:23:49 -04:00
Gabriel Horner
2540bb3014
fix: type validations
...
:default doesn't have closed and tweak validation error messages
2024-04-30 14:14:25 -04:00
Gabriel Horner
fa3a589c72
fix: built-in properties visible on all pages
2024-04-30 13:43:45 -04:00
Gabriel Horner
77914fbcdf
fix: db tests and lint
2024-04-30 12:31:12 -04:00
Gabriel Horner
670b46f221
fix: validate property values again
...
caused by property pair revert 5d4ae66d86
2024-04-30 12:25:12 -04:00
Gabriel Horner
efcffd6e19
fix: rules and most db tests
...
caused by property pair revert 5d4ae66d86
2024-04-30 10:33:33 -04:00
Gabriel Horner
a35bc9b0d6
Bump nbb-logseq version for datascript and ordered-map changes
2024-04-30 10:10:11 -04:00
rcmerci
acf8509154
refactor(rtc): add more apis
2024-04-30 21:48:38 +08:00
rcmerci
f642fc675d
refactor(rtc): add apis
2024-04-30 18:05:57 +08:00
charlie
956d470610
enhance(ui): polish block editor
2024-04-30 17:25:47 +08:00
rcmerci
b11f7e7e9b
feat(rtc): prevent rtc-loop-tasks from running concurrently
2024-04-30 16:47:52 +08:00
charlie
89eebc6dbe
enhance(ux): support the shui popups for more editor commands modal
2024-04-30 15:49:33 +08:00
charlie
87f000b8b5
enhance(ui): polish editor content details
2024-04-30 15:49:33 +08:00
rcmerci
d39fb0782b
refactor(rtc): go through the process of missionary-rtc-loop and
...
fix several bugs
2024-04-30 15:29:10 +08:00
rcmerci
9c2b205027
refator(rtc): update create-rtc-loop
2024-04-30 12:30:39 +08:00
rcmerci
75f69ffb48
refactor(rtc): split core by adding ns remote, client, exception
...
and re-impl using missionary
2024-04-30 02:08:00 +08:00
rcmerci
5cd1bd2b11
enhance(rtc): update ws apis
2024-04-30 02:07:03 +08:00
charlie
0a0b7e0a40
enhance(ux): polish alignments for the bullets within the Headings block
2024-04-29 17:59:34 +08:00
charlie
e40e39c3aa
enhance(ux): better highlights page name for the search result items
2024-04-29 15:56:11 +08:00
Tienson Qin
95eb0e7f4a
Merge branch 'feat/db' into refactor/db-properties-schema
2024-04-29 15:55:23 +08:00
Tienson Qin
cdf546dce7
convert fractional-index js to cljs
2024-04-29 15:30:35 +08:00
Tienson Qin
abbaf495fe
code cleanup
2024-04-29 15:23:55 +08:00
charlie
179b4fa44a
enhance(ux): add context menu actions for the right sidebar items
2024-04-29 14:18:37 +08:00
Tienson Qin
723f0a5bab
fix: class ordered properties
2024-04-29 12:27:18 +08:00
Tienson Qin
8275449b3c
feat: drag && drop block properties
2024-04-29 11:35:11 +08:00
rcmerci
39228f4409
feat(rtc): add timeout(10s) for creating ws-connection
2024-04-29 01:43:01 +08:00
Tienson Qin
dda5f2200e
wip: add global :block/order for properties
2024-04-29 00:27:41 +08:00
Tienson Qin
6a976ca0e2
Deprecate more db attributes for db graphs
2024-04-28 22:29:47 +08:00
rcmerci
e9f5137a86
refactor(rtc): add frontend.worker.rtc.ws2
...
- backoff reconnect websocket
- auto reconnect closed websocket when sending data
- support timeout when receiving data from websocket
- support cancel
2024-04-28 20:02:00 +08:00
Tienson Qin
5d4ae66d86
revert: remove :block/properties
2024-04-28 19:44:53 +08:00
charlie
7dca9292d1
enhance(ui): polish details
2024-04-28 19:24:47 +08:00
Tienson Qin
d0e2a0991b
fix: :string could be entity for closed values
2024-04-28 18:06:50 +08:00
Tienson Qin
b21bdbe71b
fix: add :string to select type
2024-04-28 17:51:20 +08:00
Tienson Qin
c4e0bda579
fix: add :string to user faced and disable :default for closed value
2024-04-28 17:48:33 +08:00
Tienson Qin
6272dd112a
fix: use :string instead of :default type for built-in property
2024-04-28 17:06:26 +08:00
Tienson Qin
16f2ba37e7
fix: modify markdown file doesn't show on UI
2024-04-28 15:46:02 +08:00
charlie
43b5c575ad
fix(ux): sometimes up/down block selection not work
2024-04-28 15:34:22 +08:00