pengx17
cc7740d8d3
fix: some regression issues on quick search refactor ( #7410 )
...
- fix PD-1370. doc link resolve issue on pasting
- fix AF-1029
- implement doc creation in doc search
added two test cases to cover the above two issues.
2024-07-03 03:24:50 +00:00
pengx17
10df1fb4b7
fix: menu in peek view content not scrollable issue ( #7412 )
...
when using [dialog.overlay](https://github.com/radix-ui/primitives/blob/main/packages/react/dialog/src/Dialog.tsx#L203-L211
), whole app is affected by [react-scroll library](https://github.com/theKashey/react-remove-scroll/blob/8923c513d269190162eb4678c1b80137f5998679/src/SideEffect.tsx#L131-L134
):
In the current implementation, only the contents in the dialog content will be scrollable and cannot be configured in current API.
This PR introduces a simple div overlay to get rid of this issue.
fix BS-696
2024-07-03 02:58:41 +00:00
forehalo
f0d127fa29
Revert "feat(core): run indexer in worker ( #7295 )"
...
This reverts commit c62d79ab14 .
2024-07-03 10:16:27 +08:00
pengx17
ef7ba273ab
fix: copy share link to clipboard command display issue ( #7411 )
...
fix AF-1027
2024-07-02 15:28:30 +00:00
pengx17
2a6ea3c9c6
feat(core): allow keyboard navigation in tags inline editor ( #7378 )
...
fix AF-966
- Allow using arrowup/down to navigate the tag list candidates; press enter to add the currently focused tag option;
- Allow using arrowleft/right to navigate the inline tag list (selected) and use backspace to delete focused tag.
2024-07-02 14:25:51 +00:00
EYHN
c62d79ab14
feat(core): run indexer in worker ( #7295 )
2024-07-02 09:18:08 +00:00
EYHN
27d0fc5108
refactor(core): use new backlink indexer ( #7296 )
2024-07-02 09:18:01 +00:00
EYHN
40e381e272
refactor(core): new quick search service ( #7214 )
2024-07-02 09:17:54 +00:00
EYHN
15e99c7819
feat(core): docs search service ( #7213 )
2024-07-02 09:17:47 +00:00
KushalSharmaGit
d72dbe682c
fix: ensure exact tag matching with enter key behavior refinement ( #7387 )
...
Co-authored-by: Peng Xiao <pengxiao@outlook.com >
2024-07-01 10:16:16 +08:00
EYHN
824be0d4c1
fix(core): fix viewtransition and css property missing ( #7377 )
2024-06-28 18:03:43 +08:00
golok727
fbf676002f
fix: code block toolbar z-index issue in right sidebar ( #7376 )
...
Closes: [BS-549](https://linear.app/affine-design/issue/BS-549/code-block-%E5%9C%A8%E5%8F%B3%E4%BE%A7%E8%BE%B9%E6%A0%8F%E6%9C%89-z-index-%E9%97%AE%E9%A2%98%E8%AF%AD%E8%A8%80%E7%9A%84%E4%BF%A1%E6%81%AF%E5%87%BA%E7%8E%B0%E5%9C%A8%E4%BA%86-tab-%E4%B8%8A%E9%9D%A2 ),[BS-600](https://linear.app/affine-design/issue/BS-600/the-code-toolbar-remains-visible-when-it-overflows-in-the-ai-panel )
2024-06-28 07:48:50 +00:00
pengx17
34b6a3bf1f
fix: escape key handling compatibility issue with blocksuite ( #7365 )
...
fix PD-1347
See
https://github.com/radix-ui/primitives/blob/main/packages/react/use-escape-keydown/src/useEscapeKeydown.tsx#L19-L20
This behavior in radix-ui is not possible to be prevented since escape keydown is bound to document with capturing, unless dialogs in blocksuite is also implemented with radix-ui.
2024-06-28 06:21:36 +00:00
Peng Xiao
c8f418f9c5
fix: use sgtpooki/file-type for resolving image type ( #7326 )
2024-06-27 10:08:08 +00:00
Cats Juice
fa2305b0e2
feat(core): replace all radio-button-group usage ( #7352 )
2024-06-27 17:54:30 +08:00
pengx17
81462fe000
refactor(core): view transition api for peek-view modal animation ( #7350 )
...
Remaining issue:
modal controls' position is not relatively moved to the parent container during transitioning.
2024-06-27 08:38:16 +00:00
Fangdun Tsai
a5662e3de2
fix(core): optimize request chat cards fn ( #7331 )
2024-06-26 23:50:45 +08:00
pengx17
7baa260e97
refactor(core): image block use peek view workflow ( #7329 )
...
depends on https://github.com/toeverything/blocksuite/pull/7424
2024-06-26 07:49:25 +00:00
EYHN
ad746b6376
fix(core): fix error overflow ( #7335 )
2024-06-26 07:25:29 +00:00
akumatus
4df334bfdb
fix: cannot read properties of undefined editor.host ( #7333 )
...
Fix issue [BS-657](https://linear.app/affine-design/issue/BS-657 ).
Unable to obtain `editor.host` synchronously on `editor` reference callback. Maybe we should have a separate host reference callback. @pengx17

2024-06-26 06:31:25 +00:00
EYHN
2d74e4c340
fix(core): fix the page loading style ( #7336 )
2024-06-26 06:20:20 +00:00
fundon
a92515b5aa
fix(core): ai chat opening and append card ( #7322 )
...
Closes: [BS-642](https://linear.app/affine-design/issue/BS-642/continue-with-ai-:-侧边栏关闭的情况下,先唤起-侧边栏,同时插入选中的内容 )
https://github.com/toeverything/AFFiNE/assets/27926/3022d808-d560-4bc8-8a04-735b76056121
2024-06-25 15:56:44 +00:00
pengx17
f51da066a8
refactor: image preview component issues in center peek ( #7313 )
...
fix AF-948
- remove jotai
- every editor got its own image block modal
- image block uses center peek modal for animation and style
2024-06-25 07:34:18 +00:00
CatsJuice
b38c46649f
feat(core): adjust ai help island style and behavior, add animation ( #7310 )
...
- Move right-sidebar activeTab state into `RightSidebarService`
- Remove `styled` usage and adjust the UI
- Fix the issue that ai-button clicking not work when sidebar opened
- Add an animation if AI-Chat panel hasn't been opened.

2024-06-24 14:37:38 +00:00
pengx17
2482c3c266
fix(electron): center peek for links in electron ( #7301 )
2024-06-21 09:27:13 +00:00
forehalo
7b3673ae82
chore: assign todos ( #7297 )
2024-06-21 07:54:14 +00:00
pengx17
e085b927f6
feat(core): peek view api enhancements ( #7288 )
...
upstream https://github.com/toeverything/blocksuite/pull/7390
fix AF-917
2024-06-21 07:38:42 +00:00
fundon
92be6b2ff7
fix(core): open ai chat for first time ( #7291 )
...
There are two issues here:
1. open right sidebar with chat
2. notify chat-panel of selected content
The second issue will be fixed in a subsequent PR.
2024-06-21 10:32:34 +08:00
CatsJuice
1fdfa834a0
feat(core): responsive detail page header ( #7263 )
2024-06-20 05:47:43 +00:00
EYHN
b4212d54ed
chore(core): delete center peek feature flag ( #7281 )
2024-06-20 04:24:47 +00:00
regischen
ddf72733e1
feat: add ai-is-land ( #7259 )
2024-06-20 02:52:14 +00:00
EYHN
7c0a686cd9
refactor(i18n): new hook api ( #7273 )
...
# NEW HOOK API
`useI18n`: same as `useAFFiNEI18N`, with additional APIs
```ts
import { useI18n } from '@affine/i18n'
const i18n = useI18n()
i18n['hello world']() -> 你好世界
```
# NEW GLOBAL i18n Instance
`I18n`: use i18n capabilities outside of React
```ts
import { I18n } from '@affine/i18n'
I18n['hello world']() -> 你好世界
```
# NEW TYPES
`I18nKeys` -> all i18n keys
`I18nString` -> An i18n message (key&options)
transfer and store i18n text outside of React
```ts
const msg: I18nString = {
key: 'helloworld',
options: {
arg1: '123'
}
}
I18n.t(msg) -> 你好世界123
```
before:
```ts
registerCommand('open-page', {
name: t('command.open-page')
// ^- translation happens here,
})
```
after:
```ts
registerCommand('open-page', {
name: { key: 'command.open-page' }
// ^- store I18nString here, translate when the command render to UI
})
```
2024-06-20 02:19:41 +00:00
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