Commit Graph
100 Commits
Author SHA1 Message Date
pengx17 fa82842cd7 fix(mobile): doc property styles (#8760)
fix AF-1582
fix AF-1671

- mobile doc info dialog styles
- added ConfigModal for editing property values in modal, including:
  - workspace properties: text, number, tags
  - db properties: text, number, label, link
2024-11-12 07:11:00 +00:00
pengx17 cc9a23e424 fix(core): revise open app card text (#8783)
fix AF-1669
2024-11-12 03:16:10 +00:00
pengx17 35f3fc7b5d feat(electron): spellcheck setting (#8730)
fix AF-1647
2024-11-11 13:03:33 +00:00
pengx17 b3749246f6 fix(core): do not delete tag on cancel (#8776) 2024-11-11 12:10:57 +00:00
pengx17 e6ef1dea51 fix(core): deleted tags property cannot be added back (#8761)
fix AF-1661
2024-11-11 02:48:04 +00:00
pengx17 c1ece15560 fix(core): close setting when workspace is deleted (#8747)
fix AF-1618
2024-11-08 10:50:13 +00:00
pengx17 727130ec97 fix(core): add open in app hint text (#8728)
fix AF-1625
2024-11-07 04:10:34 +00:00
pengx17 584d095895 fix(core): modal height issue (#8710)
fix AF-1616
2024-11-06 02:59:12 +00:00
pengx17 fcd4f8c4ff fix(electron): deep link handling in macos (#8713)
fix AF-1617
The issue is that handling deep link on opening new instance will access the screen module from electron too soon. Move the open call behind whenReady to mitigate the issue.
2024-11-06 02:02:56 +00:00
pengx17 029654f45e fix(electron): share page in electron issues (#8703)
fix AF-1592
fix AF-1612
2024-11-05 11:46:03 +00:00
pengx17 ef82b9d3e7 chore(core): tracking events for doc properties (#8651)
fix AF-1565
2024-11-05 11:30:57 +00:00
pengx17 684b676028 fix(core): adapt new database chip color scheme (#8697)
fix AF-1609
2024-11-05 08:33:57 +00:00
pengx17 e7732d0e18 fix(core): update prompt texts for opening new doc (#8696)
fix AF-1590
2024-11-05 07:31:00 +00:00
pengx17 8c650f7b43 test(core): add open in app test case (#8695)
fix AF-1496
2024-11-05 07:30:59 +00:00
pengx17 de7b1ff516 fix(core): do not show open-in-app in mobile web browser (#8694) 2024-11-04 12:33:10 +00:00
Peng Xiao 378c9eb73a fix(electron): active view sometimes does not get focused (#8683) 2024-11-04 08:34:11 +00:00
pengx17 fd7d112235 fix(core): open in app card wording (#8677) 2024-11-04 07:58:07 +00:00
Peng Xiao ecbf5a95fa fix: open in app card style (#8667) 2024-11-01 18:42:09 +08:00
pengx17 070f5fae49 fix(electron): deep link handling without running instance (#8661)
fix AF-1586
2024-11-01 07:23:38 +00:00
pengx17 33088500e4 fix(core): unnamed doc title of db properties (#8657) 2024-11-01 07:23:37 +00:00
pengx17 4f16e22f5b fix(electron): add missing configureAppThemeModule to shell (#8656) 2024-11-01 07:23:37 +00:00
pengx17 c915a3bcb5 revert(electron): revert http protocl in electron (#8655)
fix AF-1583
2024-11-01 06:33:27 +00:00
pengx17 51ffccbbb6 fix(core): do not redirect to open-page for open-in-app card (#8646) 2024-10-31 08:23:52 +00:00
pengx17 2b3b7057c5 fix(core): checkbox property styling and layout (#8645)
fix BS-1725
2024-10-31 07:31:52 +00:00
pengx17 0f8b273134 feat(core): open app in electron app entry (#8637)
fix PD-208
fix PD-210
fix PD-209
fix AF-1495
2024-10-31 06:16:32 +00:00
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)
![image.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/T2klNLEk0wxLh4NRDzhk/13bfc0cb-80a9-48de-bcb0-54c718c73fa8.png)
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

![image.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/T2klNLEk0wxLh4NRDzhk/279f031d-070a-43ef-be67-9acf2134355d.png)
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

![image](https://github.com/user-attachments/assets/3e7b43ad-43c6-4dfb-b737-5dffb1396b6b)
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:

![image.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/T2klNLEk0wxLh4NRDzhk/2320279b-9986-46a9-b3cf-d0272f2656aa.png)

---

after:
![image.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/T2klNLEk0wxLh4NRDzhk/8869024b-92fd-4afe-aa87-af730224a0d3.png)
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)
![image.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/T2klNLEk0wxLh4NRDzhk/634cce16-bba2-480f-9126-94b22a782a9a.png)

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:

![image.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/T2klNLEk0wxLh4NRDzhk/6805735b-1006-4e51-be46-c047b0f1a82c.png)
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.

![image.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/T2klNLEk0wxLh4NRDzhk/3e50281f-839d-4463-af00-dff2fce8202b.png)
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)
![image.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/T2klNLEk0wxLh4NRDzhk/c3a04128-0309-4df6-ab6d-0a5129483c73.png)
2024-08-29 16:45:22 +00:00