Commit Graph

107 Commits

Author SHA1 Message Date
JimmFly ea718d30e9 refactor(core): replace the Modal of the FindInPage component with Dialog (#7149)
In order to customize the opening and closing styles, the Modal were replaced.

https://github.com/toeverything/AFFiNE/assets/102217452/ece774ea-634c-4723-bace-7926f003497c
2024-06-18 07:46:22 +00:00
L-Sun b3ec3a2b3e refactor(core): migrate ai preset to AFFiNE (#7219)
## TL;DR
Move `@blocksuite/presets/ai` to AFFiNE. After this PR is merged, you can use AI features from `@affine/core/blocksuite/presets/ai`.
2024-06-18 07:31:06 +00:00
L-Sun 9b89c9ed38 chore: bump up blocksuite version (#7243)
## Features
- https://github.com/toeverything/BlockSuite/pull/7330 @CatsJuice
- https://github.com/toeverything/BlockSuite/pull/7348 @zzj3720

## Bugfix
- https://github.com/toeverything/BlockSuite/pull/7338 @akumatus
- https://github.com/toeverything/BlockSuite/pull/7353 @Saul-Mirone
- https://github.com/toeverything/BlockSuite/pull/7351 @lawvs
- https://github.com/toeverything/BlockSuite/pull/7357 @L-Sun
- https://github.com/toeverything/BlockSuite/pull/7355 @akumatus

## Misc
- https://github.com/toeverything/BlockSuite/pull/7352 @L-Sun
- https://github.com/toeverything/BlockSuite/pull/7349 @pengx17
2024-06-18 04:29:55 +00:00
pengx17 006c260e5f feat: add isNewDoc flag to quick search api (#7232) 2024-06-18 04:07:55 +00:00
liuyi 54fc1197ad feat(server): introduce user friendly server errors (#7111) 2024-06-17 11:30:58 +08:00
akumatus 24cb0d3757 refactor: add docsService for blocksuite to change and observe doc mode (#7200)
This PR provide `DocModeService` to manage document mode, which is used by blocksuite.

### What Changed?
- Add document mode apis from `DocService` and `DocsService`
- Remove useless `pageService.getEditorMode` and `pageService.slots.editorModeSwitch` api

[Related PR in blocksuite](https://github.com/toeverything/blocksuite/pull/7288)

[Bump Blocksuite](https://github.com/toeverything/AFFiNE/pull/7209)
> ## Features
> * [feat(presets): support different tracker control for actions blocksuite#7285](https://github.com/toeverything/blocksuite/pull/7285) @donteatfriedrice
> * [feat(edgeless): add default color and editing border for edgeless text blocksuite#7278](https://github.com/toeverything/blocksuite/pull/7278) @Flrande
> * [feat(blocks): center peek entries blocksuite#7275](https://github.com/toeverything/blocksuite/pull/7275) @pengx17
>
> ## Bugfix
> * [fix(blocks): affine-embed-synced-doc-block peek on dblclick blocksuite#7284](https://github.com/toeverything/blocksuite/pull/7284) @pengx17
> * [fix(edgeless): edgeless text rect should automatically update when changing font blocksuite#7292](https://github.com/toeverything/blocksuite/pull/7292) @Flrande
> * [fix(edgeless): align panel not work blocksuite#7293](https://github.com/toeverything/blocksuite/pull/7293) @Flrande
> * [fix(blocks): filterable list unexpected hover style blocksuite#7291](https://github.com/toeverything/blocksuite/pull/7291) @golok727
> * [fix(blocks): slash menu unexpected hover style blocksuite#7290](https://github.com/toeverything/blocksuite/pull/7290) @golok727
> * [fix(blocks): bookmark block error on undo or delete while loading blocksuite#7276](https://github.com/toeverything/blocksuite/pull/7276) @golok727
> * [fix(presets): chat input max-height blocksuite#7283](https://github.com/toeverything/blocksuite/pull/7283) @fundon
> * [fix(presets): get image blob from selection blocksuite#7286](https://github.com/toeverything/blocksuite/pull/7286) @donteatfriedrice
> * [fix(blocks): connectors resize and rotate blocksuite#7256](https://github.com/toeverything/blocksuite/pull/7256) @fundon
>
> ## Refactor
> * [refactor: add DocModeService for doc mode get, set, toogle and observe change blocksuite#7288](https://github.com/toeverything/blocksuite/pull/7288) @akumatus
> * [refactor(edgeless): rewrite auto-connect component as a widget blocksuite#7287](https://github.com/toeverything/blocksuite/pull/7287) @doouding
>
> ## Misc
> * [test: fix flaky blocksuite#7295](https://github.com/toeverything/blocksuite/pull/7295) @L-Sun
> * [style(page): adjust heading font-weight and letter-spacing blocksuite#7277](https://github.com/toeverything/blocksuite/pull/7277) @CatsJuice
> * [chore: apply member ordering rule blocksuite#7279](https://github.com/toeverything/blocksuite/pull/7279) @Saul-Mirone

---
2024-06-13 16:53:42 +08:00
doouding a3ca41fd6a fix: surface-ref peek view (#7208)
### Change
Add ref to `SurfaceRefPeekView`. It provide `fitViewportToTarget` method to fit the `surface-ref` content.

Related to [AFF-1200](https://linear.app/affine-design/issue/AFF-1200/center-peek-frame-rendering-issue).
2024-06-13 07:05:14 +00:00
pengx17 a11cb6b0cd fix: peek view modal controls animation (#7180) 2024-06-11 03:18:53 +00:00
EYHN ef01b6255e fix(core): template image assets missing (#7171)
fix TOV-910
2024-06-08 17:28:24 +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
EYHN d791ab73ba fix(core): fix active view undefined (#7161) 2024-06-06 07:53:37 +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 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
EYHN f67108c6f7 fix(core): fetch share docs on non-cloud workspace (#7144) 2024-06-04 09:45:35 +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
JimmFly 9d296c4b62 chore: adjust find in page modal style (#7087)
![image](https://github.com/toeverything/AFFiNE/assets/102217452/757a4ea3-2101-4610-852c-21be02e9b167)
![image](https://github.com/toeverything/AFFiNE/assets/102217452/c7c2ad1b-f220-4799-926c-6f3777b0daf9)
2024-05-28 06:19:59 +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
JimmFly bd9c929d05 feat(core): cmd+f search in doc function (#7040)
You can use the cmd+F shortcut key to trigger the FindInPage function.
2024-05-28 06:19:48 +00:00
EYHN b356ddbe6e fix(core): fix ui flashing (#7056) 2024-05-27 08:05:20 +00:00
EYHN a440e85ffe chore: bump blocksuite (#7075)
## Features
- toeverything/blocksuite#6937 @Flrande

## Bugfix
- toeverything/blocksuite#7137 @fundon
- toeverything/blocksuite#7126 @golok727
- toeverything/blocksuite#7128 @CatsJuice
- toeverything/blocksuite#7130 @fundon

## Refactor

## Misc
- toeverything/blocksuite#7131 @fundon

## Additional changes

Adjust the awareness provider so that it only obtains awareness instances when connect, and fixes the dependencies between workspace components.
2024-05-27 05:11:12 +00:00
CatsJuice d066da3e8a fix(core): right sidebar's content is not centered when clientBorder enabled (#7034)
- before
    ![CleanShot%202024-05-22%20at%2018.18.15@2x.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/LakojjjzZNf6ogjOVwKE/4fe8f114-6471-4e28-8788-0d50b39efe7a.png)
    ![CleanShot%202024-05-22%20at%2018.27.18@2x.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/LakojjjzZNf6ogjOVwKE/95ff58d7-2f6b-42ae-85f2-6b026ad48c05.png)

- after
    ![CleanShot 2024-05-22 at 19.10.30@2x.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/LakojjjzZNf6ogjOVwKE/920fc348-b53f-4e5e-aa85-3329372923b1.png)
2024-05-23 02:42:01 +00:00
EYHN d5c93f10ac fix(core): cant leave workspace (#6999) 2024-05-21 03:41:03 +00:00
EYHN 7fddd14f72 fix(core): fix active view with mouse (#6994) 2024-05-20 08:19:53 +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)
![image.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/T2klNLEk0wxLh4NRDzhk/cd2e982a-f78a-4cc3-b090-ee4c0090e19d.png)

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:
![image.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/T2klNLEk0wxLh4NRDzhk/45ea4389-1833-4dc5-bd64-84d8c99cd647.png)

fix TOV-866
2024-05-16 06:30:53 +00:00
JimmFly df6d0a2750 fix(core): navigation shortcut keys can't be used when the sidebar is collapsed (#6903)
close #6877
2024-05-13 07:15:40 +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
pengx17 8af064b663 fix: should not reset identity on app start (#6895) 2024-05-12 12:39:59 +00:00
donteatfriedrice 203459679c feat: bump blocksuite (#6852)
## Features
- https://github.com/toeverything/BlockSuite/pull/6995 @fundon

## Bugfix
- https://github.com/toeverything/BlockSuite/pull/7002 @donteatfriedrice
- https://github.com/toeverything/BlockSuite/pull/7000 @regischen
- https://github.com/toeverything/BlockSuite/pull/7001 @fundon
- https://github.com/toeverything/BlockSuite/pull/6999 @Flrande
- https://github.com/toeverything/BlockSuite/pull/6997 @donteatfriedrice
- https://github.com/toeverything/BlockSuite/pull/6996 @regischen
- https://github.com/toeverything/BlockSuite/pull/6994 @L-Sun

## Refactor

## Misc
2024-05-10 03:46:10 +00:00
pengx17 917ad1965a fix: mixpanel issues (#6840) 2024-05-09 07:50:15 +00:00
EYHN 8d8bd49600 chore(infra): remove compatible code (#6833) 2024-05-08 09:06:33 +00:00
EYHN e00c697694 fix(core): windows app controls missing (#6832)
fix #6825
2024-05-08 08:17:37 +00:00
renovate 269060d494 chore: bump up @blocksuite/icons version to v2.1.50 (#6577)
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@blocksuite/icons](https://togithub.com/toeverything/icons) | [`2.1.46` -> `2.1.50`](https://renovatebot.com/diffs/npm/@blocksuite%2ficons/2.1.46/2.1.50) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@blocksuite%2ficons/2.1.50?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@blocksuite%2ficons/2.1.50?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@blocksuite%2ficons/2.1.46/2.1.50?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@blocksuite%2ficons/2.1.46/2.1.50?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>toeverything/icons (@&#8203;blocksuite/icons)</summary>

### [`v2.1.50`](https://togithub.com/toeverything/icons/compare/aa76c34aae1d1e1f18377eb3f1c27efbaa3e04bb...937b43627452ed99c0ebef7d67e0d5ed30812c67)

[Compare Source](https://togithub.com/toeverything/icons/compare/aa76c34aae1d1e1f18377eb3f1c27efbaa3e04bb...937b43627452ed99c0ebef7d67e0d5ed30812c67)

### [`v2.1.49`](https://togithub.com/toeverything/icons/compare/fc6422fbd4986000f07ec64f6489450f6c2379a6...aa76c34aae1d1e1f18377eb3f1c27efbaa3e04bb)

[Compare Source](https://togithub.com/toeverything/icons/compare/fc6422fbd4986000f07ec64f6489450f6c2379a6...aa76c34aae1d1e1f18377eb3f1c27efbaa3e04bb)

### [`v2.1.48`](https://togithub.com/toeverything/icons/compare/34162ca6da7339af39f26229ef90b14efb45143e...fc6422fbd4986000f07ec64f6489450f6c2379a6)

[Compare Source](https://togithub.com/toeverything/icons/compare/34162ca6da7339af39f26229ef90b14efb45143e...fc6422fbd4986000f07ec64f6489450f6c2379a6)

### [`v2.1.47`](https://togithub.com/toeverything/icons/compare/740923da0dcc9eff9f95aab5e6d3bdcf157724db...34162ca6da7339af39f26229ef90b14efb45143e)

[Compare Source](https://togithub.com/toeverything/icons/compare/740923da0dcc9eff9f95aab5e6d3bdcf157724db...34162ca6da7339af39f26229ef90b14efb45143e)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about these updates again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/toeverything/AFFiNE).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yOTMuMCIsInVwZGF0ZWRJblZlciI6IjM3LjM0MC4xMCIsInRhcmdldEJyYW5jaCI6ImNhbmFyeSIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=-->
2024-05-07 11:09:38 +00:00
EYHN 35ce4adffe fix(core): fix error when server not support ai (#6796) 2024-05-07 08:25:27 +00:00
pengx17 411f6ddf07 fix: tab switcher on windows desktop (#6812)
![image.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/T2klNLEk0wxLh4NRDzhk/f33388aa-cc2d-417f-a742-86ebd74e3d5a.png)
2024-05-07 07:58:13 +00:00
Brooooooklyn d76a635b00 chore(core): handle the telemetry warnings in console (#6793) 2024-05-07 04:28:34 +00:00
pengx17 91ee5e05bb fix: ai chat session handling (#6751)
fix AFF-999
upstream: https://github.com/toeverything/blocksuite/pull/6932
2024-04-30 15:08:27 +00:00
pengx17 cc17d3287e fix: open in chat does not work when the panel is not opened (#6703)
https://github.com/toeverything/AFFiNE/pull/6503 does not work with "open in chat".
IMO resetting tab whenever opening right panel does not make too much sense. @zanwei

fix AFF-951
2024-04-26 03:50:40 +00:00
CatsJuice 6ec97b27c4 feat(core): open desktop directly in subscription landing page (#6661) 2024-04-22 14:21:58 +00:00
EYHN b7ade43c2e feat(core): adjust help island style (#6651) 2024-04-22 08:27:28 +00:00
forehalo 098e717688 chore(server): remove useless free subscription enum (#6634) 2024-04-19 13:34:59 +00:00
pengx17 94a70a5f3a chore: bump blocksuite (#6635)
## Features
- https://github.com/toeverything/BlockSuite/pull/6825 @regischen

## Bugfix
- https://github.com/toeverything/BlockSuite/pull/6828 @regischen
- https://github.com/toeverything/BlockSuite/pull/6823 @fundon
- https://github.com/toeverything/BlockSuite/pull/6822 @fundon
- https://github.com/toeverything/BlockSuite/pull/6826 @pengx17
- https://github.com/toeverything/BlockSuite/pull/6794 @fundon
- https://github.com/toeverything/BlockSuite/pull/6821 @donteatfriedrice
- https://github.com/toeverything/BlockSuite/pull/6781 @doouding
- https://github.com/toeverything/BlockSuite/pull/6820 @pengx17
- https://github.com/toeverything/BlockSuite/pull/6819 @regischen
- https://github.com/toeverything/BlockSuite/pull/6817 @donteatfriedrice

## Refactor

## Misc
2024-04-19 09:50:17 +00:00
EYHN 4085cc6728 fix(core): fix subscribe link for pro plan (#6627) 2024-04-19 06:36:38 +00:00