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