pengx17
c775b2e264
fix(core): text-renderer should be readonly ( #9244 )
...
fix AF-2010, AF-2009
2024-12-23 04:19:06 +00:00
akumatus
563da3b6f4
fix(core): in page mode, AI replace selection did not correctly replace the selected text ( #9179 )
...
Fix issue [BS-1980](https://linear.app/affine-design/issue/BS-1980 ).
2024-12-17 02:22:48 +00:00
EYHN
b36b398957
fix(infra): memory leak ( #9013 )
2024-12-16 16:55:49 +00:00
akumatus
2f79104bdb
feat(core): support ai insert image, mindmap, slides and make it real in page mode ( #9164 )
...
Support issue [BS-2085](https://linear.app/affine-design/issue/BS-2085 ).
### What changed?
- Refactor the `actionToAnswerRenderer` function to support reuse in both page mode and edgeless mode.
- Add a new `page-response.ts` module to handle AI-generated answers in page mode.
- Remove the redundant `edgelessHandler` function from `_common/config.ts`.
- Introduce the `AIContext` class along with the `ctx` TypeScript type to standardize context management.
- Implement the `createTemplateJob` function to enable AI slide insertion in both page mode and edgeless mode.
Insert mindmap on page mode:
<div class='graphite__hidden'>
<div>🎥 Video uploaded on Graphite:</div>
<a href="https://app.graphite.dev/media/video/sJGviKxfE3Ap685cl5bj/30630d3e-ebd9-416b-9bb9-5f27086e48a3.mov ">
<img src="https://app.graphite.dev/api/v1/graphite/video/thumbnail/sJGviKxfE3Ap685cl5bj/30630d3e-ebd9-416b-9bb9-5f27086e48a3.mov ">
</a>
</div>
<video src="https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/sJGviKxfE3Ap685cl5bj/30630d3e-ebd9-416b-9bb9-5f27086e48a3.mov ">mindmap.mov</video>
Insert image on edgeless note
<div class='graphite__hidden'>
<div>🎥 Video uploaded on Graphite:</div>
<a href="https://app.graphite.dev/media/video/sJGviKxfE3Ap685cl5bj/b850ee5a-a06b-4ae7-8b68-ed5929a6e81a.mov ">
<img src="https://app.graphite.dev/api/v1/graphite/video/thumbnail/sJGviKxfE3Ap685cl5bj/b850ee5a-a06b-4ae7-8b68-ed5929a6e81a.mov ">
</a>
</div>
<video src="https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/sJGviKxfE3Ap685cl5bj/b850ee5a-a06b-4ae7-8b68-ed5929a6e81a.mov ">image3.mov</video>
Insert image on page mode:
<div class='graphite__hidden'>
<div>🎥 Video uploaded on Graphite:</div>
<a href="https://app.graphite.dev/media/video/sJGviKxfE3Ap685cl5bj/c4f98e2d-0b15-4310-b3e0-0725e330302b.mov ">
<img src="https://app.graphite.dev/api/v1/graphite/video/thumbnail/sJGviKxfE3Ap685cl5bj/c4f98e2d-0b15-4310-b3e0-0725e330302b.mov ">
</a>
</div>
<video src="https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/sJGviKxfE3Ap685cl5bj/c4f98e2d-0b15-4310-b3e0-0725e330302b.mov ">image.mov</video>
Generate image from image:
<div class='graphite__hidden'>
<div>🎥 Video uploaded on Graphite:</div>
<a href="https://app.graphite.dev/media/video/sJGviKxfE3Ap685cl5bj/2776a55f-cbb7-47ce-8e7d-7cae243fa3e9.mov ">
<img src="https://app.graphite.dev/api/v1/graphite/video/thumbnail/sJGviKxfE3Ap685cl5bj/2776a55f-cbb7-47ce-8e7d-7cae243fa3e9.mov ">
</a>
</div>
<video src="https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/sJGviKxfE3Ap685cl5bj/2776a55f-cbb7-47ce-8e7d-7cae243fa3e9.mov ">image2.mov</video>
Insert presentation on page mode:
<div class='graphite__hidden'>
<div>🎥 Video uploaded on Graphite:</div>
<a href="https://app.graphite.dev/media/video/sJGviKxfE3Ap685cl5bj/4e228fa5-88f4-478c-8b79-647612d5515c.mov ">
<img src="https://app.graphite.dev/api/v1/graphite/video/thumbnail/sJGviKxfE3Ap685cl5bj/4e228fa5-88f4-478c-8b79-647612d5515c.mov ">
</a>
</div>
<video src="https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/sJGviKxfE3Ap685cl5bj/4e228fa5-88f4-478c-8b79-647612d5515c.mov ">ppt.mov</video>
Insert make it real on page mode:
<div class='graphite__hidden'>
<div>🎥 Video uploaded on Graphite:</div>
<a href="https://app.graphite.dev/media/video/sJGviKxfE3Ap685cl5bj/c71139b2-fb55-4d89-84e2-d52eeb905b57.mov ">
<img src="https://app.graphite.dev/api/v1/graphite/video/thumbnail/sJGviKxfE3Ap685cl5bj/c71139b2-fb55-4d89-84e2-d52eeb905b57.mov ">
</a>
</div>
<video src="https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/sJGviKxfE3Ap685cl5bj/c71139b2-fb55-4d89-84e2-d52eeb905b57.mov ">make it real.mov</video>
2024-12-16 10:04:16 +00:00
Brooooooklyn
aaaea8918f
chore: upgrade to eslint9 ( #9163 )
2024-12-14 10:29:04 +00:00
Brooooooklyn
ea746e3d77
chore: disable rules in oxlint ( #9154 )
2024-12-13 10:49:35 +00:00
renovate
ef6068b7c2
chore: bump up @blocksuite/affine version to v0.18.6 ( #9113 )
...
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@blocksuite/affine](https://redirect.github.com/toeverything/blocksuite ) ([source](https://redirect.github.com/toeverything/blocksuite/tree/HEAD/packages/affine/all ), [changelog](https://redirect.github.com/toeverything/blocksuite/blob/master/packages/blocks/CHANGELOG.md )) | [`0.18.5` -> `0.18.6`](https://renovatebot.com/diffs/npm/@blocksuite%2faffine/0.18.5/0.18.6 ) | [](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/blocksuite (@​blocksuite/affine)</summary>
### [`v0.18.6`](https://redirect.github.com/toeverything/blocksuite/blob/HEAD/packages/affine/all/CHANGELOG.md#0186 )
[Compare Source](https://redirect.github.com/toeverything/blocksuite/compare/v0.18.5...v0.18.6 )
##### Patch Changes
- [`d925364`](https://redirect.github.com/toeverything/blocksuite/commit/d925364 ): Blocksuite patch release.
</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 was generated by [Mend Renovate](https://mend.io/renovate/ ). View the [repository job log](https://developer.mend.io/github/toeverything/AFFiNE ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS41OC4xIiwidXBkYXRlZEluVmVyIjoiMzkuNTguMSIsInRhcmdldEJyYW5jaCI6ImNhbmFyeSIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=-->
2024-12-13 02:32:40 +00:00
darkskygit
31146e5213
fix: copilot ci ( #9066 )
2024-12-09 11:11:04 +00:00
akumatus
6b14e1cf10
feat(core): after the user clicks ask ai, the input pops up directly ( #9039 )
...
Issue [AF-1762](https://linear.app/affine-design/issue/AF-1762 ).
Ask AI on edgeless mode:
<div class='graphite__hidden'>
<div>🎥 Video uploaded on Graphite:</div>
<a href="https://app.graphite.dev/media/video/sJGviKxfE3Ap685cl5bj/1218afba-466f-4570-afd4-679b6b09cc8d.mov ">
<img src="https://app.graphite.dev/api/v1/graphite/video/thumbnail/sJGviKxfE3Ap685cl5bj/1218afba-466f-4570-afd4-679b6b09cc8d.mov ">
</a>
</div>
<video src="https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/sJGviKxfE3Ap685cl5bj/1218afba-466f-4570-afd4-679b6b09cc8d.mov ">录屏2024-12-06 09.54.52.mov</video>
Ask AI on page mode:
<div class='graphite__hidden'>
<div>🎥 Video uploaded on Graphite:</div>
<a href="https://app.graphite.dev/media/video/sJGviKxfE3Ap685cl5bj/58d19705-f646-4957-8628-15845b47222b.mov ">
<img src="https://app.graphite.dev/api/v1/graphite/video/thumbnail/sJGviKxfE3Ap685cl5bj/58d19705-f646-4957-8628-15845b47222b.mov ">
</a>
</div>
<video src="https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/sJGviKxfE3Ap685cl5bj/58d19705-f646-4957-8628-15845b47222b.mov ">录屏2024-12-06 09.52.51.mov</video>
2024-12-06 12:12:05 +00:00
pengx17
31bab2507e
feat: enhance markdown preview for backlinks ( #8956 )
...
fix AF-1770
fix AF-1771
---
fix: doc link middlewares
feat: markdown renderer
feat: allow multiple backlink for a single doc
feat: showing correct doc ref link
feat: trim long para & ident lists
feat: list indentition fix
feat: database/latext handling
feat: other block types handling
fix: lint
2024-12-02 10:29:44 +00:00
akumatus
d2eef768ba
fix: ai generation of mindmap fail from note text context ( #8952 )
...
Fix issue [AF-1632](https://linear.app/affine-design/issue/AF-1632 ).
### What Changed?
- Keep the note selection and do not set the widget tool to copilot if asking AI from selection in a note in edgeless mode.
- Remove `content` from `AIImageActionOptions`, using `input` as AI context like other actions.
2024-11-28 02:35:06 +00:00
EYHN
6e25243868
refactor(infra): refactor copilot client ( #8813 )
2024-11-27 06:44:47 +00:00
doodlewind
6ac8cca440
fix(mobile): disable AI chat block peek on mobile ( #8929 )
2024-11-26 11:06:15 +00:00
akumatus
c6ac426b4c
fix: ai ppt preview with toolbar widget ( #8882 )
...
Fix issue [AF-1716](https://linear.app/affine-design/issue/AF-1716 ).
2024-11-21 06:56:26 +00:00
donteatfriedrice
e988be2f86
fix: reduce min height of chat peek view new message container ( #8739 )
2024-11-08 08:23:38 +00:00
donteatfriedrice
aacfb82819
fix: should toggle empty input when generate an image ( #8643 )
2024-11-01 10:45:32 +00:00
darkskygit
7a201984e9
feat(server): add real-world prompt test for copilot apis ( #8629 )
...
fix AF-1432, PD-1176
2024-11-01 07:05:12 +00:00
LongYinan
c08b02caba
Revert "feat: copilot frontend e2e ( #7694 )"
...
This reverts commit d71852789f .
2024-10-31 12:08:57 +08:00
darkskygit
d71852789f
feat: copilot frontend e2e ( #7694 )
2024-10-29 08:56:37 +00:00
donteatfriedrice
343572c5b6
fix: ai text renderer specs ( #8611 )
2024-10-29 01:59:28 +00:00
pengx17
81029db6ce
feat: allow peek view to be closed by the caller && bump bs ( #8542 )
...
depends on https://github.com/toeverything/blocksuite/pull/8558
fix BS-1570
2024-10-28 09:16:35 +00:00
darkskygit
6f1535014d
feat(core): handle copilot errors ( #8546 )
2024-10-22 05:08:10 +00:00
donteatfriedrice
11aa6f63b2
refactor: move chat block to affine ( #8368 )
...
[BS-898](https://linear.app/affine-design/issue/BS-898/move-ai-chat-block-to-affine )
Should be merged after https://github.com/toeverything/blocksuite/pull/8420 merged and bumped.
2024-10-16 12:40:30 +00:00
Don Isaac
9970138009
chore(oxlint): configure rule categories in oxlint.json ( #8494 )
...
Co-authored-by: LongYinan <lynweklm@gmail.com >
2024-10-15 11:20:21 +08:00
Yifeng Wang
a77061e848
feat: add block visibility config ( #8371 )
2024-09-24 17:36:06 +08:00
Saul-Mirone
35e232c61c
feat: migrate to blocksuite/affine ( #8332 )
...
Use `@blocksuite/affine` package for all blocksuite features in affine.
```ts
@blocksuite/store -> @blocksuite/affine/store
@blocksuite/global -> @blocksuite/affine/global
@blocksuite/block-std -> @blocksuite/affine/block-std
@blocksuite/blocks -> @blocksuite/affine/blocks
@blocksuite/presets -> @blocksuite/affine/presets
```
2024-09-20 10:55:47 +00:00
L-Sun
fc9e5fbb65
chore: bump blocksuite ( #8311 )
2024-09-19 10:07:20 +00:00
forehalo
315c20f8e5
fix(core): avoid side effects ( #8245 )
2024-09-18 03:45:20 +00:00
donteatfriedrice
22e1f9c66b
chore: clean up redundant ai preset utils ( #8275 )
2024-09-18 03:20:19 +00:00
Saul-Mirone
bafed8ed01
chore: bump bs to 0.17.10 ( #8251 )
...
- e0d0016: - Fix database performance issue
- Fix frame panel display issue
- Fix editor settings for color with transparency
- Fix portal in modals
- Fix group selection rendering delay
- Remove unused and duplicated code
- Improve frame model
- Improve ParseDocUrl service
- Support custom max zoom
2024-09-13 12:13:22 +00:00
Saul-Mirone
445acfa323
chore: bump bs ( #8227 )
2024-09-13 02:10:16 +00:00
Saul-Mirone
ba81b1a9ca
chore: bump bs ( #8204 )
2024-09-11 12:04:26 +00:00
Saul-Mirone
daa9d9ff5c
chore: bump bs ( #8189 )
2024-09-10 13:48:08 +00:00
donteatfriedrice
9dfd366382
fix: ai error message tip would be cut off ( #8183 )
...
Use `<affine-tooltip>` component that updates the float position when it might be clipped。
Fix: [BS-1386](https://linear.app/affine-design/issue/BS-1386/[bug]-tooltip-位置错误 )
2024-09-10 08:12:05 +00:00
Saul-Mirone
84ebe62edc
chore: bump bs to lts ( #8147 )
2024-09-06 10:54:19 +00:00
akumatus
4bbb94c32d
feat(core): bump blocksuite ( #8114 )
2024-09-05 13:54:56 +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
Saul-Mirone
681f4561fb
chore: bump bs ( #8071 )
2024-09-03 12:12:59 +00:00
Saul-Mirone
56f4634c1f
chore: bump bs with new extension api ( #8042 )
2024-09-02 10:32:22 +00:00
darkskygit
b57388fd85
feat: block slides insert before image load finished ( #7948 )
2024-08-22 17:46:06 +00:00
Saul-Mirone
6b0c398ae5
chore: bump bs ( #7914 )
2024-08-20 00:24:01 +00:00
donteatfriedrice
ba8958f39b
fix: chat block peek view input reset height ( #7884 )
...
[BS-1202](https://linear.app/affine-design/issue/BS-1202/ai-chat-block-输入大段内容发送后输入框-resize-问题 )
2024-08-15 08:08:00 +00:00
donteatfriedrice
ad42418089
fix: add hover enter delay for ask ai button ( #7872 )
...
[AF-1075](https://linear.app/affine-design/issue/AF-1075/双击选中内容的时候,如果-toolbar-出现在内容上方,ai-action-会自动展开 )
2024-08-14 07:27:17 +00:00
EYHN
d2b0ee40a8
fix(core): disable blocksuite indexer ( #7813 )
2024-08-09 08:24:44 +00:00
donteatfriedrice
e1087a0c7b
fix: remove chat block button flag ( #7767 )
2024-08-07 06:31:04 +00:00
donteatfriedrice
352ceca94b
fix: chat action button style ( #7766 )
...
[PD-1547](https://linear.app/affine-design/issue/PD-1547/ui-bug-chat-block-面板生成结果的-action-按钮的高度不对 )
2024-08-07 04:59:26 +00:00
darkskygit
744cc542de
feat: handle copilot error ( #7760 )
...
fix BS-729 CLOUD-32 PD-1529
2024-08-06 11:19:35 +00:00
darkskygit
14669b9ced
feat: improve continue to chat compatibility ( #7757 )
...
fix AF-1152
2024-08-06 09:15:42 +00:00
darkskygit
5872b884a5
fix: increase image limit of copilot ( #7756 )
...
fix AF-1080 AF-1154
2024-08-06 09:15:40 +00:00
darkskygit
f93743dae6
fix: reset height after send ( #7755 )
...
fix PD-1427
2024-08-06 08:25:28 +00:00