pengx17
d96cc097c2
fix(core): db properties ui issues ( #8638 )
...
fix AF-1562
fix BS-1711
2024-10-31 04:46:50 +00:00
pengx17
a791481ac8
refactor(electron): move electron-api to framework ( #8601 )
...
fix AF-1394
2024-10-30 09:16:20 +00:00
pengx17
835fdc33c0
feat(core): add open link in app to doc menu ( #8597 )
...
add "open in desktop app" menu item for editor
fix AF-1547
2024-10-29 13:55:13 +08:00
pengx17
81029db6ce
feat: allow peek view to be closed by the caller && bump bs ( #8542 )
...
depends on https://github.com/toeverything/blocksuite/pull/8558
fix BS-1570
2024-10-28 09:16:35 +00:00
pengx17
8f694aceb7
fix(core): redirect to old page after login via 404 page ( #8588 )
...
fix AF-1487
When visit a cloud worskapce page without login, we should allow the user to redirect back to that page after login.
The logic is only added for this case, including login with email magin link + google login. Login with password is already working without changes.
2024-10-25 03:43:00 +00:00
pengx17
2fc27f41f0
fix(core): dont show config properties in peek view ( #8594 )
...
view service is undefined in center peek.
2024-10-24 09:18:13 +00:00
pengx17
4b6c4ed546
feat(core): doc database properties ( #8520 )
...
fix AF-1454
1. move inline tags editor to components
2. add progress component
3. adjust doc properties styles for desktop
4. subscribe bs database links and display in doc info
5. move update/create dates to doc info
6. a trivial e2e test
<div class='graphite__hidden'>
<div>🎥 Video uploaded on Graphite:</div>
<a href="https://app.graphite.dev/media/video/T2klNLEk0wxLh4NRDzhk/eed266c1-fdac-4f0e-baa9-4aa00d14a2e8.mp4 ">
<img src="https://app.graphite.dev/api/v1/graphite/video/thumbnail/T2klNLEk0wxLh4NRDzhk/eed266c1-fdac-4f0e-baa9-4aa00d14a2e8.mp4 ">
</a>
</div>
<video src="https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/T2klNLEk0wxLh4NRDzhk/eed266c1-fdac-4f0e-baa9-4aa00d14a2e8.mp4 ">10月23日.mp4</video>
2024-10-24 07:38:45 +00:00
pengx17
8cbb7195fc
fix(electron): offline mode description ( #8586 )
...
fix AF-1446
2024-10-24 03:07:42 +00:00
pengx17
72e1489c62
fix(electron): tab max width ( #8507 )
...
fix PD-1727
2024-10-16 08:32:27 +00:00
pengx17
c0601e04fb
fix(electron): shell missing i18n init ( #8499 )
2024-10-15 10:30:03 +00:00
pengx17
c484cad7b2
fix(mobile): handle touch event correctly ( #8496 )
...
related:
radix-ui has a hack for dealing with touch event on mobile devices. we may not want to stop propagation for event that is not being handled, even for links
https://github.com/radix-ui/primitives/blob/74b182b401c8ca0fa5b66a5a9a47f507bb3d5adc/packages/react/dismissable-layer/src/DismissableLayer.tsx#L243-L261
2024-10-15 05:56:23 +00:00
pengx17
3d3864fa5b
build(electron): use live origin http protocol instead of file:// ( #8464 )
...
fix AF-1428
2024-10-15 05:42:52 +00:00
pengx17
96d3692b35
test(electron): electron tests on ubuntu 24 ( #8492 )
...
Operating System
Ubuntu
24.04.1
LTS
Github ubuntu-latest now points to 24.04.1
https://github.com/actions/runner-images/issues/10636#issuecomment-2377530635
related possible fix https://github.com/electron/electron/issues/17972#issuecomment-487369441
2024-10-14 10:20:17 +00:00
pengx17
7fdc30d956
chore(core): i18n postinstall script ( #8472 )
...

2024-10-11 04:07:02 +00:00
pengx17
99182167e7
chore(core): i18n dev issue ( #8474 )
2024-10-11 03:54:49 +00:00
pengx17
06e059db88
build(electron): flatpak support for linux ( #8439 )
...
some issues
- app icon not showing correctly
- missing wayland support
- runtime is outdated
related to
- https://github.com/toeverything/AFFiNE/issues/3272
- https://github.com/toeverything/AFFiNE/issues/5985
- https://github.com/toeverything/AFFiNE/issues/6642
2024-10-10 09:51:33 +00:00
pengx17
46321b72ba
build(electron): deb distro support ( #8457 )
...
Add simple .deb support.
Note:
1. auto updater not tested
2. no wayland support
3. may requires --no-sandbox to run
related to https://github.com/toeverything/AFFiNE/issues/3272

2024-10-10 09:51:32 +00:00
pengx17
ccd1ad617c
fix(electron): missing sidebar module for shell ( #8447 )
2024-10-08 07:18:04 +00:00
pengx17
a3dc074574
feat: ctrl click to open embeded doc in new tab ( #8401 )
...
fix AF-1176
depends on https://github.com/toeverything/blocksuite/pull/8478
2024-10-08 02:06:59 +00:00
pengx17
f5c49a6ac9
fix(electron): screen resize sometimes does not work well after maximize ( #8413 )
...
fix AF-1460
2024-10-07 11:21:57 +00:00
pengx17
6b263d1441
feat(electron): ctrl+= to zoomin on linux ( #8412 )
2024-10-07 10:56:49 +00:00
pengx17
abd57484ba
fix: incorrect app sidebar fallback ( #8392 )
...
fix AF-1435
2024-09-25 10:15:26 +00:00
pengx17
76ff56a716
feat: add open info button to doc center peek ( #8388 )
...
fix AF-1229

2024-09-25 09:11:25 +00:00
pengx17
d0050a268a
build: fine tune swc config ( #8384 )
...
1. only run react related swc transforms for tsx files
2. exclude ts from ReactRefreshWebpackPlugin
2024-09-25 04:39:24 +00:00
pengx17
e839947dd5
fix(electron): enable WAL mode for sqlite ( #8336 )
...
fix AF-1015
2024-09-25 04:06:03 +00:00
pengx17
d0f04d22f5
fix(core): fix preview mode ( #8349 )
2024-09-24 02:17:08 +00:00
pengx17
a430367c36
fix(electron): remove active tab shadow ( #8284 )
...
fix AF-1390
2024-09-24 10:05:58 +08:00
pengx17
6110767fa8
fix(electron): workaround for unstable e2e ( #8357 )
2024-09-24 01:54:09 +00:00
pengx17
503e020412
fix(electron): cookie redirecting issue ( #8347 )
...
fix AF-1416
2024-09-23 04:05:04 +00:00
Peng Xiao
c26120ae36
fix(core): bring back menu offset ( #8327 )
2024-09-20 15:36:43 +08:00
pengx17
f6cd029c18
fix(core): add switch button to switch-to-edgeless notification ( #8300 )
...
fix AF-1359
2024-09-19 06:37:21 +00:00
pengx17
a88e82a534
fix(core): collection filter list animation ( #8299 )
...
fix AF-1373
2024-09-19 06:37:19 +00:00
pengx17
5ae433b009
fix(electron): shell skeleton style ( #8296 )
2024-09-18 09:54:14 +00:00
pengx17
917640c5b0
fix(electron): sentry is not enabled correctly in electron ( #8286 )
...
fix AF-1036
2024-09-18 08:07:58 +00:00
pengx17
70fe7cfec4
fix(core): center peek width styles ( #8276 )
...
fix AF-1369
2024-09-18 05:22:10 +00:00
pengx17
ccd630a2b0
fix(electron): updater not working on startup ( #8274 )
2024-09-18 04:16:54 +00:00
pengx17
7a26c76e53
fix(electron): do not always enable devtools detach mode ( #8273 )
2024-09-18 04:16:51 +00:00
pengx17
8d4bda1dcc
fix(core): enable cloud button should not take space by default ( #8270 )
...
before
<div class='graphite__hidden'>
<div>🎥 Video uploaded on Graphite:</div>
<a href="https://app.graphite.dev/media/video/T2klNLEk0wxLh4NRDzhk/6d818363-30df-4dee-84c1-69eee828f454.mp4 ">
<img src="https://app.graphite.dev/api/v1/graphite/video/thumbnail/T2klNLEk0wxLh4NRDzhk/6d818363-30df-4dee-84c1-69eee828f454.mp4 ">
</a>
</div>
<video src="https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/T2klNLEk0wxLh4NRDzhk/6d818363-30df-4dee-84c1-69eee828f454.mp4 ">20240917-0548-21.8568797.mp4</video>
---
after
<div class='graphite__hidden'>
<div>🎥 Video uploaded on Graphite:</div>
<a href="https://app.graphite.dev/media/video/T2klNLEk0wxLh4NRDzhk/69c68a4d-d2ea-4439-9c3d-f4a328d76927.mp4 ">
<img src="https://app.graphite.dev/api/v1/graphite/video/thumbnail/T2klNLEk0wxLh4NRDzhk/69c68a4d-d2ea-4439-9c3d-f4a328d76927.mp4 ">
</a>
</div>
<video src="https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/T2klNLEk0wxLh4NRDzhk/69c68a4d-d2ea-4439-9c3d-f4a328d76927.mp4 ">20240917-0549-00.5175618.mp4</video>
2024-09-18 02:10:46 +00:00
pengx17
d2bd39a1c7
fix(core): importing template with default mode ( #8250 )
2024-09-13 12:54:21 +00:00
pengx17
0a585a14a6
fix(core): reference node word break ( #8236 )
...
before:

---
after:

2024-09-13 10:54:22 +00:00
pengx17
2ac4a846f7
feat(core): copy event for image ( #8219 )
...
fix AF-1383
2024-09-13 10:28:28 +00:00
pengx17
b1e61245ee
fix: button tooltip should not show on showing image preview ( #8224 )
...
when showing image preview in modal, the following code
https://github.com/radix-ui/primitives/blob/660060a765634e9cc7bf4513f41e8dabc9824d74/packages/react/focus-scope/src/FocusScope.tsx#L143 will find the first tabbable element and focus, which will trigger the button's tooltip
Adding tabIndex to the image to fix this issue
2024-09-13 10:11:18 +00:00
pengx17
3c1cd6b648
fix(electron): pinned tab style ( #8232 )
...
fix PD-1687
2024-09-13 09:40:27 +00:00
pengx17
df87300a3f
chore(electron): upgrade electron to v32 ( #8235 )
...
workaround provided by https://github.com/electron/electron/issues/43556
2024-09-13 04:23:10 +00:00
pengx17
4b920a867c
fix(electron): app fallback styles ( #8225 )
2024-09-12 11:21:29 +00:00
pengx17
d2b482bcb2
fix(electron): incorrect path to root dir ( #8220 )
2024-09-12 09:00:18 +00:00
pengx17
24bf1beac8
fix(electron): devtools open in detach mode ( #8200 )
...
fix AF-1380
2024-09-12 03:20:19 +00:00
pengx17
fb76fdfca3
fix(core): menu not scrollable when opening in modal ( #8179 )
...
fix AF-1360
When menu (with modal = false) is rendered in Modal, the [RemoveScroll utility wrapped by Modal](https://github.com/radix-ui/primitives/blob/660060a765634e9cc7bf4513f41e8dabc9824d74/packages/react/dialog/src/Dialog.tsx#L203 ) will prevent menu from scrolling.
The reason why menu is scrollable within a dialog is because it is also wrapped a RemoveScroll [when modal is on. ](https://github.com/radix-ui/primitives/blob/660060a765634e9cc7bf4513f41e8dabc9824d74/packages/react/menu/src/Menu.tsx#L305 )
In this fix, added a `useWithinModal` utility hook so that menu will automatically assign noportal mode for menu when it is rendered inside of a modal.
2024-09-10 06:09:00 +00:00
pengx17
487154ed3b
fix(core): nav item line-height with Emoji ( #8148 )
2024-09-06 11:28:22 +00:00
pengx17
cd5c512a5f
fix(electron): auto update check on windows ( #8137 )
...
turns out activate event is only available on macos
2024-09-06 09:41:25 +00:00
pengx17
d089470bbf
feat(electron): electron shell skeleton ( #8127 )
...
fix AF-1331
<div class='graphite__hidden'>
<div>🎥 Video uploaded on Graphite:</div>
<a href="https://app.graphite.dev/media/video/T2klNLEk0wxLh4NRDzhk/e09203aa-f143-42f8-bd39-e5078d07ada2.mp4 ">
<img src="https://app.graphite.dev/api/v1/graphite/video/thumbnail/T2klNLEk0wxLh4NRDzhk/e09203aa-f143-42f8-bd39-e5078d07ada2.mp4 ">
</a>
</div>
<video src="https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/T2klNLEk0wxLh4NRDzhk/e09203aa-f143-42f8-bd39-e5078d07ada2.mp4 ">1.mp4</video>
missing
- per split view skeleton
- per route skeleton
2024-09-06 09:25:20 +00:00
pengx17
d3f50a2e38
feat(core): expose skip login button to web ( #8115 )
...

Allow user skip login page on client
2024-09-05 14:33:22 +00:00
pengx17
7621758c76
fix(electron): tune offline mode filter ( #8113 )
2024-09-05 10:08:56 +00:00
pengx17
f7816a5b28
chore(electron): downgrade electron to v31 ( #8111 )
2024-09-05 09:49:35 +00:00
pengx17
d5ecf503c2
fix(mobile): journal button should not show for edgeless ( #8110 )
2024-09-05 09:16:26 +00:00
pengx17
2a2a969394
feat(mobile): add share button ( #8109 )
2024-09-05 09:16:25 +00:00
pengx17
b680c1839b
fix(core): edit tag should not jump to its detail ( #8070 )
...
fix AF-1324
2024-09-05 02:46:07 +00:00
pengx17
1cac2f6ccd
feat(core): add journal navigation tracking ( #8046 )
...
fix AF-1314
2024-09-05 02:31:58 +00:00
pengx17
93ae724c66
chore(electron): downgrade electron to v31 ( #8095 )
...
fix AF-1337
it seems the way how we load web worker file in electron no longer works.
created an upstream issue in https://github.com/electron/electron/issues/43556
2024-09-05 01:30:26 +00:00
pengx17
989e8830f7
fix(mobile): workspace selector not close on click outside ( #8096 )
2024-09-04 16:57:57 +00:00
pengx17
0ae5673aaa
feat(electron): add offline mode ( #8086 )
...
fix AF-1334
It seems `session.enableNetworkEmulation({ offline: true });` does not work - https://github.com/electron/electron/issues/21250
implemented using an in-house solution.
When turned on:

2024-09-04 10:46:43 +00:00
pengx17
01e6370dd2
fix(electron): use CTRL+= to zoom in on windows ( #8081 )
...
fix AF-1291
2024-09-04 04:23:55 +00:00
pengx17
2ac803c73f
feat(mobile): sign in page ( #8039 )
...
fix AF-1237
2024-09-04 03:58:54 +00:00
pengx17
7dde509970
fix(core): page info modal styles ( #8067 )
2024-09-03 12:46:37 +00:00
pengx17
d00f86c3ce
fix(core): handle modal overlay click event correctly ( #8063 )
...
1. overlay click + hide is brought back. this is because modal (ormobile menu)'s `onPointerDownOutside` is bound to document.body. Code in https://github.com/toeverything/AFFiNE/blob/e58af08f6325c7c2c6cbd3325e954fd7d2ab6859/packages/frontend/core/src/modules/explorer/views/tree/node.tsx#L353-L356 will stop the event from bubbling to the document element.
2. when Menu's set to modal=true, the parent is set to pointer-events: none as well. changed menu to modal false instead.

2024-09-03 12:00:00 +00:00
pengx17
ae3b13bfb4
fix(electron): only the active view should respond to CMD+N ( #8068 )
2024-09-03 11:48:06 +00:00
pengx17
197996de31
fix(mobile): handle menu ref better ( #8051 )
2024-09-03 01:59:45 +00:00
pengx17
e1310b65cd
fix(mobile): change how slider height is calculated ( #8049 )
2024-09-02 14:10:37 +00:00
pengx17
61e37d8873
test(mobile): basic e2e tests ( #8031 )
...
fix AF-1289
1. tested on 'webkit'
2. a few baseline test cases
2024-09-02 10:20:24 +00:00
pengx17
4caf32629a
fix(core): slider thumb offset ( #8041 )
...
fix AF-1307
2024-09-02 07:19:16 +00:00
pengx17
697f2c6520
fix(core): remove modal default overlay onclick ( #8035 )
...
fix AF-1300
overlay click is already handled in `handlePointerDownOutSide`. adding onclick to overlay will cause issues on closing nested menus.
2024-09-02 02:59:18 +00:00
pengx17
df34e2cdf7
fix(mobile): close menu when detail page navigate away ( #8027 )
2024-08-31 04:42:32 +00:00
pengx17
4ff6fbd052
fix(core): hairline boarders for divider ( #8021 )
2024-08-30 02:31:28 +00:00
pengx17
f544e69d02
fix(mobile): modal styles on mobile ( #8023 )
...
<div class='graphite__hidden'>
<div>🎥 Video uploaded on Graphite:</div>
<a href="https://app.graphite.dev/media/video/T2klNLEk0wxLh4NRDzhk/92c0cc55-1f75-42b7-a83f-4ffa6cf205ad.mp4 ">
<img src="https://app.graphite.dev/api/v1/graphite/video/thumbnail/T2klNLEk0wxLh4NRDzhk/92c0cc55-1f75-42b7-a83f-4ffa6cf205ad.mp4 ">
</a>
</div>
<video src="https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/T2klNLEk0wxLh4NRDzhk/92c0cc55-1f75-42b7-a83f-4ffa6cf205ad.mp4 ">20240829-1420-07.7370936.mp4</video>
2024-08-29 16:45:23 +00:00
pengx17
adf314d594
fix(mobile): adjust peek view style for mobile ( #8003 )
...

2024-08-29 16:45:22 +00:00
pengx17
7ae141bd9e
feat(mobile): add mobile detail page ( #7993 )
...
fix AF-1241
2024-08-29 16:45:22 +00:00
pengx17
f8e6f1f2b5
chore: add mobile scope ( #8020 )
2024-08-29 16:45:21 +00:00
pengx17
611925fa10
fix(electron): adjust app-tabs-header styles ( #7961 )
...



also fix PD-1631
2024-08-26 09:34:27 +00:00
pengx17
5e555b3807
fix(electron): adjust app-tabs-header styles ( #7947 )
...
fix AF-1171
2024-08-22 13:10:27 +00:00
pengx17
2f02f0da2b
fix(electron): should not send switchSplitView event when clicking on the active view ( #7944 )
2024-08-22 05:26:29 +00:00
pengx17
592150638e
feat(electron): switch to next/previous tab with Ctrl+Tab/Ctrl+Shift+Tab ( #7943 )
...
fix PD-1569
2024-08-22 04:46:25 +00:00
pengx17
5acf1b5309
feat: init mobile entry ( #7905 )
2024-08-21 13:17:35 +00:00
pengx17
9d42db56ca
chore: bump electron version ( #7922 )
2024-08-19 14:24:34 +00:00
pengx17
f3930a9262
chore(core): remove @storybook/test dep ( #7923 )
...
we no longer need "@storybook/test" and it indirectly has an incompatible prettier version 3.3.2 which differs from what we are using "3.3.3".
removing it to resolve this issue
2024-08-19 13:50:06 +00:00
pengx17
4a89b1a5dd
fix(electron): adjust tab styles ( #7919 )
...

fix AF-1261
2024-08-19 06:15:06 +00:00
pengx17
e0a91f63d3
fix(core): tag menu should not accept keyboard shortcut when renaming tag ( #7913 )
...
fix #7890 , fix PD-1603
2024-08-18 08:29:25 +00:00
pengx17
23c73243ab
chore(electron): re-enable sentry for electron ( #7898 )
...
related
https://github.com/toeverything/AFFiNE/pull/7001
2024-08-17 04:32:49 +00:00
pengx17
69c507fded
fix(electron): do not use async callback in onBeforeSendHeaders ( #7894 )
...
it seems using async callback for onBeforeSendHeaders may crash the app.
the main reason why it is async is to read the cookies from session.
fix AF-1172
2024-08-16 05:17:47 +00:00
pengx17
b57ce4646f
chore(electron): adjust log level ( #7887 )
2024-08-16 05:17:46 +00:00
pengx17
9af0e53ae2
fix(electron): header button not working on linux ( #7883 )
...
tested locally on windows/linux(vm)
2024-08-15 04:39:47 +00:00
pengx17
d5edadabe6
fix(electron): cmd+num not working on mac ( #7865 )
...
fix AF-1248
hidden menu group + acceleratorWorksWhenHidden does not work on mac
2024-08-14 04:14:16 +00:00
pengx17
d4065fee78
fix(electron): adjust app-tabs-header styles ( #7849 )
2024-08-13 08:06:30 +00:00
pengx17
d86f7f41dc
fix: center peek support open in new tab ( #7848 )
2024-08-13 07:52:03 +00:00
pengx17
a6169ab26a
fix: do not use globalShortcut for tab switching ( #7827 )
...
fix #7826
2024-08-11 07:56:47 +00:00
pengx17
d82f4b5461
fix: center peek responsiveness update ( #7814 )
...
fix PD-1407
2024-08-09 11:48:50 +00:00
pengx17
8209e84842
chore(electron): disable parallel execution of electron tests ( #7789 )
2024-08-09 07:33:16 +00:00
pengx17
fc19180451
fix(electron): missing collection name in tab header ( #7807 )
...
fix AF-1177
2024-08-09 07:02:38 +00:00
pengx17
009b5353b1
fix(electron): shell should import renderer css in dev ( #7805 )
2024-08-09 07:02:34 +00:00
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