chore(core): adjust order and label of ai entrance (#13059)

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

## Summary by CodeRabbit

* **Style**
  * Updated the label text in the AI chat button to "Intelligent".
* Adjusted the position of the AI chat button in the sidebar for
improved layout.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
Cats Juice
2025-07-07 12:02:07 +08:00
committed by GitHub
parent 0d2fbaf3ea
commit e27dc68276

View File

@@ -98,7 +98,7 @@ const AIChatButton = () => {
return (
<MenuLinkItem icon={<AiIcon />} active={aiChatActive} to={'/chat'}>
<span data-testid="ai-chat">AFFiNE Intelligent</span>
<span data-testid="ai-chat">Intelligent</span>
</MenuLinkItem>
);
};
@@ -198,10 +198,10 @@ export const RootAppSidebar = memo((): ReactElement => {
/>
<AddPageButton />
</div>
<AIChatButton />
<AllDocsButton />
<AppSidebarJournalButton />
{sessionStatus === 'authenticated' && <NotificationButton />}
<AIChatButton />
<MenuItem
data-testid="slider-bar-workspace-setting-button"
icon={<SettingsIcon />}