Commit Graph

55 Commits

Author SHA1 Message Date
rcmerci
e56d531f13 fix: use broadcast-to-clients! to postmessage to clients 2025-04-22 02:20:07 +08:00
rcmerci
fd40bbeec5 enhance: c.m/backoff add :reset-flow option
We can use worker-flows/online-event-flow
to trigger a retry immediately upon receiving an 'online' event,
instead of waiting for the next retry delay.
2025-04-16 22:00:13 +08:00
rcmerci
0bcb860c0f enhance: make use-effect's handler cancelable 2025-04-03 16:46:44 +08:00
Gabriel Horner
18db6b1937 chore: mv db namespaces common to both graphs to logseq.db.common 2025-02-19 16:29:26 -05:00
Tienson Qin
e7e4294088 Feat: view group by (#11731)
* wip: view group by

* feat: view group by rendering

* enhance: use current group's value when creating new block

* enhance: add icons for view layouts

* fix: group rows selection

* fix: property type migration from #11695

* refactor: use namespaced keyword for block export

instead of confusing :build/block. Also improved related tests,
simplified import steps, added some missing sqlite.build docs,
and fixed :build/uuid not working for some existing journals.

* fix: remove export+imports invalid

when uuids are kept and when journals are created.
Also removed :logseq.class/Journal from export as its needless noise

* fix(ux): incorrect behavior for the sub menu content within the table header popup

* fix: group rows delete

* fix: lint

* fix: group block delete

* fix: bump version

* fix: group by titles not correct for :checkbox

Also enable group-by for :date as they just work

* fix: disable nonsensical and unreadable groupings for :many properties

* fix: grouping not working for :default property type

and sometimes :number or :url.
Was grouping by entity and not what user reads. If there are
2 :default values with 'text ha', this seemed buggy

* fix: icons not showing for grouping by status

---------

Co-authored-by: Gabriel Horner <gabriel@logseq.com>
Co-authored-by: charlie <xyhp915@qq.com>
2025-02-12 12:56:55 -05:00
rcmerci
0f55ab4a76 enhance(rtc): create new graph branch when major-schema-version changed 2025-02-08 17:32:11 +08:00
rcmerci
5f57708680 enhance(rtc): option to reset rtc-data in conn when upload-graph 2025-02-08 17:32:11 +08:00
rcmerci
bec7835783 enhance(rtc): add schema-version arg to related apis 2025-02-08 17:32:11 +08:00
Tienson Qin
a7e9d073cd chore: rename :property/* to :logseq.property/* 2025-01-15 14:59:08 +08:00
Tienson Qin
2c04eb76d7 fix: db tests 2025-01-13 16:20:45 +08:00
rcmerci
7b9ae93982 enhance: add logseq.common.defkeywords 2025-01-08 21:22:22 +08:00
Tienson Qin
8a0a05183e refactor: remove :block/format for db graphs (#11667) 2025-01-05 12:10:47 +08:00
Tienson Qin
64734820df Merge branch 'feat/db' into feat/repeated-tasks 2024-12-29 16:05:24 +08:00
rcmerci
f7815b487d fix: nbb test 2024-12-28 16:39:33 +08:00
rcmerci
26e2fad13d fix: move missionary_util to deps/common, fix some deps issue 2024-12-28 14:22:16 +08:00
rcmerci
8e21407ff2 fix: lint 2024-11-25 12:23:55 +08:00
Gabriel Horner
0c9c34d367 chore: consistently capitalize new class 2024-09-24 16:10:46 -04:00
Tienson Qin
fb2cc14444 fix: don't parse parent from namespace pages 2024-09-25 01:54:42 +08:00
Gabriel Horner
5167523521 fix: db tests and frontend+db lints 2024-09-24 13:10:32 -04:00
rcmerci
75c5c55ade test(rtc): update step3, toggle status DONE->TODO->DOING, and check final status 2024-09-24 22:31:15 +08:00
rcmerci
d4ccd7b8d9 test(rtc): update example db 2024-09-24 22:31:15 +08:00
Tienson Qin
42f127b396 feat: support nlp date in node reference (#11531)
feat: support nlp date in node reference
2024-09-18 10:41:37 +08:00
rcmerci
c746ab64e1 test(rtc): simplify code by sync-barrier 2024-09-13 14:21:16 +08:00
rcmerci
b59ae21618 test(rtc): add step6, delete-blocks case 2024-09-13 02:54:59 +08:00
rcmerci
66f120e004 test(rtc): update fixture db 2024-09-11 21:38:21 +08:00
Gabriel Horner
acdb23d28e fix: frontend lint 2024-09-06 09:50:06 -04:00
rcmerci
bc7a7d6c6d test(rtc): fix case move-blocks-concurrently 2024-09-06 13:34:31 +08:00
Gabriel Horner
72482a4fe7 fix: validity of :node property value
:node isn't the same as :entity. Also fixed another lint
2024-09-05 18:02:14 -04:00
Gabriel Horner
04742d6922 fix: db import of 'parent' property
Bug only triggered by user properties that happen to have same name as a
built-in property and the built-in is capitalized. Added a helper fn to
avoid this bug in the future. Removed hack from #11494 as assuming
a user properties are built-in ones would result in surprised users with
buggy imports. Also fixed lint from previous commit
2024-09-05 17:14:20 -04:00
Gabriel Horner
992e00ed16 fix: ignore dev lint failing 2024-09-05 14:42:26 -04:00
rcmerci
e93052dcba test(rtc): add case to ensure syncing messages between clients works 2024-09-06 01:39:18 +08:00
rcmerci
bf6919310d test(rtc): simplify waiting client-ops to be synced 2024-09-06 01:38:23 +08:00
Gabriel Horner
df0050bb2a fix: frontend lints 2024-09-05 10:03:36 -04:00
rcmerci
ad0968ba71 test(rtc): add helpers for syncing messages between test-clients 2024-09-05 12:11:43 +08:00
rcmerci
4e4cc73b12 test(rtc,wip): add case :move-blocks-concurrently 2024-09-05 12:11:43 +08:00
rcmerci
3a10999af8 test(rtc): add case :add-task-properties-to-block1 2024-09-04 21:26:18 +08:00
rcmerci
480b9a0dae test(rtc): insert more blocks to ensure request-message's size is huge
ensure using s3 to upload request-message
2024-09-04 18:49:33 +08:00
Tienson Qin
c7677c813e refactor: set parent for any page, not just tags (#11494)
* refactor: replace :class/parent with :logseq.property/parent

* replace :class/schema.properties with property.class/properties

* enhance: display schema properties directly in Tag properties

* tag properties style tweaks

* fix: properties view context

* fix: limit parent to be classes or pages depends on the current node

* enhance: display ancestors in Parent

* fix: ancestors

* enhance: display tag properties always for tags

* enhance: display tag block container instead of properties area

* enhance: show add property as popup instead of dialog

* fix: tag parent must be a tag

* enhance: display properties in the right sidebar

* fix: tags style

* fix: icon style

* fix: positioned icons

* fix: lint

* fix: tests

* fix: remove properties from rtc watched attrs

* fix: graph-parser tests

* enhance: style tweaks

* enhance: page/create parses tags from user-input title

* enhance(ux): [[ref]] followed by # (no whitespace) to add tags

* fix: tests

* fix: graph-parser lint and tests

* fix: allow tagged nodes to be parents

* enhance(ux): display tag property descriptions

Also, make it editable.
2024-09-03 07:32:38 +08:00
rcmerci
895dd349e0 test(rtc): add ns client-steps, add asserts to step2 2024-09-01 15:08:21 +08:00
rcmerci
6288e46cae test(rtc): add assert in step4--task-insert-300-blocks-to-remote 2024-08-31 13:06:14 +08:00
rcmerci
fde4e0d3cf test(rtc): add insert-300-blocks case 2024-08-30 22:30:44 +08:00
rcmerci
4c5a861da8 test(rtc): add asserts for client2 step2--task-wait-page1-synced 2024-08-30 20:56:17 +08:00
rcmerci
d85dacc5c6 chore: fix lint 2024-08-30 20:52:25 +08:00
rcmerci
98bbbc8408 test(rtc): debug sync page1 from client1 -> client2 2024-08-30 20:52:25 +08:00
rcmerci
1675e85d1c test(rtc): add client2-edits 2024-08-30 20:52:25 +08:00
rcmerci
50fb730c43 test(rtc): launch two clients at the same time 2024-08-30 20:52:25 +08:00
rcmerci
be8593f2c5 test(rtc): custom 'testvar' to testsuits 2024-08-30 20:52:25 +08:00
rcmerci
e4c955d8d3 test(rtc): update basic-edits-test
1. start rtc on repo
2. wait for client-ops synced
2024-08-30 20:52:25 +08:00
rcmerci
f5cc44bcf9 test(rtc): update basic-edits-test 2024-08-30 20:52:25 +08:00
rcmerci
cc8ce571e7 test(rtc): add basic-edits-test 2024-08-30 20:52:25 +08:00