CatsJuice
98e35384a6
feat(component): helper function observeResize to observe size change via global ResizeObserver ( #7241 )
...
```ts
import { observeResize } from "@affine/component";
useEffect(() => {
const dispose = observeResize(element entry => {
console.log(entry.contentRect);
});
return () => dispose();
}, []);
```
2024-06-19 09:04:56 +00:00
EYHN
bcc66422fd
refactor(i18n): i18n utils tools ( #7251 )
2024-06-19 07:38:20 +00:00
doouding
314fa064ab
fix: peek view on synced doc ( #7265 )
2024-06-19 06:41:08 +00:00
L-Sun
09201d42a0
chore: bump up @blocksuite/icons version ( #7233 )
2024-06-18 17:07:11 +08:00
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 )
...


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


- after

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 )
...

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
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 )
...
[](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 ) | [](https://docs.renovatebot.com/merge-confidence/ ) | [](https://docs.renovatebot.com/merge-confidence/ ) | [](https://docs.renovatebot.com/merge-confidence/ ) | [](https://docs.renovatebot.com/merge-confidence/ ) |
---
### Release Notes
<details>
<summary>toeverything/icons (@​blocksuite/icons)</summary>
### [`v2.1.50`](aa76c34aae...937b436274 )
[Compare Source](aa76c34aae...937b436274 )
### [`v2.1.49`](fc6422fbd4...aa76c34aae )
[Compare Source](fc6422fbd4...aa76c34aae )
### [`v2.1.48`](34162ca6da...fc6422fbd4 )
[Compare Source](34162ca6da...fc6422fbd4 )
### [`v2.1.47`](740923da0d...34162ca6da )
[Compare Source](740923da0d...34162ca6da )
</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 )
...

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