fix: chat session cannot delete (#14312)

fix #14309



#### PR Dependency Tree


* **PR #14312** 👈

This tree was auto-generated by
[Charcoal](https://github.com/danerwilliams/charcoal)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **New Features**
* Added AI chat session deletion with confirmation dialogs and
success/failure notifications.
* Localized AI chat panel labels, loading messages, and session
management text across multiple languages.

* **Documentation**
* Added internationalization support for chat panel titles, history
loading states, and deletion confirmations.

<sub>✏️ Tip: You can customize this high-level summary in your review
settings.</sub>

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
DarkSky
2026-01-26 19:47:47 +08:00
committed by GitHub
parent 5498133627
commit 27ed15a83e
11 changed files with 306 additions and 104 deletions
@@ -89,6 +89,7 @@ const AllDocsButton = () => {
};
const AIChatButton = () => {
const t = useI18n();
const featureFlagService = useService(FeatureFlagService);
const serverService = useService(ServerService);
const serverFeatures = useLiveData(serverService.server.features$);
@@ -108,7 +109,9 @@ const AIChatButton = () => {
return (
<MenuLinkItem icon={<AiOutlineIcon />} active={aiChatActive} to={'/chat'}>
<span data-testid="ai-chat">Intelligence</span>
<span data-testid="ai-chat">
{t['com.affine.workspaceSubPath.chat']()}
</span>
</MenuLinkItem>
);
};