Saul-Mirone
6d6504e2af
feat(editor): replace spec provider with extension manager ( #11861 )
...
Closes: BS-3273
2025-04-22 07:40:41 +00:00
fundon
824e66df58
fix(core): improve EdgelessCopilotPanel position ( #11814 )
...
Closes: [AF-2101](https://linear.app/affine-design/issue/AF-2101/ai-panel-的输入框menu定位错误,menu-应该出现在输入框下方 )
[Screen Recording 2025-04-18 at 20.51.01.mov <span class="graphite__hidden">(uploaded via Graphite)</span> <img class="graphite__hidden" src="https://app.graphite.dev/api/v1/graphite/video/thumbnail/8ypiIKZXudF5a0tIgIzf/67410349-b056-40a7-b1e6-6de5a5137789.mov " />](https://app.graphite.dev/media/video/8ypiIKZXudF5a0tIgIzf/67410349-b056-40a7-b1e6-6de5a5137789.mov )
2025-04-21 14:08:24 +00:00
Saul-Mirone
846410cdb6
feat(editor): note extension ( #11856 )
...
Closes: BS-3200
Closes: BS-3201
2025-04-21 13:18:35 +00:00
yoyoyohamapi
e9dab04990
fix(core): chat user message margin & max-width ( #11854 )
...
### TL;DR
Fix chat panel user message css: `margin-left` & `max-width`
2025-04-21 11:15:18 +00:00
yoyoyohamapi
fe03292346
fix(core): ai images are not right-aligned ( #11850 )
...
### TL;DR
Fix ai images are not right-aligned.
> CLOSE BS-3131
2025-04-21 11:15:18 +00:00
L-Sun
a2b40fea20
feat(editor): insertion and duplication actions for embed synced doc ( #11852 )
...
Close [BS-3068](https://linear.app/affine-design/issue/BS-3068/在edgeless-的embed-doc-block上,增加-insert-into-page的选项,类似frame )
Close [BS-3069](https://linear.app/affine-design/issue/BS-3069/edgeless下的-embed,覆盖现在的edit行为-,暂定叫做duplicate-into-a-note,复制一个-note )
2025-04-21 11:01:04 +00:00
Saul-Mirone
7c79b1f024
feat(editor): latex and list extensions ( #11851 )
...
Closes: BS-3198
Closes: BS-3199
2025-04-21 10:29:31 +00:00
Saul-Mirone
df6e17b82f
feat(editor): frame and image extensions ( #11849 )
...
Closes: BS-3196
Closes: BS-3197
2025-04-21 10:29:30 +00:00
Saul-Mirone
92ac8e3cad
feat(editor): embed extension ( #11848 )
...
Closes: BS-3195
2025-04-21 09:22:12 +00:00
Saul-Mirone
15a5264352
feat(editor): divider and edgeless text extensions ( #11846 )
...
Closes: BS-3193
Closes: BS-3194
2025-04-21 09:22:12 +00:00
Saul-Mirone
652d42ba1e
feat(editor): scaffolding store and view manager in affine ( #11840 )
...
Closes: BS-3254
2025-04-21 09:22:11 +00:00
yoyoyohamapi
f65c8f8fa6
fix(core): disable space ai guidance for non-paragraph block ( #11847 )
...
### TL;DR
Disable space ai guidance for non-paragraph block
> CLOSE AI-67
2025-04-21 08:04:51 +00:00
yoyoyohamapi
f87a6e17bd
fix(core): action items in the ai response are not optimized for dark mode ( #11839 )
...
### TL;DR
* Fix action items in the AI response are not optimized for dark mode.
* Fix answer content in the AI response are not optimized for edgeless theme.

[uploading 截屏2025-04-21 14.30.00.png...]
> CLOSE BS-3249
2025-04-21 07:24:18 +00:00
yoyoyohamapi
dcfc92347f
fix(core): unable to copy the selected ai answer content across multiple lines ( #11806 )
...
> CLOSE AI-76
2025-04-18 10:33:14 +00:00
fundon
9c02512d7c
fix(editor): chevron down icon on toolbar ( #11803 )
...
Uniform size: 16x16
2025-04-18 07:10:01 +00:00
akumatus
203e931e30
fix(core): filter embedding results to return only user-selected tags and documents ( #11770 )
...
Close [AI-73](https://linear.app/affine-design/issue/AI-73 )
2025-04-18 03:25:30 +00:00
EYHN
a9e4690d2d
fix(core): fix ai with multiple server ( #11570 )
2025-04-17 13:31:53 +00:00
JimmFly
c2c106f508
feat(core): add new loading doc component ( #11737 )
2025-04-17 18:54:38 +08:00
akumatus
e577bb7aa9
fix(core): ask ai loses user selected context ( #11767 )
...
Close [AI-72](https://linear.app/affine-design/issue/AI-72 )
2025-04-17 09:05:44 +00:00
pengx17
ebf1d5476d
feat(core): add summary to transcription block ( #11753 )
...
fix AF-2523
2025-04-17 06:33:04 +00:00
L-Sun
98899b4eea
feat(editor): affine to blocksuite doc dnd with prefered card view ( #11748 )
...
Close [BS-3070](https://linear.app/affine-design/issue/BS-3070/文档拖动进入edgeless,形成引用时,默认形成embeded的引用,但是记录上次选择 )
2025-04-17 04:06:50 +00:00
akumatus
50b3f5f7df
fix(core): ai history of new users is always loading, enable online search by default ( #11741 )
...
Close [AI-69](https://linear.app/affine-design/issue/AI-69 ).
2025-04-17 02:53:41 +00:00
pengx17
51316217af
feat(core): audio playback rate ( #11702 )
...
fix AF-2470
2025-04-16 07:49:12 +00:00
Saul-Mirone
b2694003c9
fix(editor): missing copy as png implementation ( #11716 )
2025-04-15 13:08:47 +00:00
fundon
8ca675b2ec
fix(editor): improve pdf embed viewer UX ( #11641 )
...
Closes: [BS-3101](https://linear.app/affine-design/issue/BS-3101/pdf-embed-模式的选中框选-和点开看详情有比较大的问题 )
### What's Changed!
* Fixed disable pointer event in native pdf viewer by dragging
* Disable opening peek view with pdf viewer in readonly and sharing modes
2025-04-15 08:51:02 +00:00
yoyoyohamapi
0df584bd5e
refactor(core): add keyPress event to fix IME space detection ( #11700 )
...
### TL;DR
Refactor space-triggered AI Widget activation logic from `keydown` to `keypress` event listeners
### Background
The `keydown` event triggered by a space may originate from:
1. Normal space insertion
2. Space triggered by input method confirming candidate words
In scenarios like (2), some browsers (see [ISSUE](https://github.com/toeverything/AFFiNE/issues/11541 )) and input method callbacks produce events identical to scenario (1),making it impossible to distinguish between the two.
To fix this, the space-activated AI listener uses the `keypress` event:
In scenario 2, `event.which !== 32` (may be `30430` or other values) can be used to differentiate from scenario 1.
> CLOSE BS-3081
2025-04-15 08:37:27 +00:00
pengx17
46f3dfc64c
fix(core): audio player ux ( #11685 )
2025-04-15 16:06:59 +08:00
donteatfriedrice
e02b159bf4
feat(core): remove preview footnote hover effect config ( #11695 )
...
Close [BS-3115](https://linear.app/affine-design/issue/BS-3115/侧边栏-footnote-ui-和用户行为与编辑器内统一 )
2025-04-15 07:02:51 +00:00
pengx17
575aa3c1c1
fix(editor): rework disable middle click settings for linux ( #11556 )
...
fix BS-3028
Unfortunately, I don't find out a way to disable this behavior on ff linux
2025-04-15 04:44:26 +00:00
Aki Chang
00bd05897e
feat(android): ai chat scaffold ( #11124 )
...
Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com>
Co-authored-by: eyhn <cneyhn@gmail.com >
2025-04-14 06:05:47 +00:00
L-Sun
e1cb8198f1
fix(editor): android bs keyboard provider error ( #11647 )
...
### What Changes
- fixed keyboard service can not be initialized since a anonymous `BSKeyboardWithActionService` class was provider to di
- fixed tool panel was not closed when focus on other pragraph by clicking
- optimized code structure of fallback `show` and `hide` of keyboard
2025-04-13 09:59:24 +00:00
doodlewind
e1e5e8fc14
feat(editor): add basic image support in turbo renderer ( #11620 )
...
This PR adds basic support for image block:

2025-04-11 10:16:07 +00:00
yoyoyohamapi
9c6d94f597
fix(core): hide start-with-ai if service feature is not enabled ( #11633 )
...
> CLOSE BS-3062
2025-04-11 08:31:05 +00:00
akumatus
883b1d50f2
fix(core): ask AI input box in the whiteboard is blocked by the menu ( #11634 )
...
Close [AI-50](https://linear.app/affine-design/issue/AI-50 ).

2025-04-11 08:13:00 +00:00
doouding
4e1fcca876
fix: mind map preview rendering ( #11565 )
...
Fixes [BS-3080](https://linear.app/affine-design/issue/BS-3080/ai-生成-mindmap-预览失败 )
2025-04-11 07:05:36 +00:00
Saul-Mirone
4f9a4e739a
feat(editor): extract linked doc widget package ( #11589 )
...
Close [BS-2738](https://github.com/toeverything/AFFiNE/pull/11589 )
2025-04-11 14:06:16 +08:00
doodlewind
a5ab66d6cd
feat(editor): add basic code support in turbo renderer ( #11619 )
...
This PR adds basic support for code block:
[Screen Recording 2025-04-10 at 8.13.26 PM.mov <span class="graphite__hidden">(uploaded via Graphite)</span> <img class="graphite__hidden" src="https://app.graphite.dev/api/v1/graphite/video/thumbnail/lEGcysB4lFTEbCwZ8jMv/5d749979-f7f1-4e4d-ba5b-bc4ba29f8b83.mov " />](https://app.graphite.dev/media/video/lEGcysB4lFTEbCwZ8jMv/5d749979-f7f1-4e4d-ba5b-bc4ba29f8b83.mov )
2025-04-11 04:28:51 +00:00
liuyi
e79e4c9e9b
refactor(core): add version in worker url ( #11614 )
...
Co-authored-by: renovate <29139614+renovate@users.noreply.github.com >
2025-04-10 11:12:49 +00:00
doodlewind
dba8e00fb6
feat(editor): add basic note support in turbo renderer ( #11607 )
...
After landing layout tree refactoring, this PR adds basic note support in turbo renderer.
In this demo recording, the code and image block needs to be further supported.
[Screen Recording 2025-04-10 at 5.16.15 PM.mov <span class="graphite__hidden">(uploaded via Graphite)</span> <img class="graphite__hidden" src="https://app.graphite.dev/api/v1/graphite/video/thumbnail/lEGcysB4lFTEbCwZ8jMv/2e416b41-5609-4e52-a90f-5b7bb77db682.mov " />](https://app.graphite.dev/media/video/lEGcysB4lFTEbCwZ8jMv/2e416b41-5609-4e52-a90f-5b7bb77db682.mov )
2025-04-10 09:52:33 +00:00
doodlewind
f85b35227b
feat(editor): replace flat layout cache with tree in turbo renderer ( #11319 )
...
### TL;DR
Refactored the BlockSuite turbo renderer to use a hierarchical tree structure for layouts instead of a flat list, improving rendering accuracy and performance.
### What changed?
- Redesigned the layout system to use a tree structure (`ViewportLayoutTree`) that better represents the document hierarchy
- Added `blockId` to all layout objects for better tracking and debugging
- Updated the layout query mechanism to work with models directly instead of components
- Enhanced error handling with more descriptive warnings and error messages
- Improved the painting process to traverse the layout tree recursively
- Fixed viewport coordinate calculations for more accurate rendering
- Updated the worker communication to support the new tree-based layout structure
### Why make this change?
The previous flat layout structure didn't properly represent the hierarchical nature of documents, leading to rendering issues with nested blocks. This tree-based approach:
1. Better represents the actual document structure
2. Improves rendering accuracy for nested elements
3. Makes debugging easier with more consistent block identification
4. Provides a more robust foundation for future rendering optimizations
5. Reduces the likelihood of rendering artifacts when scrolling or zooming
2025-04-10 08:49:23 +00:00
JimmFly
eb664f3016
fix(core): improve share menu width and member name overflow handling ( #11527 )
2025-04-10 15:33:12 +08:00
liuyi
e376aa57c5
chore: bring treeshake back ( #11577 )
2025-04-10 14:12:36 +08:00
zzj3720
ba875a120f
feat(editor): support image preview for attachment columns ( #11544 )
...
close: BS-2634
2025-04-09 10:50:41 +00:00
akumatus
3bf3068650
fix(core): after clearing the history, new chat will report an error ( #11549 )
...
Close [BS-3025](https://linear.app/affine-design/issue/BS-3025 )
2025-04-09 07:22:31 +00:00
akumatus
82ade96b3f
fix(core): online search button status not updated to the search prompt ( #11542 )
...
Close [BS-3079](https://linear.app/affine-design/issue/BS-3079 ).
2025-04-09 06:51:35 +00:00
akumatus
c9790ed854
refactor(core): ai session create ( #11539 )
...
Close [BS-3079](https://linear.app/affine-design/issue/BS-3079 ).
- Separate the create session logic from the `createMessage function`.
- Ensure the session is created before executing any chat or actions.
- Convert the `AIActions` into asynchronous functions.
- Transfer the update prompt name logic to the chat action.
- Introduce a networkSearch field in `AITextActionOptions`.
- Eliminate the redundant `LAST_ROOT_SESSION_ID`.
2025-04-09 06:18:57 +00:00
akumatus
1e9561b46c
fix(core): retry on chat-block, view components not update as expected ( #11553 )
...
Close [BS-3026](https://linear.app/affine-design/issue/BS-3026 )
2025-04-09 03:30:19 +00:00
yoyoyohamapi
49c6ad7c04
feat(core): ai panel adaptation for edgeless theme ( #11509 )
...
### TL;DR
AI panel adaptation for Edgeless theme
> CLOSE BS-3017

2025-04-08 02:29:57 +00:00
pengx17
952f1878a6
fix(core): add option to disable middle click paste behavior on linux ( #11496 )
...
fix BS-3028
2025-04-07 07:01:37 +00:00
Saul-Mirone
8c473cf685
fix(editor): adjust block meta info ( #11488 )
...
Closes: BS-2901
2025-04-07 05:12:04 +00:00