pengx17
8db37e9bbf
feat: cmd click support for journal sidebar ( #7792 )
...
fix AF-1214
The titles are also corrected:

2024-08-08 10:22:11 +00:00
pengx17
7fca13076a
feat: mid click links to open in new tab ( #7784 )
...
fix AF-1200
2024-08-08 09:43:35 +00:00
pengx17
b71945c29f
chore: tracking events for app tabs header ( #7778 )
...
fix AF-1194
2024-08-08 09:14:47 +00:00
pengx17
f62d30527b
fix: onboarding stage not shown ( #7782 )
...
fix AF-1199
2024-08-08 03:58:11 +00:00
pengx17
00ee2a8852
fix(electron): always show traffic light for mac ( #7773 )
...
fix AF-1209, fix PD-1550
2024-08-07 08:44:35 +00:00
pengx17
ae9381c36d
feat: allow opening new tab for some navigation buttons ( #7764 )
...
fix AF-1010
2024-08-07 06:43:10 +00:00
pengx17
b5e543c406
feat(electron): mouse middle click to close tab ( #7759 )
...
fix AF-1200
2024-08-07 05:19:45 +00:00
pengx17
c2cf331ff7
fix(electron): fix tab view blink issue on open new tab ( #7748 )
...
fix AF-1197
2024-08-06 15:57:40 +00:00
pengx17
ca7c221d23
fix(electron): onboarding not shown ( #7753 )
...
fix AF-1199
2024-08-06 07:54:32 +00:00
pengx17
a03831f2a2
fix(electron): whitescreen issue ( #7742 )
...
1. non-blurred mode whitescreen issue
2. should not close tab with cmd+w for pinned tabs
2024-08-05 14:09:22 +00:00
pengx17
0d7de67e01
refactor(electron): reduce the number of listeners for ipc ( #7740 )
...
previously there are quite a lot of api/events handlers registered on ipcMain/ipcRenderer. After this PR, the number should be significantly reduced, which will benefit performance.
2024-08-05 13:33:31 +00:00
pengx17
9f57ed5e84
fix(electron): find in page input border blink issue ( #7737 )
2024-08-05 09:27:21 +00:00
pengx17
5050418c1a
fix(electron): app ghosting issue when quickly opening new tabs ( #7736 )
...
fix PD-1519
2024-08-05 08:51:11 +00:00
pengx17
5ab1210c9c
fix(electron): drop indicator position ( #7734 )
2024-08-05 08:03:13 +00:00
pengx17
51848ff6c3
fix(electron): allow close pinned tab ( #7732 )
2024-08-05 08:03:12 +00:00
pengx17
5f52547d9e
fix(electron): tab title/icon default state ( #7731 )
2024-08-05 07:39:51 +00:00
pengx17
561fa46232
fix(electron): add i18n setup for shell ( #7728 )
...

2024-08-05 06:52:14 +00:00
pengx17
51ca7657d8
feat(electron): new tab/split view entries ( #7708 )
...
fix AF-1146
2024-08-05 05:37:50 +00:00
pengx17
e3878ae8bf
build(electron): nightly build issue for windows ( #7649 )
...
ref https://github.com/toeverything/AFFiNE/actions/runs/10156494874/job/28085093900
2024-08-05 03:28:02 +00:00
pengx17
c0c5c83dad
fix(electron): should activate the target tab when closing other tabs ( #7704 )
...
fix PD-1520
2024-08-05 03:11:55 +00:00
pengx17
cbdcfdc2d8
fix(electron): duplicate tab views issue ( #7703 )
...
fix PD-1523
2024-08-05 03:11:52 +00:00
pengx17
741ff2379e
fix(electron): reload view in tab context menu issue ( #7702 )
...
fix PD-1524
2024-08-05 03:11:50 +00:00
pengx17
9307acf0de
fix(core): ctrl/cmd + click on add page button opens in new tab ( #7701 )
...
fix PD-1521
2024-08-05 03:11:47 +00:00
pengx17
0468355593
test(electron): adjust expect timeout for CI ( #7707 )
2024-08-05 03:11:44 +00:00
pengx17
854718db0e
test(electron): enable trace file for desktop tests ( #7692 )
...
<div class='graphite__hidden'>
<div>🎥 Video uploaded on Graphite:</div>
<a href="https://app.graphite.dev/media/video/T2klNLEk0wxLh4NRDzhk/e8d87ee7-cea6-4188-80a7-1a64f6c74eca.webm ">
<img src="https://app.graphite.dev/api/v1/graphite/video/thumbnail/T2klNLEk0wxLh4NRDzhk/e8d87ee7-cea6-4188-80a7-1a64f6c74eca.webm ">
</a>
</div>
<video src="https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/T2klNLEk0wxLh4NRDzhk/e8d87ee7-cea6-4188-80a7-1a64f6c74eca.webm ">e02e866a6496b210b8883798d82783d8.webm</video>
one failed run but no valuable result
2024-08-02 04:07:33 +00:00
pengx17
bfff10e25e
feat(electron): app tabs dnd ( #7684 )
...
<div class='graphite__hidden'>
<div>🎥 Video uploaded on Graphite:</div>
<a href="https://app.graphite.dev/media/video/T2klNLEk0wxLh4NRDzhk/cd84e155-9f2e-4d12-a933-8673eb6bc6cb.mp4 ">
<img src="https://app.graphite.dev/api/v1/graphite/video/thumbnail/T2klNLEk0wxLh4NRDzhk/cd84e155-9f2e-4d12-a933-8673eb6bc6cb.mp4 ">
</a>
</div>
<video src="https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/T2klNLEk0wxLh4NRDzhk/cd84e155-9f2e-4d12-a933-8673eb6bc6cb.mp4 ">Kapture 2024-07-31 at 19.39.30.mp4</video>
fix AF-1149
fix PD-1513
fix PD-1515
2024-08-02 02:02:03 +00:00
pengx17
07409b8a91
refactor(electron): tab title/icon update logic ( #7675 )
...
fix AF-1122
fix AF-1136
2024-08-01 16:43:18 +00:00
pengx17
10e78d617e
build(electron): re-enable windows signing ( #7682 )
...
ref https://github.com/toeverything/AFFiNE/pull/7645
2024-07-31 10:00:19 +00:00
pengx17
280e24934a
fix(electron): window theme issue after exiting presentation ( #7671 )
2024-07-31 07:03:32 +00:00
pengx17
6b8f99c013
fix: using width atom for syncing app headers position ( #7666 )
...
may use global state to replace these sidebar state atoms
fix AF-1109
2024-07-31 07:03:30 +00:00
pengx17
812fdd27b5
fix: tab label overflow style when there is only one tab ( #7665 )
...
before

after

2024-07-31 07:03:28 +00:00
pengx17
cd823fe118
fix(electron): app flicker issue ( #7663 )
...
fix AF-1117
2024-07-30 14:19:10 +00:00
pengx17
ea7066d02c
fix: icon color active style ( #7656 )
...
fix PD-1500
2024-07-30 11:51:17 +00:00
pengx17
d80c80ecdd
fix: remove shadow for bordered main container ( #7655 )
...
fix PD-1498
2024-07-30 11:38:23 +00:00
pengx17
63e8729da4
build(electron): skip signing for windows ( #7645 )
...
fix AF-1133
2024-07-30 04:56:47 +00:00
pengx17
4a2d400087
chore(electron): remove unused ipc code ( #7636 )
...
fix AF-1120
2024-07-30 04:12:06 +00:00
pengx17
157cc97a65
test(electron): add test cases for electron tabs ( #7635 )
...
fix AF-1000
2024-07-29 11:05:24 +00:00
pengx17
1efc1d0f5b
feat(electron): multi tabs support ( #7440 )
...
use https://www.electronjs.org/docs/latest/api/web-contents-view to serve different tab views
added tabs view manager in electron to handle multi-view actions and events.
fix AF-1111
fix AF-999
fix PD-1459
fix AF-964
PD-1458
2024-07-29 11:05:22 +00:00
Peng Xiao
d168128174
fix(core): workaround for center peek styles ( #7532 )
2024-07-18 11:43:42 +08:00
pengx17
15042394be
chore: expose FrameworkEvent ( #7500 )
...
fix the following ts error

2024-07-15 05:29:53 +00:00
pengx17
7a35b78772
fix: telemetry property names ( #7468 )
2024-07-11 02:35:39 +00:00
pengx17
86218d87c2
chore: revert back electron to v30 ( #7453 )
2024-07-09 03:50:13 +00:00
pengx17
8dfa601771
chore: populate page prop for mixpanel ( #7425 )
2024-07-05 07:45:39 +00:00
pengx17
5c1f78afd4
fix: invalid date handling ( #7422 )
...
fix AF-1049
2024-07-04 07:11:19 +00:00
pengx17
cc7740d8d3
fix: some regression issues on quick search refactor ( #7410 )
...
- fix PD-1370. doc link resolve issue on pasting
- fix AF-1029
- implement doc creation in doc search
added two test cases to cover the above two issues.
2024-07-03 03:24:50 +00:00
pengx17
10df1fb4b7
fix: menu in peek view content not scrollable issue ( #7412 )
...
when using [dialog.overlay](https://github.com/radix-ui/primitives/blob/main/packages/react/dialog/src/Dialog.tsx#L203-L211
), whole app is affected by [react-scroll library](https://github.com/theKashey/react-remove-scroll/blob/8923c513d269190162eb4678c1b80137f5998679/src/SideEffect.tsx#L131-L134
):
In the current implementation, only the contents in the dialog content will be scrollable and cannot be configured in current API.
This PR introduces a simple div overlay to get rid of this issue.
fix BS-696
2024-07-03 02:58:41 +00:00
pengx17
fc729d6a32
fix: hide find in page command in cmdk ( #7413 )
2024-07-02 15:48:24 +00:00
pengx17
ef7ba273ab
fix: copy share link to clipboard command display issue ( #7411 )
...
fix AF-1027
2024-07-02 15:28:30 +00:00
pengx17
2a6ea3c9c6
feat(core): allow keyboard navigation in tags inline editor ( #7378 )
...
fix AF-966
- Allow using arrowup/down to navigate the tag list candidates; press enter to add the currently focused tag option;
- Allow using arrowleft/right to navigate the inline tag list (selected) and use backspace to delete focused tag.
2024-07-02 14:25:51 +00:00
Peng Xiao
8c4a42f0e6
fix: cmd-k keybinding not show when editor input is active ( #7398 )
2024-07-01 19:31:36 +08:00
pengx17
34b6a3bf1f
fix: escape key handling compatibility issue with blocksuite ( #7365 )
...
fix PD-1347
See
https://github.com/radix-ui/primitives/blob/main/packages/react/use-escape-keydown/src/useEscapeKeydown.tsx#L19-L20
This behavior in radix-ui is not possible to be prevented since escape keydown is bound to document with capturing, unless dialogs in blocksuite is also implemented with radix-ui.
2024-06-28 06:21:36 +00:00
pengx17
4f07a2cc2a
fix(core): debounce doc update time update ( #7363 )
2024-06-27 10:37:43 +00:00
Peng Xiao
c8f418f9c5
fix: use sgtpooki/file-type for resolving image type ( #7326 )
2024-06-27 10:08:08 +00:00
Peng Xiao
2c92e97c48
fix: embed doc link rendering ( #7361 )
2024-06-27 17:58:33 +08:00
pengx17
81462fe000
refactor(core): view transition api for peek-view modal animation ( #7350 )
...
Remaining issue:
modal controls' position is not relatively moved to the parent container during transitioning.
2024-06-27 08:38:16 +00:00
pengx17
7baa260e97
refactor(core): image block use peek view workflow ( #7329 )
...
depends on https://github.com/toeverything/blocksuite/pull/7424
2024-06-26 07:49:25 +00:00
pengx17
f51da066a8
refactor: image preview component issues in center peek ( #7313 )
...
fix AF-948
- remove jotai
- every editor got its own image block modal
- image block uses center peek modal for animation and style
2024-06-25 07:34:18 +00:00
pengx17
2482c3c266
fix(electron): center peek for links in electron ( #7301 )
2024-06-21 09:27:13 +00:00
pengx17
e085b927f6
feat(core): peek view api enhancements ( #7288 )
...
upstream https://github.com/toeverything/blocksuite/pull/7390
fix AF-917
2024-06-21 07:38:42 +00:00
pengx17
a085e507b4
chore: add event tracking for billing ( #7277 )
...
fix AFF-1226
2024-06-20 03:33:07 +00:00
pengx17
5b0f56399c
fix(electron): remove duplicate change log open ( #7276 )
2024-06-19 13:43:46 +00:00
pengx17
006c260e5f
feat: add isNewDoc flag to quick search api ( #7232 )
2024-06-18 04:07:55 +00:00
pengx17
5307a55f8a
feat: add importWorkspaceSnapshot for testing ( #7224 )
2024-06-14 09:33:13 +00:00
pengx17
7062790488
fix: edgeless object creation events ( #7206 )
...
related to AFF-1154
upstream: https://github.com/toeverything/blocksuite/pull/7297
2024-06-14 08:46:09 +00:00
pengx17
33762423bb
fix: page reference should wrap ( #7218 )
2024-06-13 13:15:47 +00:00
pengx17
3189f42e76
chore: bump blocksuite ( #7217 )
...
## Features
- https://github.com/toeverything/BlockSuite/pull/7281 @CatsJuice
- https://github.com/toeverything/BlockSuite/pull/7280 @CatsJuice
- https://github.com/toeverything/BlockSuite/pull/7282 @EYHN
- https://github.com/toeverything/BlockSuite/pull/7306 @doouding
## Bugfix
- https://github.com/toeverything/BlockSuite/pull/7301 @fundon
- https://github.com/toeverything/BlockSuite/pull/7311 @Flrande
- https://github.com/toeverything/BlockSuite/pull/7310 @Saul-Mirone
- https://github.com/toeverything/BlockSuite/pull/7302 @fundon
- https://github.com/toeverything/BlockSuite/pull/7309 @doouding
- https://github.com/toeverything/BlockSuite/pull/7308 @L-Sun
- https://github.com/toeverything/BlockSuite/pull/7294 @fourdim
- https://github.com/toeverything/BlockSuite/pull/7299 @fundon
## Refactor
- https://github.com/toeverything/BlockSuite/pull/7296 @L-Sun
## Misc
- https://github.com/toeverything/BlockSuite/pull/7300 @fundon
- https://github.com/toeverything/BlockSuite/pull/7307 @Saul-Mirone
2024-06-13 13:15:43 +00:00
pengx17
a11cb6b0cd
fix: peek view modal controls animation ( #7180 )
2024-06-11 03:18:53 +00:00
pengx17
ab26e0f360
fix: render embed linked/synced doc as affine-reference for shared pages ( #7179 )
...
fix TOV-779
2024-06-07 11:42:48 +00:00
pengx17
3464e30229
fix: quick search placeholder for docs search ( #7175 )
...
fix AFF-1236
2024-06-07 07:42:16 +00:00
pengx17
17a5900575
fix: adjust peek view modal container styles ( #7173 )
...
fix AFF-1233, AFF-1234
2024-06-07 05:12:15 +00:00
pengx17
e6ec506226
fix: insert link action in quick search callback ( #7165 )
2024-06-07 04:39:20 +00:00
pengx17
79e1e8dd2f
fix: close peek view when clicking on reference link ( #7137 )
2024-06-06 15:40:22 +00:00
pengx17
f78416021a
chore: bump blocksuite ( #7163 )
...
## Features
- https://github.com/toeverything/BlockSuite/pull/7230 @akumatus
- https://github.com/toeverything/BlockSuite/pull/7220 @donteatfriedrice
- https://github.com/toeverything/BlockSuite/pull/7228 @donteatfriedrice
- https://github.com/toeverything/BlockSuite/pull/7216 @golok727
- https://github.com/toeverything/BlockSuite/pull/7224 @akumatus
- https://github.com/toeverything/BlockSuite/pull/7217 @pengx17
- https://github.com/toeverything/BlockSuite/pull/7144 @Flrande
## Bugfix
- https://github.com/toeverything/BlockSuite/pull/7231 @fourdim
- https://github.com/toeverything/BlockSuite/pull/7229 @fourdim
- https://github.com/toeverything/BlockSuite/pull/7222 @donteatfriedrice
- https://github.com/toeverything/BlockSuite/pull/7226 @L-Sun
- https://github.com/toeverything/BlockSuite/pull/7218 @fundon
- https://github.com/toeverything/BlockSuite/pull/7213 @donteatfriedrice
## Refactor
- https://github.com/toeverything/BlockSuite/pull/7212 @Flrande
## Misc
- https://github.com/toeverything/BlockSuite/pull/7223 @fundon
2024-06-06 12:04:07 +00:00
pengx17
b99b964a78
fix: temp fix for showing peek view modal for edgeless ( #7155 )
...
workaround for AFF-1200
2024-06-06 07:27:29 +00:00
pengx17
10297766b8
fix: adjust peek view modal container styles ( #7153 )
2024-06-06 07:27:25 +00:00
pengx17
7095ca1be6
fix: cleanup usePromptModal ( #7157 )
2024-06-06 06:29:47 +00:00
pengx17
5bd9c7a2a3
feat: allow search for doc without showing modal ( #7138 )
...
depends on https://github.com/toeverything/blocksuite/pull/7199#pullrequestreview-2095567573
fix TOV-858, fix AFF-1132
2024-06-06 06:29:41 +00:00
pengx17
1439d00b61
feat: add search doc modal ( #7136 )
2024-06-06 06:29:36 +00:00
pengx17
de81527e29
refactor: move command registry to frontend/core ( #7135 )
...
move command registeration related logic out of infra module.
2024-06-05 14:09:20 +00:00
pengx17
fa4e4c738a
chore: bump blocksuite ( #7152 )
...
## Features
- https://github.com/toeverything/BlockSuite/pull/7208 @pengx17
- https://github.com/toeverything/BlockSuite/pull/7207 @pengx17
- https://github.com/toeverything/BlockSuite/pull/7206 @regischen
- https://github.com/toeverything/BlockSuite/pull/7194 @akumatus
- https://github.com/toeverything/BlockSuite/pull/7209 @Saul-Mirone
## Bugfix
- https://github.com/toeverything/BlockSuite/pull/7205 @fundon
- https://github.com/toeverything/BlockSuite/pull/7211 @L-Sun
- https://github.com/toeverything/BlockSuite/pull/7210 @fundon
## Refactor
## Misc
- https://github.com/toeverything/BlockSuite/pull/7203 @fundon
Also added prompt implementation to fix type change issue

2024-06-05 09:33:18 +00:00
pengx17
616d7073c9
chore: bump bs ( #7146 )
...
## Features
- https://github.com/toeverything/BlockSuite/pull/7202 @Saul-Mirone
- https://github.com/toeverything/BlockSuite/pull/7200 @Saul-Mirone
- https://github.com/toeverything/BlockSuite/pull/7199 @Saul-Mirone
## Bugfix
- https://github.com/toeverything/BlockSuite/pull/7201 @L-Sun
- https://github.com/toeverything/BlockSuite/pull/7197 @zzj3720
- https://github.com/toeverything/BlockSuite/pull/7195 @fourdim
- https://github.com/toeverything/BlockSuite/pull/7179 @fundon
- https://github.com/toeverything/BlockSuite/pull/7191 @fundon
- https://github.com/toeverything/BlockSuite/pull/7190 @L-Sun
- https://github.com/toeverything/BlockSuite/pull/7189 @golok727
- https://github.com/toeverything/BlockSuite/pull/7187 @regischen
## Refactor
- https://github.com/toeverything/BlockSuite/pull/7178 @golok727
- https://github.com/toeverything/BlockSuite/pull/7132 @L-Sun
## Misc
- https://github.com/toeverything/BlockSuite/pull/7183 @fourdim
2024-06-04 15:24:11 +00:00
pengx17
03be1d66f9
feat: add feature flag for peek view ( #7122 )
2024-05-31 12:01:27 +00:00
pengx17
002b9e80f8
feat: e2e tests for peek view ( #7112 )
...
fix AFF-1163
2024-05-31 10:28:42 +00:00
pengx17
ea0059fa1b
feat: center peek view ( #7073 )
...
<div class='graphite__hidden'>
<div>🎥 Video uploaded on Graphite:</div>
<a href="https://app.graphite.dev/media/video/T2klNLEk0wxLh4NRDzhk/7380c06e-880e-424a-9204-8cfb5e924978.mp4 ">
<img src="https://app.graphite.dev/api/v1/graphite/video/thumbnail/T2klNLEk0wxLh4NRDzhk/7380c06e-880e-424a-9204-8cfb5e924978.mp4 ">
</a>
</div>
<video src="https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/T2klNLEk0wxLh4NRDzhk/7380c06e-880e-424a-9204-8cfb5e924978.mp4 ">Kapture 2024-05-30 at 19.42.46.mp4</video>
2024-05-31 10:28:37 +00:00
pengx17
1b633b5135
chore: update prompt ( #7117 )
...
fix AFF-1198
2024-05-31 10:04:42 +00:00
pengx17
fe38a3780f
chore: bump blocksuite ( #7113 )
...
## Features
- https://github.com/toeverything/BlockSuite/pull/7177 @pengx17
- https://github.com/toeverything/BlockSuite/pull/7174 @donteatfriedrice
## Bugfix
- https://github.com/toeverything/BlockSuite/pull/7175 @pengx17
- https://github.com/toeverything/BlockSuite/pull/7180 @fundon
2024-05-31 05:42:43 +00:00
pengx17
da3cbc69cf
fix: patch service syntax ( #7080 )
...
Not sure if there is a better pattern like "macros" that can make this more generic. 🤡
also added notify impl to notification service for bs
https://github.com/toeverything/blocksuite/pull/7160
2024-05-30 11:46:17 +00:00
pengx17
d7ced4a5d9
chore: bump blocksuite ( #7107 )
...
## Features
- https://github.com/toeverything/BlockSuite/pull/7161 @regischen
- https://github.com/toeverything/BlockSuite/pull/7142 @pengx17
- https://github.com/toeverything/BlockSuite/pull/7166 @Saul-Mirone
- https://github.com/toeverything/BlockSuite/pull/7151 @donteatfriedrice
- https://github.com/toeverything/BlockSuite/pull/7164 @pengx17
- https://github.com/toeverything/BlockSuite/pull/7163 @donteatfriedrice
- https://github.com/toeverything/BlockSuite/pull/7156 @donteatfriedrice
- https://github.com/toeverything/BlockSuite/pull/7160 @pengx17
- https://github.com/toeverything/BlockSuite/pull/7158 @golok727
- https://github.com/toeverything/BlockSuite/pull/7157 @pengx17
- https://github.com/toeverything/BlockSuite/pull/7154 @Saul-Mirone
- https://github.com/toeverything/BlockSuite/pull/7106 @fundon
- https://github.com/toeverything/BlockSuite/pull/7136 @fourdim
## Bugfix
- https://github.com/toeverything/BlockSuite/pull/7171 @zzj3720
- https://github.com/toeverything/BlockSuite/pull/7169 @fundon
- https://github.com/toeverything/BlockSuite/pull/7165 @lawvs
## Refactor
- https://github.com/toeverything/BlockSuite/pull/7162 @regischen
- https://github.com/toeverything/BlockSuite/pull/7153 @akumatus
- https://github.com/toeverything/BlockSuite/pull/7149 @golok727
- https://github.com/toeverything/BlockSuite/pull/7152 @Flrande
## Misc
- https://github.com/toeverything/BlockSuite/pull/7170 @Saul-Mirone
- https://github.com/toeverything/BlockSuite/pull/7155 @fundon
2024-05-30 06:39:17 +00:00
pengx17
2ca77d9170
refactor: find in page ( #7086 )
...
- refactor rxjs data flow
- use canvas text to mitigate searchable search box input text issue
2024-05-28 06:19:53 +00:00
pengx17
8ed0ceb63e
fix: reset doc mode correctly ( #7071 )
...
it looks like a typo to me, but no obvious issue has been reported related to it?
2024-05-27 06:26:03 +00:00
pengx17
13b51c7b22
build: enable new decorator for swc ( #7070 )
...
bs now has migrated to stage 3 decorators. to enable running affine locally with debugging blocksuite, we need to [turn this on](https://swc.rs/docs/configuration/compilation#jsctransformdecoratorversion ).
Question:
It seems affine core code already uses stage 3 decorators, however we do not have an issue without this flag since we haven't used class field decorators that uses the `accessor` keyword?
2024-05-27 05:22:28 +00:00
pengx17
88d4351c28
feat: provide notification to bs ( #7002 )
...
upstream https://github.com/toeverything/blocksuite/pull/7101
fix AFF-1120
2024-05-24 10:36:50 +00:00
pengx17
5e1528b50b
fix: export then add test case ( #7024 )
2024-05-24 04:49:08 +00:00
pengx17
fdc33bd3ec
refactor(electron): always save one update to electron ( #7009 )
...
not sure do we still need this one
2024-05-22 05:03:49 +00:00
pengx17
96cdb041c6
fix(electron): incorrect db rows docId when doing trim ( #7008 )
2024-05-21 13:53:16 +00:00
pengx17
bd5023d4ab
fix(electron): remove all migration code in electron ( #6969 )
...
The migration code import blocksuite in the dependency tree and prevent affine from running because electron's helper process tries to run browser only code that is part of the side effect of `@blocksuite/blocks`.

[The side effect free trick in esbuild config](https://github.com/toeverything/AFFiNE/pull/6415 ) does not clean up these - not sure why.
It has been already 6 month since we introduced the migration code in DB.
Instead of finding out the real root cause, I think may be better to remove the migration code completely so that no blocksuite code will be in the import paths in helper.js.

2024-05-17 03:01:14 +00:00
pengx17
3cca879a83
refactor(electron): use sqlite to store server clock & sync meta ( #6957 )
...
After this PR, IDB should not be used in desktop any longer.
2024-05-16 06:31:05 +00:00
pengx17
27af9b4d1a
perf(electron): add index for updates ( #6951 )
...

Above image shows the performance on querying a 20k rows of updates table, which is super slow at 150+ms. After adding index for doc_id the performance should be greatly improved.
After:

fix TOV-866
2024-05-16 06:30:53 +00:00
pengx17
dd45c80cc4
chore: track doc create action in bs editor ( #6915 )
...
fix TOV-855
added shape element create & doc create event tracking in blocksuite editor.
What's still missing:
the control (source) that triggered whiteboard element creation, i.e., from canvas dbclick, dnd or pasting.
2024-05-14 05:35:08 +00:00
pengx17
3e23878e0f
feat: add more tracking events ( #6866 )
...
Added most tracking events
what is missing:
- still need a way to track events in blocksuite
- some events may not 100% accurate of the one defined in the PRD
2024-05-13 03:36:32 +00:00