akumatus
d991149faa
feat(core): add matched context documents to ai prompt ( #11148 )
...
Close [BS-2834](https://linear.app/affine-design/issue/BS-2834 ).
### What Changed?
- Change `reference_index` from chip order to increasing positive integer.
- Add matched context documents to ai prompt.
2025-03-26 01:55:54 +00:00
akumatus
c019d97448
refactor(core): use unsafeCSSVar instead of var ( #11188 )
2025-03-25 16:49:06 +00:00
zzj3720
af18656759
fix(editor): clear the search text after selecting a member and add whitelist for image attachment ( #11063 )
...
fix: BS-2860, BS-2857
2025-03-25 16:05:06 +00:00
akumatus
aefbc11aab
feat(core): add candidates popover in ai chat-panel ( #11178 )
...
Close [BS-2853](https://linear.app/affine-design/issue/BS-2853 ).
2025-03-25 15:50:11 +00:00
akumatus
db4406f950
fix(core): no search result in ai chat-panel ( #11157 )
...
Close [BS-2466](https://linear.app/affine-design/issue/BS-2466 ).
2025-03-25 14:36:05 +00:00
EYHN
3df51a217d
feat(core): add use guard hook ( #11180 )
...
Previously, we used `useLiveData(guardService.can$())` to get the guard result, but `guardService.can$()` will request the server to revalidate the permission when calling it, will cause additional network requests when re-render.
This pr make a new hook `useGuard` to fix this problem.
And the side effect in `can$` is moved to `revalidateCan()` to make that the subscribe method is pure
2025-03-25 14:15:29 +00:00
Saul-Mirone
1871428021
feat(editor): extensionize clipboards ( #11172 )
2025-03-25 12:09:24 +00:00
Saul-Mirone
e84c60f53d
feat(editor): add provider for base adapter ( #11169 )
2025-03-25 12:09:23 +00:00
Saul-Mirone
df057b4c12
feat(editor): edgeless clipboard config extension ( #11168 )
2025-03-25 12:09:23 +00:00
darkskygit
1bb324eeed
feat(server): update gql endpoint & workspace doc match test ( #11104 )
2025-03-25 10:09:22 +00:00
fundon
63762b75a1
feat(core): save recent open mode of internal links ( #11086 )
...
Closes: [BS-2865](https://linear.app/affine-design/issue/BS-2865/internal-links-保存用户最近的打开方式 )
Added `openDocMode` in settings.
https://github.com/user-attachments/assets/a452da73-83e4-4ef5-9b57-58291fc22785
2025-03-24 06:12:47 +00:00
Saul-Mirone
5525c2bc8d
refactor(editor): move mindmap view to mindmap package ( #11102 )
2025-03-24 03:14:23 +00:00
akumatus
331dd67e69
feat(core): add copilot tags and collections graphql apis ( #11076 )
...
Close [BS-2834](https://linear.app/affine-design/issue/BS-2834 ).
### What Changed?
- Add `addContextCategoryMutation` and `removeContextCategoryMutation` graphql apis.
- Provide tag and collection apis for front-end components.
2025-03-22 15:15:42 +00:00
akumatus
a5b975ac46
feat(core): suggest reference docs as candidate chips ( #11050 )
...
Close [BS-2464](https://linear.app/affine-design/issue/BS-2464 ).

2025-03-21 05:09:20 +00:00
Saul-Mirone
57388e4cf7
feat(editor): footnote inline package ( #11049 )
2025-03-20 16:18:22 +00:00
Saul-Mirone
e5e429e7b2
feat(editor): add inline packages ( #11048 )
2025-03-20 13:47:35 +00:00
pengx17
fad49bb070
feat(editor): audio block ( #10947 )
...
AudioMedia entity for loading & controlling a single audio media
AudioMediaManagerService: Global audio state synchronization across tabs
AudioAttachmentService + AudioAttachmentBlock for manipulating AttachmentBlock in affine - e.g., filling transcription (using mock endpoint for now)
Added AudioBlock + AudioPlayer for rendering audio block in affine (new transcription block whose renderer is provided in affine)
fix AF-2292
fix AF-2337
2025-03-20 12:46:15 +00:00
zzj3720
8a5393ea50
fix(editor): some bugs of member column ( #11033 )
...
fix: BS-2840
2025-03-20 12:24:25 +00:00
L-Sun
da63d51b7e
refactor(editor): group and expose parameters of createButtonPopper ( #10999 )
2025-03-20 08:37:59 +00:00
akumatus
6ff19ca307
feat(core): hybird search for docs, tags and collections ( #11008 )
...
Close [BS-2466](https://linear.app/affine-design/issue/BS-2466 ).

2025-03-20 08:21:25 +00:00
zzj3720
c355644d47
fix(editor): some bugs of attachment column ( #11031 )
...
fix: BS-2838, BS-2837, BS-2836
2025-03-20 07:48:26 +00:00
JimmFly
d47bb64597
feat(core): add no access to share menu ( #10927 )
2025-03-20 07:31:11 +00:00
akumatus
bd5d930490
feat(core): document search shows up to three results ( #11002 )
...
Close [BS-2828](https://linear.app/affine-design/issue/BS-2828 ).

2025-03-20 06:55:56 +00:00
yoyoyohamapi
8cfdc48b57
refactor(core): ai message style ( #10950 )
...
### TL;DR
Refactor style of AI chat message
> CLOSE AF-2338, AF-2328, AF-2327
### What Changed
* Adjust style of chat action message
* Adjust style of chat error message
* Refactor style of chat message box
2025-03-20 06:39:27 +00:00
yoyoyohamapi
99491eb3c5
refactor(core): reorganize chat-panel components ( #10935 )
...
### TL;DR
Split complex chat message component into smaller, reusable units with finer granularity
> CLOSE AF-2323 AF-2326
### What Changed
* Split messages into components:
* `<chat-message-assistant />`
* `<chat-message-user />`
* `<chat-message-action />`
* Split message content into types:
* `<chat-content-images />`
* `<chat-content-rich-text />`
* `<chat-content-pure-text />`
2025-03-20 06:39:27 +00:00
yoyoyohamapi
5aa36efab0
refactor(core): simplify chat panel user message rendering ( #10910 )
...
### TL;DR
Refactor style of user chat message
> CLOSE AF-2323 AF-2324 AF-2325
### What Changed
* Refactor style of user message.
* Refactor style of image message.
2025-03-20 04:59:10 +00:00
fundon
8b995ea420
chore(editor): remove edgeless element toolbar ( #10900 )
2025-03-20 02:08:21 +00:00
fundon
831f290f84
refactor(editor): edgeless toolbar chevron down icon ( #10898 )
2025-03-20 02:08:20 +00:00
fundon
ccc210f88a
refactor(core): edgeless toolbar ai action config extension ( #10884 )
2025-03-20 02:08:19 +00:00
fundon
ac705c724e
refactor(editor): edgeless toolbar linked doc custom config extension ( #10883 )
2025-03-20 02:08:19 +00:00
fundon
07a64eb004
refactor(editor): edgeless toolbar lock and unlock actions ( #10878 )
2025-03-20 02:08:16 +00:00
akumatus
ee337a16af
feat(core): support collection search for ai chat ( #10987 )
...
Close [BS-2787](https://linear.app/affine-design/issue/BS-2787 ).
Close [BS-2788](https://linear.app/affine-design/issue/BS-2788 ).

2025-03-20 00:34:12 +00:00
Saul-Mirone
1c6a876e6a
refactor(editor): improve config extension ( #11006 )
2025-03-19 13:38:10 +00:00
Saul-Mirone
c1e16aeaa7
refactor(editor): remove paragraph service ( #11003 )
2025-03-19 13:38:09 +00:00
fundon
e686a6aecc
refactor(editor): edgeless internal embed card toolbar config extension ( #10717 )
2025-03-19 12:34:17 +00:00
yoyoyohamapi
afc4158f47
refactor(core): separate rendering logic for user and assistant messages ( #10909 )
...
### TL;DR
Separate rendering logic for user and assistant messages.
> CLOSE AF-2323
### What Changed
- Rendering user message with `<chat-panel-message-user />` component.
- Rendering assistant message with `<chat-panel-message-assistant />` Component
2025-03-19 10:28:56 +00:00
akumatus
47206b8d47
feat(core): support tag search for ai chat ( #10965 )
...
Close [BS-2785](https://linear.app/affine-design/issue/BS-2785 ).
Close [BS-2786](https://linear.app/affine-design/issue/BS-2786 ).

2025-03-19 04:22:11 +00:00
akumatus
b470eafd55
feat(core): add keyboard event listener to ai popover ( #10952 )
...
Close [BS-2827](https://linear.app/affine-design/issue/BS-2827 ).
2025-03-19 04:22:10 +00:00
akumatus
efe7e1d527
feat(core): add tags and collections menu item ( #10951 )
...
Close [BS-2827](https://linear.app/affine-design/issue/BS-2827 ).

2025-03-19 04:22:09 +00:00
fundon
7f4b56e05c
refactor(editor): edgeless external embed card toolbar config extension ( #10712 )
2025-03-19 04:05:36 +00:00
pengx17
a118cbd036
fix(editor): chat panel text render link preview base url ( #10791 )
...
fix AF-2322
2025-03-19 03:19:09 +00:00
fundon
d8567e669a
refactor(editor): edgeless bookmark toolbar config extension ( #10711 )
2025-03-19 02:24:26 +00:00
fundon
3cce147c60
refactor(editor): improve query methods in toolbar context ( #10714 )
2025-03-19 00:52:22 +00:00
fundon
cb37d25d7b
refactor(editor): edgeless element toolbar with new pattern ( #10511 )
2025-03-18 15:36:25 +00:00
zzj3720
3939cc1c52
feat(editor): support file column and member column for database block ( #10932 )
...
close: BS-2630, BS-2631, BS-2629, BS-2632, BS-2635
2025-03-18 14:51:45 +00:00
Saul-Mirone
321e3449ec
fix(editor): block can be null in widget ( #10959 )
...
Closes: [BS-2826](https://linear.app/affine-design/issue/BS-2826/typeerror-thisblock-is-null )
2025-03-18 10:58:19 +00:00
pengx17
a016630a82
feat(electron): create recording through tray ( #10526 )
...
- added tray menu for controlling recording status
- recording watcher for monitoring system audio input events
2025-03-18 04:12:30 +00:00
akumatus
05329e96c7
fix(core): add timeout params to graphql request options ( #10919 )
...
Close [BS-2813](https://linear.app/affine-design/issue/BS-2813 ).
2025-03-18 03:53:47 +00:00
Saul-Mirone
3de7d85eea
feat(editor): improve api for store, and add docs ( #10941 )
2025-03-17 16:30:59 +00:00
akumatus
363c9799f3
fix(core): chat-panel ui ( #10928 )
...
Close [AF-2332](https://linear.app/affine-design/issue/AF-2332 ).
Close [AF-2333](https://linear.app/affine-design/issue/AF-2333 ).
2025-03-17 10:53:55 +00:00