diff --git a/frontend/public/index.html b/frontend/public/index.html index 66a4ca12c8..177d14c6d8 100644 --- a/frontend/public/index.html +++ b/frontend/public/index.html @@ -22,5 +22,19 @@
+ + diff --git a/frontend/public/logo-notext.svg b/frontend/public/logo-notext.svg new file mode 100644 index 0000000000..f5cd233feb --- /dev/null +++ b/frontend/public/logo-notext.svg @@ -0,0 +1,116 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/frontend/src/layouts/AppLayout/index.tsx b/frontend/src/layouts/AppLayout/index.tsx index 2f81950665..c0bfbed01c 100644 --- a/frontend/src/layouts/AppLayout/index.tsx +++ b/frontend/src/layouts/AppLayout/index.tsx @@ -137,6 +137,11 @@ const AppLayout: React.FC<{ children: React.ReactNode }> = ({ children }) => { const ThemeIcon = THEME_ICON_MAP[systemMode]; + const askAi = () => { + window.document.body.focus(); + window?.Kapa?.open(); + }; + return ( @@ -148,12 +153,6 @@ const AppLayout: React.FC<{ children: React.ReactNode }> = ({ children }) => { logo: { src: logo, alt: 'Dstack logo' }, }} utilities={[ - process.env.UI_VERSION === 'sky' && { - type: 'button', - iconName: 'gen-ai', - title: t('common.tutorial_other'), - onClick: toggleTutorialPanel, - }, { type: 'button', text: t('common.docs'), @@ -172,6 +171,19 @@ const AppLayout: React.FC<{ children: React.ReactNode }> = ({ children }) => { iconSvg: , onClick: onChangeSystemModeToggle, }, + process.env.UI_VERSION === 'sky' && { + type: 'button', + iconName: 'gen-ai', + text: t('common.ask_ai'), + title: t('common.ask_ai'), + onClick: askAi, + }, + process.env.UI_VERSION === 'sky' && { + type: 'button', + iconName: 'suggestions', + title: t('common.tutorial_other'), + onClick: toggleTutorialPanel, + }, { 'data-class': 'user-menu', type: 'menu-dropdown', diff --git a/frontend/src/locale/en.json b/frontend/src/locale/en.json index fd6e9ec928..15b7c9cc5d 100644 --- a/frontend/src/locale/en.json +++ b/frontend/src/locale/en.json @@ -48,7 +48,8 @@ "danger_zone": "Danger Zone", "control_plane": "Control plane", "refresh": "Refresh", - "quickstart": "Quickstart" + "quickstart": "Quickstart", + "ask_ai": "Ask AI" }, "auth": {