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
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
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
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
Tienson Qin
5a8065db88
fix: template not working for file graphs
2024-04-28 15:18:45 +08:00
Tienson Qin
e1b57655a8
fix: search redirects to hidden page
2024-04-28 14:40:01 +08:00
Tienson Qin
c4a123dfb2
fix: save whiteboard create multiple pages
2024-04-28 14:21:31 +08:00
Tienson Qin
b90eb36e83
perf: load datoms instead of pull data when app loads
2024-04-28 09:23:13 +08:00
Tienson Qin
2088c80a93
fix: container-id could be unknown
2024-04-27 10:14:10 +08:00
Tienson Qin
8c20e3b54f
fix: undo/redo editor cursor
2024-04-27 09:56:49 +08:00
Gabriel Horner
1b3b3afd32
fix: invalid placeholder for :date and :page
2024-04-26 09:22:46 -04:00
charlie
0eb44c0090
Merge branch 'master' into feat/db
2024-04-26 17:19:22 +08:00
charlie
82a1a18762
refactor(ui): simplify the old shui codes and remove support for the table.v2
2024-04-26 16:47:53 +08:00
Tienson Qin
81c267ed58
wip: undo redo editor cursor
2024-04-26 14:44:38 +08:00
Gabriel Horner
01382219ca
fix: display page aliases
2024-04-25 16:48:44 -04:00
Gabriel Horner
75bd3e8ef8
fix: invalid new whiteboard pages
2024-04-25 15:12:57 -04:00
Gabriel Horner
4276a3f109
fix: replace file graph helper in db graph namespaces
...
with db graph equivalent
2024-04-25 12:19:58 -04:00
Gabriel Horner
edca3049c0
chore: remove unused fn
2024-04-25 11:24:08 -04:00
Gabriel Horner
3681ac354b
fix: move db-pipeline and datascript-report back to outliner dep
...
graph-parser is primarily a file graph dep that is maintained separately
from db graphs. We want to move as many namespaces out of it as
possible. Also moved differing count assertions to
their respective tests
2024-04-25 11:22:14 -04:00