Skip to content

ServerKit is a lightweight, modern server control panel for managing web applications, databases, and services on your VPS or dedicated server. Built with Python/Flask backend and React frontend.

feat(ai): dock the assistant into the shell console; drop Prompture branding

Juan Denis3f3ff156f18b
diff --git a/frontend/src/components/ai/ChatDrawer.jsx b/frontend/src/components/ai/ChatDrawer.jsx
index ca8763b1..96990984 100644
--- a/frontend/src/components/ai/ChatDrawer.jsx
+++ b/frontend/src/components/ai/ChatDrawer.jsx
@@ -7,6 +7,7 @@ import DrawerHeader from './DrawerHeader';
import ContextChip from './ContextChip';
import MessageList from './MessageList';
import Composer from './Composer';
+import ShellDockTabs from '../ShellDockTabs';
import { useTranslation } from 'react-i18next';
const WIDTH_KEY = 'sk-ai:width';
@@ -65,6 +66,9 @@ const ChatDrawer = () => {
{!isMobile ? (
<div className="sk-ai-drawer__resize" onPointerDown={startResize} aria-hidden="true" />
) : null}
+ <div className="sk-ai-drawer__tabs">
+ <ShellDockTabs expandable={false} />
+ </div>
<DrawerHeader />
<ContextChip />
<MessageList />
diff --git a/frontend/src/components/ai/DrawerHeader.jsx b/frontend/src/components/ai/DrawerHeader.jsx
index 6e2c6a33..09902214 100644
--- a/frontend/src/components/ai/DrawerHeader.jsx
+++ b/frontend/src/components/ai/DrawerHeader.jsx
@@ -1,11 +1,13 @@
import { useNavigate } from 'react-router-dom';
-import { Settings, X } from 'lucide-react';
+import { Settings } from 'lucide-react';
import { useAuth } from '../../contexts/AuthContext';
import { useServerkitAI } from '../../contexts/AIContext';
import ModeToggle from './ModeToggle';
import ConversationMenu from './ConversationMenu';
import { useTranslation } from 'react-i18next';
+// Slim toolbar under the shared console tabs. Close lives in the tab strip
+// above, so this row carries only the assistant-specific controls.
const DrawerHeader = () => {
const { t } = useTranslation();
const { close } = useServerkitAI();
@@ -16,7 +18,6 @@ const DrawerHeader = () => {
<header className="sk-ai-header">
<div className="sk-ai-header__title">
<span className="sk-ai-header__name">{t('app.drawerHeader.serverkitAi', 'ServerKit AI')}</span>
- <span className="sk-ai-header__by">{t('app.drawerHeader.poweredByPrompture', 'powered by Prompture')}</span>
</div>
<div className="sk-ai-header__actions">
<ModeToggle />
@@ -31,9 +32,6 @@ const DrawerHeader = () => {
<Settings size={16} />
</button>
) : null}
- <button type="button" className="sk-ai-iconbtn" aria-label={t('app.drawerHeader.closeAssistant', 'Close assistant')} onClick={close}>
- <X size={16} />
- </button>
</div>
</header>
);
diff --git a/frontend/src/components/ai/MessageList.jsx b/frontend/src/components/ai/MessageList.jsx
index 4b68e360..4e030eac 100644
--- a/frontend/src/components/ai/MessageList.jsx
+++ b/frontend/src/components/ai/MessageList.jsx
@@ -42,7 +42,7 @@ const MessageList = () => {
<div className="sk-ai-empty">
<div className="sk-ai-empty__icon"><Sparkles size={22} /></div>
<h3 className="sk-ai-empty__title">{t('app.messageList.serverkitAi', 'ServerKit AI')}</h3>
- <p className="sk-ai-empty__sub">{t('app.messageList.poweredByPrompture', 'powered by Prompture')}</p>
+ <p className="sk-ai-empty__sub">{t('app.messageList.askAboutThisPage', 'Ask about this page, or anything on this server.')}</p>
{!providerConfigured ? (
<p className="sk-ai-empty__hint">
{t('app.messageList.theAssistantIsnTConfiguredYet', 'The assistant isn\'t configured yet. An admin can set a provider in')}
diff --git a/frontend/src/styles/components/_ai-assistant.scss b/frontend/src/styles/components/_ai-assistant.scss
index 7927c98a..b37cf9f4 100644
--- a/frontend/src/styles/components/_ai-assistant.scss
+++ b/frontend/src/styles/components/_ai-assistant.scss
@@ -133,6 +133,17 @@ body:has(.ui-sheet-content[data-state='open']) .sk-ai-bubble {
}
}
+// Shared console tab strip riding on top of the drawer — the assistant is the
+// right-docked tab of the same console the bottom panels belong to.
+.sk-ai-drawer__tabs {
+ display: flex;
+ align-items: center;
+ flex: 0 0 auto;
+ min-height: 38px;
+ padding: 0 8px;
+ border-bottom: 1px solid var(--sk-ai-border);
+}
+
.sk-ai-drawer__resize {
position: absolute;
top: 0;