Commit Graph

317 Commits

Author SHA1 Message Date
pengx17 70fe7cfec4 fix(core): center peek width styles (#8276)
fix AF-1369
2024-09-18 05:22:10 +00:00
EYHN 3d80725c1a refactor(core): move mobile components to core (#8258) 2024-09-14 05:51:14 +00:00
fundon d2cb7b7683 chore(core): improve scroll anchoring (#8132)
Upstreams: https://github.com/toeverything/blocksuite/pull/8335
* set `padding` to `[20,20,100,20]`
* cancel smooth movement and scaling
* focus and zoom in on elements/blocks
2024-09-13 13:13:02 +00:00
pengx17 d2bd39a1c7 fix(core): importing template with default mode (#8250) 2024-09-13 12:54:21 +00:00
EYHN 5e56ec65e3 refactor(core): adjust core struct (#8218)
packages/frontend/core/src

hooks -> components/hooks
atoms -> components/atoms
layouts -> components/layouts
providers -> components/providers
mixpanel -> @affine/track
~~shared~~
~~unexpected-application-state~~
2024-09-13 11:31:21 +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
forehalo 2ce9d37af1 fix(core): circular dependencies (#8215) 2024-09-13 09:03:23 +00:00
forehalo a387e4ac07 refactor: migrate environment to BUILD_CONFIG (#8206) 2024-09-13 07:58:20 +00:00
forehalo 25969a34e8 refactor: avoid runtime config object (#8202) 2024-09-13 07:27:11 +00:00
forehalo c76b4d70b0 refactor: setup files (#8201) 2024-09-13 07:27:08 +00:00
Saul-Mirone 445acfa323 chore: bump bs (#8227) 2024-09-13 02:10:16 +00:00
fundon 8a9d9b42a3 feat(core): support block links on cmdk (#8192)
Upstreams: https://github.com/toeverything/blocksuite/pull/8260
Closes: [BS-1323](https://linear.app/affine-design/issue/BS-1323/粘贴-link-to-block-到-link-弹窗,不符合预期)
2024-09-12 08:25:28 +00:00
JimmFly 2cba8a4ccd fix(core): title could not be changed when creating a new doc (#8203)
Before change, the title could not be modified from outside the editor without refreshing:

https://github.com/user-attachments/assets/536acba1-4e31-418a-bc1a-8578e3128bba

after:

https://github.com/user-attachments/assets/30a4b270-b8b1-4787-acef-0ab2a72a8f74
2024-09-12 07:55:23 +00:00
JimmFly 8e71815e46 fix(component): windows client does not have app controls on some pages (#8176)
close AF-1266
2024-09-12 06:35:55 +00:00
EYHN 3999b04cf1 feat(core): download template from snapshot url (#8211) 2024-09-12 06:21:52 +00:00
fundon b74dd1c92e feat(core): support block links on Bi-Directional Links (#8169)
Clsoes [AF-1348](https://linear.app/affine-design/issue/AF-1348/修复-bi-directional-links-里面的链接地址)

* Links to the current document should be ignored on `Backlinks`
* Links to the current document should be ignored on `Outgoing links`

https://github.com/user-attachments/assets/dbc43cea-5aca-4c6f-886a-356e3a91c1f1
2024-09-11 11:08:12 +00:00
CatsJuice b7d05d2078 feat(core): new empty states for doc/collection/tag (#8197)
AF-1329, AF-1330
2024-09-11 10:48:52 +00:00
EYHN 85aa73bcf6 fix(core): disconnect ws when user logout (#8188) 2024-09-11 07:55:42 +00:00
EYHN d93c3b3719 feat(core): user data db (#7930) 2024-09-11 07:55:37 +00:00
EYHN 498a69af53 feat(core): move enable ai to feature flag (#8195) 2024-09-11 07:42:07 +00:00
EYHN 8c191e6baa feat(core): preview template & snapshot import (#8193) 2024-09-11 07:11:33 +00:00
forehalo 7a546ff8a1 feat(core): add auth metrics (#8194)
close AF-849
2024-09-11 03:28:32 +00:00
Saul-Mirone daa9d9ff5c chore: bump bs (#8189) 2024-09-10 13:48:08 +00:00
EYHN 0cdc486f1f fix(core): reduce state refresh (#8181) 2024-09-10 06:21:15 +00:00
JimmFly 9d343bdaa6 feat(core): add enable url preview to workspace settings (#8089) 2024-09-10 04:04:06 +00:00
forehalo 57083905ff fix(core): strict client oauth parameters check (#8159) 2024-09-08 12:44:47 +00:00
pengx17 487154ed3b fix(core): nav item line-height with Emoji (#8148) 2024-09-06 11:28:22 +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
fundon 7d93fae1dd fix(core): inlineEditor on rich-text may be null (#8131)
See https://github.com/toeverything/blocksuite/blob/3d3d9d7862ac91091688b3c491571f6333b97df7/packages/affine/components/src/rich-text/rich-text.ts#L348-L350
https://github.com/toeverything/blocksuite/blob/master/packages/affine/components/src/rich-text/rich-text.ts#L36
2024-09-06 03:50:05 +00:00
EYHN 74cd175d37 feat(core): invoice service (#8124) 2024-09-05 23:56:58 +08:00
akumatus 9cbe416c2c feat(core): shape editor settings (#8122)
<div class='graphite__hidden'>
          <div>🎥 Video uploaded on Graphite:</div>
            <a href="https://app.graphite.dev/media/video/sJGviKxfE3Ap685cl5bj/cdf4f95c-15b4-4eac-be57-26974f9ca02b.mov">
              <img src="https://app.graphite.dev/api/v1/graphite/video/thumbnail/sJGviKxfE3Ap685cl5bj/cdf4f95c-15b4-4eac-be57-26974f9ca02b.mov">
            </a>
          </div>
<video src="https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/sJGviKxfE3Ap685cl5bj/cdf4f95c-15b4-4eac-be57-26974f9ca02b.mov">录屏2024-09-05 21.20.31.mov</video>
2024-09-05 15:24:37 +00:00
EYHN f4db4058f8 feat(core): make permission and invoice offline available (#8123) 2024-09-05 15:11:27 +00:00
fundon 017e89f458 fix(core): should be bound to the correct object (#8121)
<img width="795" alt="Screenshot 2024-09-05 at 18 05 35" src="https://github.com/user-attachments/assets/46f277e9-9be6-4f71-b765-fc442a3a9c64">
2024-09-05 14:46:04 +00:00
fundon de1a51bf7c fix(core): should open a new tab with parameters (#8118)
Closes [AF-1343](https://linear.app/affine-design/issue/AF-1343/点击-center-peek-右侧的按钮时,应该携带参数)
2024-09-05 10:30:39 +00:00
EYHN 691bfed185 feat(core): selector for editorSetting hooks (#8108) 2024-09-05 08:44:11 +00:00
JimmFly f452414952 fix(core): hide the footer that blocks the toolbar in shared page (#8091)
close PD-1405 CLOUD-64

https://github.com/user-attachments/assets/f6ed2dfc-d238-41d8-abaf-684193a080ff
2024-09-05 07:14:23 +00:00
CatsJuice 06552a1120 fix(mobile): explorer node touch optimization (#8101)
close AF-1338
2024-09-05 02:18:28 +00:00
EYHN 2524491bd1 fix(env): is mobile flag (#8005)
only 'mobile' entry has isMobile = true flag
2024-09-04 09:21:36 +00:00
JimmFly f688c057eb feat(core): impl AI switch (#8018)
close PD-1658

https://github.com/user-attachments/assets/2f3d1d26-1879-4d95-b80c-7c0965cefbd0
2024-09-04 08:44:05 +00:00
EYHN eb16c273ee feat(core): apply default doc mode setting (#8083) 2024-09-04 08:31:36 +00:00
EYHN 01b2339173 refactor(core): better block link (#8082) 2024-09-04 08:13:22 +00:00
EYHN fb64bc7e55 feat(core): indexer upgrade (#8062) 2024-09-04 07:31:03 +00:00
EYHN 51f3566bec fix(core): fix menu bugs (#8074) 2024-09-04 07:19:09 +00:00
Saul-Mirone 681f4561fb chore: bump bs (#8071) 2024-09-03 12:12:59 +00:00
fundon 98d9295259 feat(core): support block or element reference links (#7946)
Upstreams: https://github.com/toeverything/blocksuite/pull/8021

* open doc with mode
* monitor mode changes in query string
* scroll anchoring

https://github.com/user-attachments/assets/681abff8-e51b-47ea-bb71-447e8b312142

https://github.com/user-attachments/assets/e73ed4c0-4e33-45f8-9db4-d8eed3525d05
2024-09-03 09:49:15 +00:00
darkskygit 935771c8a8 feat(server): make captcha modular (#5961) 2024-09-03 09:03:51 +00:00
forehalo 52c9da67f0 refactor(auth): authenticate user in main window (#8032) 2024-09-03 09:03:47 +00:00
forehalo e33aa35f7e refactor(core): auth (#7999)
closes AF-753 AF-1227
2024-09-03 09:03:43 +00:00