Commit Graph

14716 Commits

Author SHA1 Message Date
Tienson Qin
f28fe9ce94 update db worker 2025-06-02 11:13:43 +08:00
Tienson Qin
08bbe5c82d enhance: add a command to gc current graph 2025-06-02 11:13:43 +08:00
Tienson Qin
4d540f57c4 gc main db weekly and rtc db every time when opening it 2025-06-02 11:13:43 +08:00
Tienson Qin
cfce99d401 fix: gc unused addresses
GC rule:
Remove all non referenced addrs except some internal addrs from the
kvs table.

5 internal addrs:
1. db root (addr: 1)
2. tail (addr: 0)
3. eavt set addr
4. avet set addr
5. aevt set addr

Those set addrs are stored in the db's metadata.
2025-06-02 11:13:43 +08:00
Charlie
84183068fb enhance(dev): upgrade pdfjs (#11914)
* enhance(dev): upgrade pdfjs

* chore: upgrade shadow-cljs
2025-06-02 11:13:05 +08:00
Tienson Qin
d78bd64467 fix: alias references are not displayed in linked references
fix https://github.com/logseq/db-test/issues/292
2025-05-31 18:26:25 +08:00
Gabriel Horner
06b43ba5b7 fix(regression): publishing not starting
Weird loading issue for publishing with :block/tags. Put in workaround
for now. Also disabled more rtc tasks for publishing
2025-05-29 15:29:26 -04:00
Gabriel Horner
04190d22a3 fix(regression): query builder for multiple property types including :checkbox
Fixes https://github.com/logseq/db-test/issues/288. Regression caused by
572d6f4390 . Confirmed this bug was
affecting the following non-ref, non-string property types:
:checkbox, :any, :keyword and :raw-number
2025-05-28 14:59:26 -04:00
Tienson Qin
ce791172ab fix: lint 2025-05-29 00:39:51 +08:00
Tienson Qin
a2936ba5ef fix: backup file and notify existing one 2025-05-29 00:39:51 +08:00
Gabriel Horner
f846ec9dae fix: repo test
need to stub worker-state config instead of state config. Also removed
unused async code in test fn
2025-05-29 00:39:51 +08:00
Gabriel Horner
ab014e318b fix: frontend lint 2025-05-29 00:39:51 +08:00
Tienson Qin
92639087d4 fix: sync calls for test version 2025-05-29 00:39:51 +08:00
Tienson Qin
2a74fc3d7e Add test version of alter-file 2025-05-29 00:39:51 +08:00
Tienson Qin
33b6433dc9 wip: move file parse to worker 2025-05-29 00:39:51 +08:00
Tienson Qin
6051be610f enhance: disable deleting addrs until ref-counted delete 2025-05-29 00:22:46 +08:00
rcmerci
495357479b enhance: store metadata in localstorage 2025-05-28 00:44:09 +08:00
rcmerci
35212f9ca0 fix: js/navigator.userAgentData maybe nil 2025-05-28 00:44:09 +08:00
Gabriel Horner
e7583b8b8c enhance: save git sha of new graph in kv/value
Will be useful for pinpointing if certain graphs are impacted by bugs.
graph-initial-schema-version is helpful but can stay the same for
awhile.
Closes
https://test.logseq.com/#/page/6835e455-69f6-4bbd-9865-b76fa57ce457
2025-05-27 12:14:20 -04:00
Gabriel Horner
a169256314 enhance: make it easier for users to fix broken graph
Tell users what to run and remove dev flag. Thought of while working
with https://github.com/logseq/db-test/issues/286
2025-05-26 17:17:57 -04:00
Tienson Qin
fe0f5f6abe fix(regression): slow to write file 2025-05-27 03:31:27 +08:00
Gabriel Horner
b451cf1508 fix: numbered list not created in a child block
A new block in this repro consistently returns :block/properties '()
which results in the bug. Fixes
https://test.logseq.com/#/page/68307c18-f9fb-4049-9efb-944cdff4226d.
This is similar to d08acfc3ba
2025-05-26 15:24:16 -04:00
Gabriel Horner
d937a55343 fix: ui/hide-empty-properties? config no longer working
on pages or sidebar. Likewise 'p t' is still useful to have in those
contexts
2025-05-26 12:42:00 -04:00
rcmerci
5d1f568bed fix(rtc): update block-attrs when block not exist 2025-05-25 23:02:34 +08:00
rcmerci
eaa0ea5ca3 fix: missing block/updated-at in history-blocks 2025-05-25 16:09:46 +08:00
Tienson Qin
3a448af06f fix: ensures there's no multiple block editors at the same time 2025-05-24 22:43:45 +08:00
Tienson Qin
146c04fcce fix: don't exit editor until another block's editor is ready
This fixes flickering or hiding of the system keyboard between input
transitions on mobile.
2025-05-24 06:18:46 +08:00
Tienson Qin
fcc7316c9f fix: add ls-block container name 2025-05-24 00:06:35 +08:00
Tienson Qin
7a021bcb8d enhance(ux): put block tags below block content on mobile 2025-05-23 23:48:18 +08:00
Tienson Qin
97d960a02c enhance(ux): hide positioned(right) properties for smaller container 2025-05-23 21:20:45 +08:00
Tienson Qin
76631e1f32 fix: align center positioned properties on page title 2025-05-23 20:58:26 +08:00
Tienson Qin
d666d1ddfe fix: double popup when clicking select property value 2025-05-23 05:29:41 +08:00
Tienson Qin
0059b6bbd6 style: set small text when editing in table cell 2025-05-23 04:47:33 +08:00
Tienson Qin
c7f39b51bf enhance: show p icon for property type 2025-05-23 04:42:25 +08:00
Tienson Qin
ad6130f2cd style: page title actions 2025-05-23 04:38:44 +08:00
Tienson Qin
fb1d38bc6d enhance(ux): shift + enter to open selected block(s) in sidebar 2025-05-23 03:57:17 +08:00
Tienson Qin
a789804ce4 fix: don't show jtrigger on table cells 2025-05-23 03:38:20 +08:00
Tienson Qin
e25f1278bd fix: mod+j works either for selected or editing block or globally 2025-05-23 03:16:02 +08:00
Tienson Qin
ff8a7c0df0 enhance(ux): mod+j support sidebar 2025-05-23 02:33:52 +08:00
Tienson Qin
3ba5028aa9 enhance(ux): show collapsed triangle for page title 2025-05-22 19:03:24 +08:00
Tienson Qin
ed0860fcc3 enhance(ux): set different hovering actions for tag, property
and page
2025-05-22 19:03:24 +08:00
Tienson Qin
0787d7ae36 fix: create new property in tag properties 2025-05-22 19:03:24 +08:00
Tienson Qin
65f5b9cd64 enhance(ux): tag properties using select 2025-05-22 19:03:24 +08:00
Tienson Qin
b88375ba4b chore: remove debug 2025-05-22 18:54:49 +08:00
Tienson Qin
9404e5b5bf fix: buggy between ui 2025-05-22 18:51:01 +08:00
Tienson Qin
9af119ab29 enhance: between support any :datetime property
Not just :block/created-at and :block/updated-at
2025-05-22 18:24:15 +08:00
rcmerci
fa3ec6556e enhance(rtc): ensure local-t and remote-t are monotonically increasing,
and remote-t >= local-t
2025-05-22 17:44:39 +08:00
Tienson Qin
ed32cfb4c9 fix(regression): slow editing in file graph
The root cause is that logseq tries to save the file each time when
there's a transaction.
2025-05-22 14:54:34 +08:00
Gabriel Horner
f4d3dca19c fix: db-idents like :logseq.kv/graph-initial-schema-version
being ovewritten by migration and validation. Looks like this
was introduced in 985365a274
Fixes
https://test.logseq.com/#/page/682e2616-cd2d-48ba-8f90-a1ace81dc87e
2025-05-21 16:07:06 -04:00
Tienson Qin
88272cbd06 fix: don't transact unknown page
It's dangerous because the db might be broken so that some titles are
missing, it might be also because the page is not fully loaded to UI.
2025-05-22 03:21:04 +08:00