mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 21:27:20 +00:00
feat(core): selected context ui (#13379)
<img width="1133" height="982" alt="截屏2025-07-31 17 56 24" src="https://github.com/user-attachments/assets/5f2d577b-5b25-44ed-896a-17fe212de0f8" /> <img width="1151" height="643" alt="截屏2025-07-31 17 55 32" src="https://github.com/user-attachments/assets/b2320023-ab75-4455-9c24-d133fda1b7e1" /> > CLOSE AF-2771 AF-2772 AF-2778 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added support for sending detailed object information (JSON snapshot and markdown) to AI when using "Continue with AI", enhancing AI's context awareness. * Introduced a new chip type for selected context attachments in the AI chat interface, allowing users to manage and view detailed context fragments. * Added feature flags to enable or disable sending detailed context objects to AI and to require journal confirmation. * New settings and localization for the "Send detailed object information to AI" feature. * **Improvements** * Enhanced chat input and composer to handle context processing states and prevent sending messages while context is being processed. * Improved context management with batch addition and removal of context blobs. * **Bug Fixes** * Fixed UI rendering to properly display and manage new selected context chips. * **Documentation** * Updated localization and settings to reflect new experimental AI features. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -5964,6 +5964,14 @@ export function useAFFiNEI18N(): {
|
||||
* `Once enabled, you can preview adapter export content in the right side bar.`
|
||||
*/
|
||||
["com.affine.settings.workspace.experimental-features.enable-adapter-panel.description"](): string;
|
||||
/**
|
||||
* `Send detailed object information to AI`
|
||||
*/
|
||||
["com.affine.settings.workspace.experimental-features.enable-ai-send-detailed-object.name"](): string;
|
||||
/**
|
||||
* `When toggled off, every time you choose "Continue with AI", AI only got a screenshot.`
|
||||
*/
|
||||
["com.affine.settings.workspace.experimental-features.enable-ai-send-detailed-object.description"](): string;
|
||||
/**
|
||||
* `Only an owner can edit the workspace avatar and name. Changes will be shown for everyone.`
|
||||
*/
|
||||
|
||||
@@ -1491,6 +1491,8 @@
|
||||
"com.affine.settings.workspace.experimental-features.enable-code-block-html-preview.description": "Once enabled, you can preview HTML in code block.",
|
||||
"com.affine.settings.workspace.experimental-features.enable-adapter-panel.name": "Adapter Panel",
|
||||
"com.affine.settings.workspace.experimental-features.enable-adapter-panel.description": "Once enabled, you can preview adapter export content in the right side bar.",
|
||||
"com.affine.settings.workspace.experimental-features.enable-ai-send-detailed-object.name": "Send detailed object information to AI",
|
||||
"com.affine.settings.workspace.experimental-features.enable-ai-send-detailed-object.description": "When toggled off, every time you choose \"Continue with AI\", AI only got a screenshot.",
|
||||
"com.affine.settings.workspace.not-owner": "Only an owner can edit the workspace avatar and name. Changes will be shown for everyone.",
|
||||
"com.affine.settings.workspace.preferences": "Preference",
|
||||
"com.affine.settings.workspace.billing": "Team's Billing",
|
||||
|
||||
Reference in New Issue
Block a user