Commit Graph

18312 Commits

Author SHA1 Message Date
rcmerci
91a1372dfb refactor(rtc): remake rtc-download-info-list 2024-05-05 21:30:01 +08:00
rcmerci
1db86be435 refactor(rtc): remake rtc-request-download-graph 2024-05-05 20:54:33 +08:00
rcmerci
0164695483 chore: clean ns 2024-05-05 18:21:25 +08:00
rcmerci
b0673fc850 refactor(rtc): remake async upload-graph 2024-05-05 18:20:00 +08:00
rcmerci
9bd1b41441 refactor(rtc): ws2 support s3-presign-url resp 2024-05-05 14:30:15 +08:00
rcmerci
cad9602d48 refactor(rtc): remove more deprecated apis 2024-05-05 02:26:17 +08:00
rcmerci
13930f2117 refactor(rtc): remove more deprecated apis 2024-05-05 02:23:37 +08:00
rcmerci
6aeb659dbd refactor(rtc): remake snapshot apis 2024-05-05 01:47:33 +08:00
rcmerci
64cd588c1a refactor(rtc): update debug ui with new-impl 2024-05-04 19:35:35 +08:00
rcmerci
0d30ca2e76 chore: some updates to naming 2024-05-04 11:46:08 +08:00
rcmerci
2e67aed55d refactor(rtc): replace origin rtc-start&stop 2024-05-04 11:46:08 +08:00
Gabriel Horner
f0967c553e fix: unit test and add :fix-me flag to the rest 2024-05-03 17:07:06 -04:00
Gabriel Horner
333490fde6 enhance: create-graph scripts can generate classes via :classes
Any script can pass a :classes config key. schema script no longer needs
to manage db ids or db idents
2024-05-03 16:24:46 -04:00
Tienson Qin
b1b6d3fb26 fix: search content for default type blocks 2024-05-03 09:59:20 +08:00
Tienson Qin
7aa3bd7d84 fix: issues of :default :one property 2024-05-03 09:59:20 +08:00
Gabriel Horner
b5a8f96426 fix: publishing hl-type-area for db graphs 2024-05-02 16:15:06 -04:00
Gabriel Horner
5130ced982 fix: public queries for publishing 2024-05-02 15:53:48 -04:00
Gabriel Horner
d4d7b574a3 fix: frontend lints 2024-05-02 15:23:00 -04:00
Gabriel Horner
24c48e7a87 fix: multiple fixes related to lookup-by-name
- only use it for user properties
- don't use create ident fn to lookup names
- fixed get-area-block-asset-url which didn't work for db graphs without
  the frontend
2024-05-02 15:16:03 -04:00
Gabriel Horner
3df9b595ea fix: property checkbox should be disabled for publishing 2024-05-02 13:50:24 -04:00
Tienson Qin
457a74343f refactor: no need to create parent && hidden page for :default value 2024-05-03 00:02:55 +08:00
Gabriel Horner
88e38b16f4 fix: more lints including removing dead code 2024-05-02 10:35:44 -04:00
Gabriel Horner
602b236a4c fix: graph-parser lint 2024-05-02 10:23:20 -04:00
Gabriel Horner
1dbdb16765 fix: whiteboard shapes being invalid 2024-05-02 10:01:08 -04:00
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