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: redesign app shell and file manager

Juan Denis6eb7e5433ddb
diff --git a/frontend/src/components/GlobalStatusBar.jsx b/frontend/src/components/GlobalStatusBar.jsx
new file mode 100644
index 00000000..683db9ca
--- /dev/null
+++ b/frontend/src/components/GlobalStatusBar.jsx
@@ -0,0 +1,388 @@
+import { useEffect, useMemo, useState } from 'react';
+import { useNavigate } from 'react-router-dom';
+import {
+ Activity, Bell, BookOpenCheck, Building2, Check, ChevronUp,
+ Command, Server, ShieldAlert, Sparkles, X,
+} from 'lucide-react';
+import { useTranslation } from 'react-i18next';
+
+import api from '../services/api';
+import { useAuth } from '../contexts/AuthContext';
+import { useNotifications } from '../contexts/NotificationsContext';
+import { useOperations } from '../contexts/OperationsContext';
+import { useServerkitAI } from '../contexts/AIContext';
+import { useWalkthroughs } from '../contexts/walkthroughContextValue';
+import { useWorkspace } from '../contexts/WorkspaceContext';
+import { timeAgo } from '../utils/time';
+
+const SERVER_SCOPE_KEY = 'serverkit.activeServerScope';
+
+function readServerScope() {
+ try { return localStorage.getItem(SERVER_SCOPE_KEY) || 'local'; } catch { return 'local'; }
+}
+
+function statusTone(server) {
+ const value = String(server?.status || server?.agent_status || '').toLowerCase();
+ if (['offline', 'failed', 'error', 'disconnected'].some((state) => value.includes(state))) return 'down';
+ if (['pending', 'warning', 'idle', 'unknown'].some((state) => value.includes(state))) return 'idle';
+ return 'online';
+}
+
+function alertTone(item) {
+ if (item?.severity === 'critical') return 'critical';
+ if (item?.severity === 'warning') return 'warning';
+ if (item?.severity === 'success') return 'success';
+ return 'info';
+}
+
+function AlertsPanel({ onClose }) {
+ const { t } = useTranslation();
+ const navigate = useNavigate();
+ const notifications = useNotifications();
+ const [view, setView] = useState('attention');
+ const {
+ items = [], loading, markRead, markAllRead, dismissNotice,
+ } = notifications || {};
+
+ const visibleItems = useMemo(() => (
+ view === 'all'
+ ? items
+ : items.filter((item) => (
+ item.kind === 'notice'
+ || item.severity === 'critical'
+ || item.severity === 'warning'
+ ))
+ ), [items, view]);
+
+ const openItem = (item) => {
+ if (item.kind !== 'notice' && !item.read && markRead) markRead(item.delivery_id);
+ if (item.action_path) {
+ navigate(item.action_path);
+ onClose();
+ }
+ };
+
+ return (
+ <section className="shell-panel shell-alerts" aria-label={t('notifications.heading', 'Notifications')}>
+ <header className="shell-panel__head">
+ <div className="shell-panel__tabs" role="tablist">
+ <button
+ type="button"
+ className={view === 'attention' ? 'is-active' : ''}
+ onClick={() => setView('attention')}
+ role="tab"
+ aria-selected={view === 'attention'}
+ >
+ {t('app.operationsDock.needsAttention', 'Needs attention')}
+ </button>
+ <button
+ type="button"
+ className={view === 'all' ? 'is-active' : ''}
+ onClick={() => setView('all')}
+ role="tab"
+ aria-selected={view === 'all'}
+ >
+ {t('notifications.everything', 'Everything')}
+ </button>
+ </div>
+ <span className="shell-panel__spacer" />
+ {items.some((item) => item.kind !== 'notice' && !item.read) && (
+ <button type="button" className="shell-panel__action" onClick={markAllRead}>
+ <Check size={13} /> {t('notifications.markAllRead', 'Mark all read')}
+ </button>
+ )}
+ <button
+ type="button"
+ className="shell-panel__close"
+ onClick={onClose}
+ aria-label={t('common.actions.close', 'Close')}
+ >
+ <X size={15} />
+ </button>
+ </header>
+
+ <div className="shell-alerts__list">
+ {loading && items.length === 0 ? (
+ <div className="shell-panel__empty">{t('common.state.loading', 'Loading')}</div>
+ ) : visibleItems.length === 0 ? (
+ <div className="shell-panel__empty">{t('notifications.empty', 'You’re all caught up.')}</div>
+ ) : visibleItems.map((item) => (
+ <div
+ key={item.delivery_id || item.notice_id}
+ className={`shell-alerts__row is-${alertTone(item)}${item.read ? ' is-read' : ''}`}
+ >
+ <button type="button" className="shell-alerts__hit" onClick={() => openItem(item)}>
+ <span className="shell-alerts__dot" aria-hidden="true" />
+ <span className="shell-alerts__copy">
+ <strong>{item.title}</strong>
+ {item.body && <span>{item.body}</span>}
+ </span>
+ <span className="shell-alerts__meta mono">
+ {item.kind === 'notice'
+ ? item.action_label || t('notifications.review', 'Review')
+ : timeAgo(item.created_at)}
+ </span>
+ </button>
+ {item.kind === 'notice' && (
+ <button
+ type="button"
+ className="shell-alerts__dismiss"
+ onClick={() => dismissNotice?.(item.notice_id)}
+ aria-label={t('notifications.dismissItem', 'Dismiss {{title}}', { title: item.title })}
+ >
+ <X size={14} />
+ </button>
+ )}
+ </div>
+ ))}
+ </div>
+
+ <footer className="shell-panel__footer">
+ <span>{t('notifications.recentActivity', 'Recent system and delivery activity')}</span>
+ <button type="button" onClick={() => { navigate('/notifications'); onClose(); }}>
+ {t('notifications.seeAll', 'See all notifications')}
+ </button>
+ </footer>
+ </section>
+ );
+}
+
+export default function GlobalStatusBar({ onOpenPalette }) {
+ const { t } = useTranslation();
+ const navigate = useNavigate();
+ const { isAdmin } = useAuth();
+ const notifications = useNotifications();
+ const {
+ activeOperations, attentionOperations, collapsed, setCollapsed,
+ } = useOperations();
+ const {
+ open: recipesOpen, setOpen: setRecipesOpen, activeWalkthrough, activeProgress,
+ } = useWalkthroughs();
+ const {
+ isOpen: assistantOpen, unread: assistantUnread, close: closeAssistant, toggle: toggleAssistant,
+ } = useServerkitAI();
+ const {
+ activeWorkspaceId, clearActiveWorkspace, setActiveWorkspace,
+ } = useWorkspace();
+ const [workspaces, setWorkspaces] = useState([]);
+ const [servers, setServers] = useState([]);
+ const [serverId, setServerId] = useState(readServerScope);
+ const [alertsOpen, setAlertsOpen] = useState(false);
+ const [setupHealth, setSetupHealth] = useState(null);
+
+ useEffect(() => {
+ let alive = true;
+ Promise.all([
+ api.getWorkspaces().catch(() => ({ workspaces: [] })),
+ api.getAvailableServers().catch(() => []),
+ isAdmin ? api.getSetupHealth().catch(() => null) : Promise.resolve(null),
+ ]).then(([workspaceData, serverData, healthData]) => {
+ if (!alive) return;
+ setWorkspaces(workspaceData?.workspaces || []);
+ setServers(Array.isArray(serverData) ? serverData : []);
+ setSetupHealth(healthData);
+ });
+ return () => { alive = false; };
+ }, [isAdmin]);
+
+ useEffect(() => {
+ const availableIds = new Set(['local', ...servers.map((server) => String(server.id))]);
+ if (!availableIds.has(String(serverId))) setServerId('local');
+ }, [serverId, servers]);
+
+ useEffect(() => {
+ if (!alertsOpen) return undefined;
+ notifications?.refresh?.();
+ const onEscape = (event) => {
+ if (event.key === 'Escape') setAlertsOpen(false);
+ };
+ window.addEventListener('keydown', onEscape);
+ return () => window.removeEventListener('keydown', onEscape);
+ }, [alertsOpen, notifications]);
+
+ const workspaceName = workspaces.find(
+ (workspace) => String(workspace.id) === activeWorkspaceId,
+ )?.name || t('app.workspaceSwitcher.allWorkspaces2', 'All workspaces');
+ const scopedServers = useMemo(() => ([
+ { id: 'local', name: t('app.dashboard.localThisServer', 'Local (this server)'), status: 'online' },
+ ...servers.filter((server) => String(server.id) !== 'local'),
+ ]), [servers, t]);
+ const selectedServer = scopedServers.find(
+ (server) => String(server.id) === String(serverId),
+ ) || scopedServers[0];
+ const runningCount = activeOperations.length;
+ const attentionCount = attentionOperations.length;
+ const unreadCount = notifications?.unreadCount || 0;
+ const setupSummary = setupHealth?.summary;
+
+ const changeWorkspace = (event) => {
+ const value = event.target.value;
+ if (value === 'all') clearActiveWorkspace();
+ else {
+ const workspace = workspaces.find((item) => String(item.id) === value);
+ if (workspace) setActiveWorkspace(workspace);
+ }
+ window.location.reload();
+ };
+
+ const changeServer = (event) => {
+ const value = event.target.value;
+ setServerId(value);
+ try { localStorage.setItem(SERVER_SCOPE_KEY, value); } catch { /* ignore */ }
+ window.dispatchEvent(new CustomEvent('serverkit:server-scope', { detail: { serverId: value } }));
+ };
+
+ const toggleOperations = () => {
+ setAlertsOpen(false);
+ setRecipesOpen(false);
+ closeAssistant();
+ setCollapsed(!collapsed);
+ };
+
+ const toggleRecipes = () => {
+ setCollapsed(true);
+ setAlertsOpen(false);
+ closeAssistant();
+ setRecipesOpen(!recipesOpen);
+ };
+
+ const toggleAlerts = () => {
+ setCollapsed(true);
+ setRecipesOpen(false);
+ closeAssistant();
+ setAlertsOpen(!alertsOpen);
+ };
+
+ const openAssistant = () => {
+ setCollapsed(true);
+ setRecipesOpen(false);
+ setAlertsOpen(false);
+ toggleAssistant();
+ };
+
+ return (
+ <>
+ {alertsOpen && <AlertsPanel onClose={() => setAlertsOpen(false)} />}
+ <footer className="global-statusbar" aria-label={t('app.statusbar.shellStatus', 'ServerKit status and tools')}>
+ <label className="statusbar-select statusbar-select--workspace" title={t('app.workspaceSwitcher.activeWorkspace', 'Active workspace')}>
+ <Building2 size={13} aria-hidden="true" />
+ <span className="statusbar-select__value">{workspaceName}</span>
+ <ChevronUp size={12} aria-hidden="true" />
+ <select value={activeWorkspaceId} onChange={changeWorkspace} aria-label={t('app.workspaceSwitcher.activeWorkspace', 'Active workspace')}>
+ <option value="all">{t('app.workspaceSwitcher.allWorkspaces2', 'All workspaces')}</option>
+ {workspaces.map((workspace) => (
+ <option key={workspace.id} value={String(workspace.id)}>{workspace.name}</option>
+ ))}
+ </select>
+ </label>
+
+ <span className="global-statusbar__separator" aria-hidden="true" />
+
+ <label className="statusbar-select" title={t('app.statusbar.activeServer', 'Active server')}>
+ <span className={`global-statusbar__dot is-${statusTone(selectedServer)}`} aria-hidden="true" />
+ <Server size={13} className="global-statusbar__mobile-icon" aria-hidden="true" />
+ <span className="statusbar-select__value mono">{selectedServer.name || selectedServer.id}</span>
+ <ChevronUp size={12} aria-hidden="true" />
+ <select value={String(serverId)} onChange={changeServer} aria-label={t('app.statusbar.activeServer', 'Active server')}>
+ {scopedServers.map((server) => (
+ <option key={server.id} value={String(server.id)}>{server.name || server.id}</option>
+ ))}
+ </select>
+ </label>
+
+ <span className="global-statusbar__separator" aria-hidden="true" />
+
+ <button
+ type="button"
+ className={`global-statusbar__segment${!collapsed ? ' is-active' : ''}`}
+ onClick={toggleOperations}
+ aria-expanded={!collapsed}
+ aria-label={t('app.operationsDock.title', 'Operations')}
+ >
+ <Activity size={13} />
+ <span>{t('app.operationsDock.title', 'Operations')}</span>
+ <span className="global-statusbar__muted mono">
+ {runningCount
+ ? t('app.statusbar.runningCount', '{{count}} running', { count: runningCount })
+ : t('app.statusbar.idle', 'idle')}
+ </span>
+ {attentionCount > 0 && <span className="global-statusbar__pip is-warning" aria-hidden="true" />}
+ </button>
+
+ <span className="global-statusbar__separator" aria-hidden="true" />
+ <button
+ type="button"
+ className={`global-statusbar__segment${recipesOpen ? ' is-active' : ''}`}
+ onClick={toggleRecipes}
+ aria-expanded={recipesOpen}
+ aria-label={activeWalkthrough?.title || t('app.walkthroughs.recipes', 'Recipes')}
+ >
+ <BookOpenCheck size={13} />
+ <span>{activeWalkthrough?.title || t('app.walkthroughs.recipes', 'Recipes')}</span>
+ {activeWalkthrough && (
+ <span className="global-statusbar__muted mono">{activeProgress?.count || 0}/{activeProgress?.total || 0}</span>
+ )}
+ </button>
+
+ <span className="global-statusbar__spacer" />
+
+ {setupSummary && (
+ <button
+ type="button"
+ className="global-statusbar__segment global-statusbar__setup"
+ onClick={() => navigate('/monitoring/doctor')}
+ title={t('app.setupHealthWidget.setupHealth3', 'Setup Health')}
+ >
+ <ShieldAlert size={13} />
+ <span className="global-statusbar__muted mono">
+ {t('app.statusbar.setupScore', 'setup {{score}}%', { score: setupSummary.score })}
+ </span>
+ <progress max="100" value={setupSummary.score} aria-label={t('app.setupHealthWidget.progress', 'Setup health progress')} />
+ </button>
+ )}
+
+ <span className="global-statusbar__separator" aria-hidden="true" />
+
+ <button
+ type="button"
+ className={`global-statusbar__segment${alertsOpen ? ' is-active' : ''}`}
+ onClick={toggleAlerts}
+ aria-expanded={alertsOpen}
+ aria-label={t('app.statusbar.alerts', 'Alerts')}
+ >
+ <Bell size={13} />
+ <span>{t('app.statusbar.alerts', 'Alerts')}</span>
+ {unreadCount > 0 && <span className="global-statusbar__muted mono">{unreadCount}</span>}
+ {unreadCount > 0 && <span className="global-statusbar__pip is-critical" aria-hidden="true" />}
+ </button>
+
+ <span className="global-statusbar__separator" aria-hidden="true" />
+
+ <button
+ type="button"
+ className={`global-statusbar__segment${assistantOpen ? ' is-active' : ''}`}
+ onClick={openAssistant}
+ aria-expanded={assistantOpen}
+ aria-label={t('app.ai.assistant', 'Assistant')}
+ >
+ <Sparkles size={13} />
+ <span>{t('app.ai.assistant', 'Assistant')}</span>
+ {assistantUnread > 0 && <span className="global-statusbar__muted mono">{assistantUnread}</span>}
+ </button>
+
+ <span className="global-statusbar__separator" aria-hidden="true" />
+
+ <button
+ type="button"
+ className="global-statusbar__segment global-statusbar__command"
+ onClick={onOpenPalette}
+ title={t('palette.label', 'Command palette')}
+ aria-label={t('palette.label', 'Command palette')}
+ >
+ <Command size={12} />
+ <span className="mono">{t('app.statusbar.commandShortcut', 'Ctrl K')}</span>
+ </button>
+ </footer>
+ </>
+ );
+}
diff --git a/frontend/src/components/OperationsDock.jsx b/frontend/src/components/OperationsDock.jsx
index a994deee..600e3e56 100644
--- a/frontend/src/components/OperationsDock.jsx
+++ b/frontend/src/components/OperationsDock.jsx
@@ -204,7 +204,7 @@ function ServiceLogDetail({ session, lines, error, onClear, onClose, logRef, t }
);
}
-export default function OperationsDock() {
+export default function OperationsDock({ hideLauncher = false, statusbarMode = false }) {
const { t } = useTranslation();
const toast = useToast();
const { confirm } = useConfirm();
@@ -318,9 +318,9 @@ export default function OperationsDock() {
});
return (
- <div className={`operations-dock${collapsed ? ' is-collapsed' : ' is-open'}`}>
+ <div className={`operations-dock${statusbarMode ? ' operations-dock--statusbar' : ''}${collapsed ? ' is-collapsed' : ' is-open'}`}>
{collapsed ? (
- <Button
+ hideLauncher ? null : <Button
type="button"
className="operations-dock__launcher"
onClick={toggle}
diff --git a/frontend/src/components/QuickCreate.jsx b/frontend/src/components/QuickCreate.jsx
index 4719a842..db55c6f2 100644
--- a/frontend/src/components/QuickCreate.jsx
+++ b/frontend/src/components/QuickCreate.jsx
@@ -30,25 +30,23 @@ const CREATE_ITEMS = [
export function QuickCreate({ className, variant = 'icon' }) {
const { t } = useTranslation();
const navigate = useNavigate();
- // 'icon' — compact square button (mobile top bar). 'sidebar' — small
- // circular accent FAB (AI chat-bubble style) that lives on the first
- // sidebar category row; its menu opens downward since the trigger sits at
- // the top of the nav.
- const fab = variant === 'sidebar';
+ // 'icon' — compact square button (mobile top bar). 'header' — the accent
+ // create button beside the ServerKit mark and GitHub star.
+ const header = variant === 'header';
return (
<DropdownMenu>
<DropdownMenuTrigger asChild>
<button
type="button"
- className={cn('quick-create', fab && 'quick-create--fab', className)}
+ className={cn('quick-create', header && 'quick-create--header', className)}
title={t('app.quickCreate.createNew', 'Create new…')}
aria-label={t('app.quickCreate.createNew2', 'Create new')}
>
- <Plus size={fab ? 15 : 16} />
+ <Plus size={header ? 15 : 16} />
</button>
</DropdownMenuTrigger>
<DropdownMenuContent
- side={fab ? 'bottom' : 'top'}
+ side={header ? 'bottom' : 'top'}
align="end"
sideOffset={8}
>
diff --git a/frontend/src/components/Sidebar.jsx b/frontend/src/components/Sidebar.jsx
index 39055abc..17c41a37 100644
--- a/frontend/src/components/Sidebar.jsx
+++ b/frontend/src/components/Sidebar.jsx
@@ -5,8 +5,6 @@ import { useTheme } from '../contexts/ThemeContext';
import { useLayout } from '../contexts/LayoutContext';
import { Star, Settings, LogOut, Sun, Moon, Monitor, ChevronRight, ChevronDown, ChevronUp, Layers, Palette, PanelLeft, PanelLeftClose, PanelTop, Check, X, Server } from 'lucide-react';
import { api } from '../services/api';
-import WorkspaceSwitcher from './WorkspaceSwitcher';
-import NotificationBell from './NotificationBell';
import { SIDEBAR_CATEGORIES, SIDEBAR_CATEGORY_LABELS, SIDEBAR_PRESETS, getHiddenItemIds, getVisibleItems, applyWorkspaceNavPermissions } from './sidebarItems';
import { useTranslation } from 'react-i18next';
import useLabel from '../i18n/labels';
@@ -225,10 +223,6 @@ const Sidebar = ({ mobileOpen = false, isMobile = false, onMobileClose = () => {
return groups;
}, [visibleItems]);
- // First category that actually has visible items — its header row hosts the
- // quick-create button.
- const firstVisibleCat = SIDEBAR_CATEGORIES.find(cat => groupedItems[cat]);
-
// Auto-expand the active parent (or parent of active sub-item), auto-close others
useEffect(() => {
const path = location.pathname;
@@ -348,8 +342,9 @@ const Sidebar = ({ mobileOpen = false, isMobile = false, onMobileClose = () => {
<span className="brand-custom-text">
{whiteLabel.brandName || 'Brand'}
</span>
- </>
- )}
+ </>
+ )}
+ <QuickCreate variant="header" />
</div>
) : (
<div className="brand-section">
@@ -367,27 +362,17 @@ const Sidebar = ({ mobileOpen = false, isMobile = false, onMobileClose = () => {
>
<Star size={14} aria-hidden="true" />
</a>
+ <QuickCreate variant="header" />
</div>
)}
- <WorkspaceSwitcher />
-
<div className="nav-scroll">
{SIDEBAR_CATEGORIES.map(cat => {
const items = groupedItems[cat];
if (!items) return null;
- // The first category header row also carries the global
- // quick-create button — a small circular accent "+" (AI
- // chat-bubble style) next to the section label.
- const isFirst = cat === firstVisibleCat;
return (
<React.Fragment key={cat}>
- <div className={`nav-category${isFirst ? ' nav-category--create' : ''}`}>
- {isFirst
- ? <span>{label(SIDEBAR_CATEGORY_LABELS[cat])}</span>
- : label(SIDEBAR_CATEGORY_LABELS[cat])}
- {isFirst && <QuickCreate variant="sidebar" />}
- </div>
+ <div className="nav-category">{label(SIDEBAR_CATEGORY_LABELS[cat])}</div>
<nav className="nav">
{items.map(renderNavItem)}
</nav>
@@ -595,7 +580,6 @@ const Sidebar = ({ mobileOpen = false, isMobile = false, onMobileClose = () => {
</span>
<ChevronUp size={14} className={`user-menu-arrow ${menuOpen ? 'open' : ''}`} aria-hidden="true" />
</button>
- <NotificationBell />
</div>
</div>
</aside>
diff --git a/frontend/src/components/WalkthroughHub.jsx b/frontend/src/components/WalkthroughHub.jsx
index d85afecd..a97a957d 100644
--- a/frontend/src/components/WalkthroughHub.jsx
+++ b/frontend/src/components/WalkthroughHub.jsx
@@ -144,7 +144,7 @@ function ActiveWalkthrough({ walkthrough, progress, currentStep, onBrowse, t })
);
}
-export default function WalkthroughHub() {
+export default function WalkthroughHub({ hideLauncher = false, statusbarMode = false }) {
const { t } = useTranslation();
const {
state,
@@ -174,8 +174,8 @@ export default function WalkthroughHub() {
};
return (
- <div className={`walkthrough-shell${open ? ' is-open' : ''}`}>
- <Button
+ <div className={`walkthrough-shell${statusbarMode ? ' walkthrough-shell--statusbar' : ''}${open ? ' is-open' : ''}`}>
+ {!hideLauncher && <Button
type="button"
className="walkthrough-shell__launcher"
variant="outline"
@@ -190,7 +190,7 @@ export default function WalkthroughHub() {
total: activeProgress.total,
})
: t('app.walkthroughs.guides', 'Guides')}</span>
- </Button>
+ </Button>}
{open && (
<aside id="walkthrough-hub" className="walkthrough-hub" aria-label={t('app.walkthroughs.guides', 'Guides')}>
diff --git a/frontend/src/components/ai/AIAssistant.jsx b/frontend/src/components/ai/AIAssistant.jsx
index 8080b89d..0bd65b4e 100644
--- a/frontend/src/components/ai/AIAssistant.jsx
+++ b/frontend/src/components/ai/AIAssistant.jsx
@@ -7,7 +7,7 @@ import ChatDrawer from './ChatDrawer';
// Core assistant overlay. Mounted once in DashboardLayout (owns its own
// z-index — no plugin coexistence hacks). Renders the bubble everywhere and
// the drawer when open.
-const AIAssistant = () => {
+const AIAssistant = ({ hideLauncher = false }) => {
const { isAuthenticated } = useAuth();
const { isOpen, toggle, isStreaming, unread, pageContext } = useServerkitAI();
@@ -35,7 +35,7 @@ const AIAssistant = () => {
return (
<>
- <ChatBubble open={isOpen} unread={unread} streaming={isStreaming} raised={raised} onToggle={toggle} />
+ {!hideLauncher && <ChatBubble open={isOpen} unread={unread} streaming={isStreaming} raised={raised} onToggle={toggle} />}
{isOpen ? <ChatDrawer /> : null}
</>
);
diff --git a/frontend/src/components/dashboard/SetupHealthWidget.jsx b/frontend/src/components/dashboard/SetupHealthWidget.jsx
index 918c6331..6e046812 100644
--- a/frontend/src/components/dashboard/SetupHealthWidget.jsx
+++ b/frontend/src/components/dashboard/SetupHealthWidget.jsx
@@ -1,30 +1,25 @@
import { useEffect, useState } from 'react';
import { useNavigate } from 'react-router-dom';
import api from '../../services/api';
-import { Pill, statusKind } from '@/components/ds';
-import { ShieldCheck, AlertTriangle, Info, ChevronRight } from 'lucide-react';
+import { ShieldAlert, ShieldCheck, ChevronRight, X } from 'lucide-react';
import { useTranslation } from 'react-i18next';
+import { Button } from '@/components/ui/button';
// Compact "how set-up is this panel" card for the dashboard (admin-only).
// Reads GET /setup-health and shows the score + the top open items, each
// deep-linking to its fix. Collapses to a slim "all set" line when clean —
// no dead card.
-const TOP_N = 3;
-
-// Critical (fail) first, then recommended (warn); ok items never show.
-function openItems(items) {
- const rank = { fail: 0, warn: 1 };
- return items
- .filter((i) => i.status !== 'ok')
- .sort((a, b) => (rank[a.status] ?? 9) - (rank[b.status] ?? 9));
-}
+const DISMISS_KEY = 'serverkit.setupHealth.dismissed';
const SetupHealthWidget = () => {
const { t } = useTranslation();
const navigate = useNavigate();
const [data, setData] = useState(null);
const [loading, setLoading] = useState(true);
+ const [dismissed, setDismissed] = useState(() => {
+ try { return localStorage.getItem(DISMISS_KEY) === '1'; } catch { return false; }
+ });
useEffect(() => {
let cancelled = false;
@@ -35,25 +30,32 @@ const SetupHealthWidget = () => {
return () => { cancelled = true; };
}, []);
+ if (dismissed) return null;
+
if (loading || !data || !data.summary) {
return (
- <div className="setup-health-widget setup-health-widget--loading">
- <div className="setup-health-widget__head">
- <ShieldCheck size={16} />
- <span>{t('app.setupHealthWidget.setupHealth', 'Setup Health')}</span>
- </div>
- <p className="setup-health-widget__muted">
- {loading ? 'Checking…' : 'Unavailable'}
- </p>
+ <div className="setup-health-widget setup-health-widget--loading" role="status">
+ <ShieldCheck size={16} />
+ <span>{t('app.setupHealthWidget.setupHealth', 'Setup Health')}</span>
+ <span className="setup-health-widget__muted">
+ {loading
+ ? t('app.setupHealthWidget.checking', 'Checking…')
+ : t('app.setupHealthWidget.unavailable', 'Unavailable')}
+ </span>
</div>
);
}
const { summary } = data;
- const open = openItems(data.items || []);
+ const openCount = Number(summary.critical_open || 0) + Number(summary.recommended_open || 0);
+
+ const dismiss = () => {
+ setDismissed(true);
+ try { localStorage.setItem(DISMISS_KEY, '1'); } catch { /* ignore */ }
+ };
// Clean → slim "all set" line, not a big empty card.
- if (open.length === 0) {
+ if (openCount === 0) {
return (
<button
type="button"
@@ -71,52 +73,42 @@ const SetupHealthWidget = () => {
return (
<div className="setup-health-widget">
- <div className="setup-health-widget__head">
- <span className="setup-health-widget__title">
- <ShieldCheck size={16} />
- {t('app.setupHealthWidget.setupHealth3', 'Setup Health')}
- </span>
- <span className="setup-health-widget__score">{summary.score}%</span>
- </div>
-
- <div className="setup-health-widget__summary">
- {summary.critical_open > 0 && (
- <Pill kind="red">
- <AlertTriangle size={12} /> {summary.critical_open} critical
- </Pill>
+ <ShieldAlert size={16} className="setup-health-widget__icon" />
+ <span className="setup-health-widget__title">{t('app.setupHealthWidget.setupHealth3', 'Setup Health')}</span>
+ <span className="setup-health-widget__score mono">{summary.score}%</span>
+ <progress max="100" value={summary.score} aria-label={t('app.setupHealthWidget.progress', 'Setup health progress')} />
+ <span className="setup-health-widget__summary">
+ {summary.critical_open > 0 && t(
+ 'app.setupHealthWidget.criticalCount',
+ '{{count}} critical',
+ { count: summary.critical_open },
)}
- {summary.recommended_open > 0 && (
- <Pill kind="amber">
- <Info size={12} /> {summary.recommended_open} recommended
- </Pill>
+ {summary.critical_open > 0 && summary.recommended_open > 0 && ' · '}
+ {summary.recommended_open > 0 && t(
+ 'app.setupHealthWidget.recommendedCount',
+ '{{count}} recommended',
+ { count: summary.recommended_open },
)}
- </div>
-
- <ul className="setup-health-widget__list">
- {open.slice(0, TOP_N).map((item) => (
- <li key={item.key}>
- <button
- type="button"
- className="setup-health-widget__item"
- onClick={() => item.fix?.to && navigate(item.fix.to)}
- >
- <Pill kind={statusKind(item.status)}>{item.status}</Pill>
- <span className="setup-health-widget__itemtitle">{item.title}</span>
- <ChevronRight size={14} />
- </button>
- </li>
- ))}
- </ul>
-
- {open.length > TOP_N && (
- <button
- type="button"
- className="setup-health-widget__more"
- onClick={() => navigate('/monitoring/doctor')}
- >
- {open.length - TOP_N} {t('app.setupHealthWidget.moreInDoctor', 'more in Doctor')}
- </button>
- )}
+ </span>
+ <span className="setup-health-widget__spacer" />
+ <Button
+ type="button"
+ variant="outline"
+ size="sm"
+ onClick={() => navigate('/monitoring/doctor')}
+ title={t('app.setupHealthWidget.moreInDoctor', 'more in Doctor')}
+ >
+ {t('app.setupHealthWidget.review', 'Review')}
+ </Button>
+ <button
+ type="button"
+ className="setup-health-widget__dismiss"
+ onClick={dismiss}
+ aria-label={t('common.actions.dismiss', 'Dismiss')}
+ title={t('app.setupHealthWidget.dismissHint', 'Dismiss — setup health stays in the status bar')}
+ >
+ <X size={14} />
+ </button>
</div>
);
};
diff --git a/frontend/src/i18n/locales/en.json b/frontend/src/i18n/locales/en.json
index d4ec1d08..67478bca 100644
--- a/frontend/src/i18n/locales/en.json
+++ b/frontend/src/i18n/locales/en.json
@@ -190,6 +190,9 @@
"versions": "Versions",
"viewDetails": "View Details"
},
+ "ai": {
+ "assistant": "Assistant"
+ },
"alertsTab": {
"acknowledged": "Acknowledged",
"allClear": "All clear",
@@ -2829,6 +2832,7 @@
"fileCreated": "File created",
"fileName": "File Name",
"fileSaved": "File saved",
+ "fileSystem": "File system",
"filesWillBeUploadedTo": "Files will be uploaded to",
"folderCreated": "Folder created",
"folderName": "Folder Name",
@@ -2846,6 +2850,7 @@
"largest": "Largest",
"listView": "List view",
"loadingFiles": "Loading files",
+ "localPanelHost": "Local panel host",
"logs": "Logs",
"logs2": "Logs",
"logs3": "Logs",
@@ -2858,6 +2863,7 @@
"newest": "Newest",
"noFiles": "No {{activeFilter}} files",
"noMatches": "No matches",
+ "objectStorage": "Object storage",
"oldest": "Oldest",
"owner": "Owner",
"ownerRwGroupOtherRFiles": "Owner: rw, Group/Other: r (files)",
@@ -2871,10 +2877,12 @@
"readWriteOnlyMkdirDeleteRename": "— read/write only. Mkdir/delete/rename/upload aren't yet supported on remote agents.",
"refresh": "Refresh",
"refresh2": "Refresh",
+ "remoteAgent": "Remote agent",
"rename": "Rename",
"rename2": "Rename {{value}}",
"rename3": "Rename",
"renamed": "Renamed",
+ "rootDisk": "Root disk",
"s3Bucket": "S3 bucket",
"s3Bucket2": "S3 bucket",
"searchFailed": "Search failed: {{message}}",
@@ -2889,6 +2897,7 @@
"smallest": "Smallest",
"sort": "Sort",
"stack": "Stack",
+ "terminal": "Terminal",
"thisFolderIsEmpty": "This folder is empty",
"toggleHiddenFiles": "Toggle hidden files",
"total": "Total",
@@ -2898,10 +2907,12 @@
"typeZA": "Type Z-A",
"types": "Types",
"upDelDeleteF2RenameA": "⌫ Up · Del Delete · F2 Rename · ⌘A All",
+ "updatedAt": "Updated {{time}}",
"upload": "Upload",
"uploadedOfFile": "Uploaded {{succeeded}} of {{length}} file{{value}}",
"users": "Users",
"videos": "Videos",
+ "volumes": "Volumes",
"webConfig": "Web config",
"webConfig2": "Web config",
"willBeCreatedIn": "Will be created in:",
@@ -6673,10 +6684,17 @@
},
"setupHealthWidget": {
"allSet": "All set —",
+ "checking": "Checking…",
+ "criticalCount": "{{count}} critical",
+ "dismissHint": "Dismiss — setup health stays in the status bar",
"moreInDoctor": "more in Doctor",
+ "progress": "Setup health progress",
+ "recommendedCount": "{{count}} recommended",
+ "review": "Review",
"setupHealth": "Setup Health",
"setupHealth2": "% setup health",
- "setupHealth3": "Setup Health"
+ "setupHealth3": "Setup Health",
+ "unavailable": "Unavailable"
},
"setupStepAccount": {
"adminEmail": "Admin Email",
@@ -7040,6 +7058,15 @@
"title": "Title",
"visibility": "Visibility"
},
+ "statusbar": {
+ "activeServer": "Active server",
+ "alerts": "Alerts",
+ "commandShortcut": "Ctrl K",
+ "idle": "idle",
+ "runningCount": "{{count}} running",
+ "setupScore": "setup {{score}}%",
+ "shellStatus": "ServerKit status and tools"
+ },
"storageDestinations": {
"snapshots": "Snapshots"
},
@@ -8178,6 +8205,7 @@
"pairAuthenticatorDescription": "Scan the QR code, then enter the six-digit code from your app.",
"progress": "Walkthrough progress",
"progressSaved": "Progress is saved to your account.",
+ "recipes": "Recipes",
"resume": "Resume",
"reviewService": "Review the detected setup",
"reviewServiceDescription": "Confirm the name, runtime, build method, project, and environment.",
@@ -8571,6 +8599,7 @@
"actions": {
"back": "Back",
"close": "Close",
+ "dismiss": "Dismiss",
"logOut": "Log out",
"refresh": "Refresh",
"retry": "Retry",
@@ -8765,8 +8794,11 @@
"bellUnread": "Notifications, {{count}} unread",
"dismissItem": "Dismiss {{title}}",
"empty": "You’re all caught up.",
+ "everything": "Everything",
"heading": "Notifications",
"markAllRead": "Mark all read",
+ "recentActivity": "Recent system and delivery activity",
+ "review": "Review",
"seeAll": "See all notifications"
},
"palette": {
diff --git a/frontend/src/layouts/DashboardLayout.jsx b/frontend/src/layouts/DashboardLayout.jsx
index 7d8af245..3487dd88 100644
--- a/frontend/src/layouts/DashboardLayout.jsx
+++ b/frontend/src/layouts/DashboardLayout.jsx
@@ -21,6 +21,7 @@ import { useTranslation } from 'react-i18next';
import { OperationsProvider } from '../contexts/OperationsContext';
import { WalkthroughProvider } from '../contexts/WalkthroughContext';
import WalkthroughHub from '../components/WalkthroughHub';
+import GlobalStatusBar from '../components/GlobalStatusBar';
// The Automations extension (tramo) contributes /automations/edit/:slug with
// layout:'full', so it's picked up dynamically via fullPagePaths below.
@@ -127,9 +128,10 @@ const DashboardLayout = () => {
</ErrorBoundary>
</main>
<CommandPalette open={paletteOpen} onClose={() => setPaletteOpen(false)} />
- <OperationsDock />
- <WalkthroughHub />
- <AIAssistant />
+ <OperationsDock hideLauncher statusbarMode />
+ <WalkthroughHub hideLauncher statusbarMode />
+ <AIAssistant hideLauncher />
+ <GlobalStatusBar onOpenPalette={() => setPaletteOpen(true)} />
<PluginLoader api={api} />
</div>
</WalkthroughProvider>
diff --git a/frontend/src/pages/Dashboard.jsx b/frontend/src/pages/Dashboard.jsx
index 50546519..8e3b1a36 100644
--- a/frontend/src/pages/Dashboard.jsx
+++ b/frontend/src/pages/Dashboard.jsx
@@ -148,6 +148,26 @@ const Dashboard = () => {
.catch(() => setSystemInfo(null));
}, []);
+ // The shell status bar owns the app-wide $server scope. Keep the dashboard
+ // variable in sync so changing the server at the bottom edge immediately
+ // retargets the board without another page-specific selector state.
+ useEffect(() => {
+ const applyServerScope = (serverId) => {
+ if (!serverId || serverId === 'local') {
+ setSelectedServer({ id: 'local', name: t('app.dashboard.localThisServer', 'Local (this server)') });
+ return;
+ }
+ const match = servers.find((server) => String(server.id) === String(serverId));
+ if (match) setSelectedServer(match);
+ };
+ let stored = 'local';
+ try { stored = localStorage.getItem('serverkit.activeServerScope') || 'local'; } catch { /* ignore */ }
+ applyServerScope(stored);
+ const handleScope = (event) => applyServerScope(event.detail?.serverId);
+ window.addEventListener('serverkit:server-scope', handleScope);
+ return () => window.removeEventListener('serverkit:server-scope', handleScope);
+ }, [servers, t]);
+
const fetchRemote = useCallback(async () => {
if (!isRemote) return;
try {
diff --git a/frontend/src/pages/FileManager.jsx b/frontend/src/pages/FileManager.jsx
index 8d715330..4b38d862 100644
--- a/frontend/src/pages/FileManager.jsx
+++ b/frontend/src/pages/FileManager.jsx
@@ -11,9 +11,9 @@ import {
HardDrive, Clock, PanelLeftClose, PanelLeftOpen,
LayoutGrid, List, Home, CloudUpload,
Check, Copy, ArrowUpDown, Zap, Globe, Boxes, SlidersHorizontal, FileText,
- FolderTree as FolderTreeIcon,
+ FolderTree as FolderTreeIcon, Terminal,
} from 'lucide-react';
-import { useSearchParams } from 'react-router-dom';
+import { useNavigate, useSearchParams } from 'react-router-dom';
import { Button } from '@/components/ui/button';
import { Input } from '@/components/ui/input';
import { Label } from '@/components/ui/label';
@@ -27,6 +27,7 @@ import TargetPicker from '../components/TargetPicker';
import { TREE_ROOTS, getFileType, formatBytes } from '../components/file-manager/fileTypes';
import { copyToClipboard } from '@/utils/clipboard';
import { useTranslation } from 'react-i18next';
+import { useTopbarActions } from '@/hooks/useTopbarActions';
// Demo rail shortcuts (Quick access) — one-click jumps to the paths people
// actually visit on a ServerKit host. "Stack" starts at the default install
@@ -98,10 +99,16 @@ function unwrapAgentData(res) {
return res;
}
+function mountDisplayName(mount) {
+ if (!mount?.mountpoint || mount.mountpoint === '/') return null;
+ const parts = mount.mountpoint.split('/').filter(Boolean);
+ const leaf = parts[parts.length - 1] || mount.mountpoint;
+ return leaf === 'docker-desktop-user-distro' ? 'docker-desktop' : leaf;
+}
+
const STORAGE = {
sidebar: 'serverkit-fm-sidebar',
treeCollapsed: 'serverkit-fm-tree-collapsed',
- diskCollapsed: 'serverkit-fm-disk-collapsed',
expanded: 'serverkit-fm-tree-expanded',
viewMode: 'serverkit-fm-view-mode',
sortBy: 'serverkit-fm-sort-by',
@@ -122,6 +129,7 @@ const FILTER_OPTIONS = [
function FileManager() {
const { t } = useTranslation();
+ const navigate = useNavigate();
const [searchParams, setSearchParams] = useSearchParams();
// ─── target ──────────────────────────────────────────
@@ -228,7 +236,7 @@ function FileManager() {
const dragCounter = useRef(0);
// ─── view prefs ──────────────────────────────────────
- const [viewMode, setViewMode] = useState(() => localStorage.getItem(STORAGE.viewMode) || 'grid');
+ const [viewMode, setViewMode] = useState(() => localStorage.getItem(STORAGE.viewMode) || 'list');
const gridSize = 'md';
const [sortBy, setSortBy] = useState(() => localStorage.getItem(STORAGE.sortBy) || 'name');
const [sortDir, setSortDir] = useState(() => localStorage.getItem(STORAGE.sortDir) || 'asc');
@@ -236,14 +244,11 @@ function FileManager() {
// ─── left sidebar ────────────────────────────────────
const [sidebarVisible, setSidebarVisible] = useState(() => {
+ if (typeof window !== 'undefined' && window.matchMedia('(max-width: 1024px)').matches) return false;
const v = localStorage.getItem(STORAGE.sidebar);
return v !== null ? v === 'true' : true;
});
const [treeCollapsed, setTreeCollapsed] = useState(() => localStorage.getItem(STORAGE.treeCollapsed) === 'true');
- const [diskCollapsed, setDiskCollapsed] = useState(() => {
- const v = localStorage.getItem(STORAGE.diskCollapsed);
- return v !== null ? v === 'true' : true;
- });
// ─── folder tree state ───────────────────────────────
const [treeExpanded, setTreeExpanded] = useState(() => {
@@ -264,6 +269,7 @@ function FileManager() {
const [history, setHistory] = useState(['/home']);
const [historyIdx, setHistoryIdx] = useState(0);
const navByHistory = useRef(false);
+ const lastValidPathRef = useRef('/home');
// ─── context menu ────────────────────────────────────
const [contextMenu, setContextMenu] = useState(null);
@@ -273,7 +279,6 @@ function FileManager() {
// ─── persistence ─────────────────────────────────────
useEffect(() => { localStorage.setItem(STORAGE.sidebar, sidebarVisible); }, [sidebarVisible]);
useEffect(() => { localStorage.setItem(STORAGE.treeCollapsed, treeCollapsed); }, [treeCollapsed]);
- useEffect(() => { localStorage.setItem(STORAGE.diskCollapsed, diskCollapsed); }, [diskCollapsed]);
useEffect(() => { localStorage.setItem(STORAGE.viewMode, viewMode); }, [viewMode]);
useEffect(() => { localStorage.setItem(STORAGE.sortBy, sortBy); }, [sortBy]);
useEffect(() => { localStorage.setItem(STORAGE.sortDir, sortDir); }, [sortDir]);
@@ -380,8 +385,10 @@ function FileManager() {
setEntries(entriesList);
setParentPath(data.parent ?? deriveParent(data.path || path));
setCurrentPath(data.path || path);
+ lastValidPathRef.current = data.path || path;
} catch (error) {
toast.error(t('app.fileManager.failedToLoadDirectory', 'Failed to load directory: {{message}}', { message: error.message }));
+ if (path !== lastValidPathRef.current) setCurrentPath(lastValidPathRef.current);
} finally {
setLoading(false);
}
@@ -790,12 +797,32 @@ function FileManager() {
return { folders, files, totalBytes, total: list.length, selectedCount: selectedList.length, selectedBytes };
}, [sortedFiltered, selectedPaths]);
+ const activeMount = useMemo(() => diskMounts
+ .filter((mount) => {
+ const mountPath = mount.mountpoint || '/';
+ if (mountPath === '/') return currentPath.startsWith('/');
+ return currentPath === mountPath || currentPath.startsWith(`${mountPath.replace(/\/$/, '')}/`);
+ })
+ .sort((a, b) => (b.mountpoint || '/').length - (a.mountpoint || '/').length)[0] || null,
+ [currentPath, diskMounts]);
+
const activeUploads = uploads.filter((u) => u.status === 'uploading' || u.status === 'pending');
const totalUploadProgress = activeUploads.length > 0
? activeUploads.reduce((s, u) => s + u.progress, 0) / activeUploads.length
: 0;
const sortValue = `${sortBy}-${sortDir}`;
+ const filterLabels = {
+ all: t('app.fileManager.all', 'All'),
+ folder: t('app.fileManager.folders', 'Folders'),
+ image: t('app.fileManager.images', 'Images'),
+ code: t('app.fileManager.code', 'Code'),
+ text: t('app.fileManager.documents', 'Documents'),
+ data: t('app.fileManager.data', 'Data'),
+ video: t('app.fileManager.videos', 'Videos'),
+ audio: t('app.fileManager.audio', 'Audio'),
+ archive: t('app.fileManager.archives', 'Archives'),
+ };
const handleSortChange = (value) => {
const [nextSortBy, nextSortDir] = value.split('-');
setSortBy(nextSortBy);
@@ -867,6 +894,34 @@ function FileManager() {
return 'healthy';
};
+ useTopbarActions(() => (
+ <>
+ <Button
+ type="button"
+ variant="outline"
+ size="sm"
+ onClick={() => setShowNewFolderModal(true)}
+ disabled={isRemote || isS3}
+ >
+ <FolderPlus size={14} /> {t('app.fileManager.newFolder', 'New folder')}
+ </Button>
+ <Button
+ type="button"
+ variant="outline"
+ size="sm"
+ onClick={() => fileInputRef.current?.click()}
+ disabled={isRemote}
+ >
+ <Upload size={14} /> {t('app.fileManager.upload', 'Upload')}
+ </Button>
+ {!isS3 && (
+ <Button type="button" size="sm" onClick={() => navigate('/terminal')}>
+ <Terminal size={14} /> {t('app.fileManager.terminal', 'Terminal')}
+ </Button>
+ )}
+ </>
+ ), [isRemote, isS3, currentPath]);
+
// ─── render ──────────────────────────────────────────
return (
<div
@@ -965,14 +1020,47 @@ function FileManager() {
</span>
))}
</div>
+ {activeMount && !isRemote && !isS3 && (
+ <span className="file-mount-chip" title={`${activeMount.device} · ${activeMount.total_human}`}>
+ <HardDrive size={12} />
+ <span>{activeMount.mountpoint === '/' ? t('app.fileManager.rootDisk', 'Root disk') : activeMount.mountpoint}</span>
+ </span>
+ )}
</div>
<div className="toolbar-right">
- <TargetPicker
- feature="files"
- value={target}
- onChange={setTarget}
- extraOptions={s3Available ? [{ value: 's3', labelKey: 'app.fileManager.s3Bucket2', label: 'S3 bucket' }] : []}
- />
+ <label className="file-toolbar-select" title={t('app.fileManager.types', 'Types')}>
+ <File size={13} />
+ <select
+ value={activeFilter}
+ onChange={(event) => setActiveFilter(event.target.value)}
+ aria-label={t('app.fileManager.types', 'Types')}
+ >
+ {FILTER_OPTIONS.map((option) => (
+ <option key={option.id} value={option.id}>
+ {filterLabels[option.id]} ({filterCounts[option.id] ?? 0})
+ </option>
+ ))}
+ </select>
+ <ChevronDown size={12} />
+ </label>
+ <label className="file-toolbar-select" title={t('app.fileManager.sort', 'Sort')}>
+ <ArrowUpDown size={13} />
+ <select
+ value={sortValue}
+ onChange={(event) => handleSortChange(event.target.value)}
+ aria-label={t('app.fileManager.sort', 'Sort')}
+ >
+ <option value="name-asc">{t('app.fileManager.nameAZ', 'Name A-Z')}</option>
+ <option value="name-desc">{t('app.fileManager.nameZA', 'Name Z-A')}</option>
+ <option value="modified-desc">{t('app.fileManager.newest', 'Newest')}</option>
+ <option value="modified-asc">{t('app.fileManager.oldest', 'Oldest')}</option>
+ <option value="size-desc">{t('app.fileManager.largest', 'Largest')}</option>
+ <option value="size-asc">{t('app.fileManager.smallest', 'Smallest')}</option>
+ <option value="type-asc">{t('app.fileManager.type', 'Type')}</option>
+ <option value="type-desc">{t('app.fileManager.typeZA', 'Type Z-A')}</option>
+ </select>
+ <ChevronDown size={12} />
+ </label>
<div className="search-field">
<Search size={14} className="search-field-icon" />
<input
@@ -992,10 +1080,6 @@ function FileManager() {
</button>
)}
</div>
- <button type="button" className="toolbar-chip" onClick={() => fileInputRef.current?.click()} disabled={isRemote}>
- <Upload size={14} />
- <span>{t('app.fileManager.upload', 'Upload')}</span>
- </button>
<div className="view-toggle">
<button type="button"
className={`view-toggle-btn ${viewMode === 'grid' ? 'active' : ''}`}
@@ -1062,8 +1146,79 @@ function FileManager() {
<div className={`file-manager-body ${previewFile ? 'has-preview' : ''}`}>
{sidebarVisible && (
<aside className="file-manager-sidebar left">
+ <div className="file-manager-source">
+ <button
+ type="button"
+ className="file-manager-source__close"
+ onClick={() => setSidebarVisible(false)}
+ aria-label={t('app.fileManager.hideSidebar', 'Hide sidebar')}
+ >
+ <X size={14} />
+ </button>
+ <TargetPicker
+ feature="files"
+ value={target}
+ onChange={setTarget}
+ extraOptions={s3Available ? [{ value: 's3', labelKey: 'app.fileManager.s3Bucket2', label: 'S3 bucket' }] : []}
+ />
+ <div className="file-manager-source__meta">
+ <span className={`file-manager-source__dot${isS3 ? ' is-cloud' : ''}`} aria-hidden="true" />
+ <span>
+ {isRemote
+ ? t('app.fileManager.remoteAgent', 'Remote agent')
+ : isS3
+ ? t('app.fileManager.objectStorage', 'Object storage')
+ : t('app.fileManager.localPanelHost', 'Local panel host')}
+ </span>
+ </div>
+ </div>
+
+ {!isRemote && !isS3 && (
+ <div className="sidebar-section sidebar-section--volumes">
+ <div className="sidebar-section-header sidebar-section-header--split">
+ <span className="sidebar-section-title" title={t('app.fileManager.diskUsage', 'Disk Usage')}>
+ <HardDrive size={13} />
+ <span>{t('app.fileManager.volumes', 'Volumes')}</span>
+ </span>
+ <button type="button" className="sidebar-action-btn" onClick={loadDiskMounts} disabled={diskLoading} title={t('app.fileManager.refresh2', 'Refresh')}>
+ <RefreshCw size={12} className={diskLoading ? 'spinning' : ''} />
+ </button>
+ </div>
+ <div className="sidebar-section-content disk-mount-list">
+ {diskMounts.map((mount) => (
+ <button
+ type="button"
+ key={`${mount.device}:${mount.mountpoint}`}
+ className={`disk-mount-item${activeMount?.mountpoint === mount.mountpoint ? ' active' : ''}`}
+ onClick={() => navigateTo(mount.mountpoint)}
+ title={`${mount.device} · ${mount.used_human} / ${mount.total_human}`}
+ >
+ <div className="disk-mount-header">
+ <span className="disk-mount-point">
+ {mount.mountpoint === '/'
+ ? t('app.fileManager.rootDisk', 'Root disk')
+ : mountDisplayName(mount)}
+ </span>
+ <span className={`disk-percent ${getDiskColor(mount.percent)}`}>
+ {mount.percent}%
+ </span>
+ </div>
+ <div className={`disk-progress ${getDiskColor(mount.percent)}`}>
+ <span className="disk-progress-fill" style={{ width: `${mount.percent}%` }} />
+ </div>
+ </button>
+ ))}
+ {diskLastUpdated && (
+ <span className="disk-updated disk-updated--footer">
+ <Clock size={11} />
+ {t('app.fileManager.updatedAt', 'Updated {{time}}', { time: diskLastUpdated.toLocaleTimeString() })}
+ </span>
+ )}
+ </div>
+ </div>
+ )}
+
{!isS3 && (<>
- {/* Quick access (demo rail shortcuts) */}
<div className="sidebar-section">
<div className="sidebar-section-header static">
<Zap size={16} />
@@ -1083,12 +1238,16 @@ function FileManager() {
</div>
</div>
- {/* Folder Tree */}
<div className="sidebar-section">
<div className="sidebar-section-header sidebar-section-header--split">
- <button type="button" className="sidebar-section-toggle" onClick={() => setTreeCollapsed(!treeCollapsed)}>
+ <button
+ type="button"
+ className="sidebar-section-toggle"
+ onClick={() => setTreeCollapsed(!treeCollapsed)}
+ title={t('app.fileManager.folders2', 'Folders')}
+ >
<FolderTreeIcon size={16} />
- <span>{t('app.fileManager.folders2', 'Folders')}</span>
+ <span>{t('app.fileManager.fileSystem', 'File system')}</span>
{treeCollapsed ? <ChevronRight size={16} /> : <ChevronDown size={16} />}
</button>
<button type="button"
@@ -1116,86 +1275,6 @@ function FileManager() {
</div>
</>)}
- {/* Types */}
- <div className="sidebar-section">
- <div className="sidebar-section-header static">
- <File size={16} />
- <span>{t('app.fileManager.types', 'Types')}</span>
- </div>
- <div className="sidebar-section-content type-filter-panel">
- <div className="type-filter-list">
- {FILTER_OPTIONS.map((opt) => {
- const count = filterCounts[opt.id] ?? 0;
- return (
- <button type="button"
- key={opt.id}
- className={`type-filter-item ${activeFilter === opt.id ? 'active' : ''}`}
- onClick={() => setActiveFilter(opt.id)}
- disabled={opt.id !== 'all' && count === 0}
- >
- <span>{opt.label}</span>
- <span>{count}</span>
- </button>
- );
- })}
- </div>
- <label className="sidebar-sort-control">
- <span><ArrowUpDown size={12} /> {t('app.fileManager.sort', 'Sort')}</span>
- <select value={sortValue} onChange={(e) => handleSortChange(e.target.value)}>
- <option value="name-asc">{t('app.fileManager.nameAZ', 'Name A-Z')}</option>
- <option value="name-desc">{t('app.fileManager.nameZA', 'Name Z-A')}</option>
- <option value="modified-desc">{t('app.fileManager.newest', 'Newest')}</option>
- <option value="modified-asc">{t('app.fileManager.oldest', 'Oldest')}</option>
- <option value="size-desc">{t('app.fileManager.largest', 'Largest')}</option>
- <option value="size-asc">{t('app.fileManager.smallest', 'Smallest')}</option>
- <option value="type-asc">{t('app.fileManager.type', 'Type')}</option>
- <option value="type-desc">{t('app.fileManager.typeZA', 'Type Z-A')}</option>
- </select>
- </label>
- </div>
- </div>
-
- {/* Disk Usage */}
- <div className="sidebar-section">
- <button type="button" className="sidebar-section-header" onClick={() => setDiskCollapsed(!diskCollapsed)}>
- <HardDrive size={16} />
- <span>{t('app.fileManager.diskUsage', 'Disk Usage')}</span>
- {diskCollapsed ? <ChevronRight size={16} /> : <ChevronDown size={16} />}
- </button>
- {!diskCollapsed && (
- <div className="sidebar-section-content">
- <div className="disk-header-row">
- {diskLastUpdated && (
- <span className="disk-updated">
- <Clock size={12} />
- {diskLastUpdated.toLocaleTimeString()}
- </span>
- )}
- <button type="button" className="toolbar-icon-btn small" onClick={loadDiskMounts} disabled={diskLoading} title={t('app.fileManager.refresh2', 'Refresh')}>
- <RefreshCw size={12} className={diskLoading ? 'spinning' : ''} />
- </button>
- </div>
- {diskMounts.map((mount, idx) => (
- <div key={idx} className="disk-mount-item">
- <div className="disk-mount-header">
- <span className="disk-mount-point">{mount.mountpoint}</span>
- <span className={`disk-percent ${getDiskColor(mount.percent)}`}>
- {mount.percent}%
- </span>
- </div>
- <div className={`disk-progress ${getDiskColor(mount.percent)}`}>
- <div className="disk-progress-fill" style={{ width: `${mount.percent}%` }} />
- </div>
- <div className="disk-mount-info">
- <span>{mount.used_human} / {mount.total_human}</span>
- <span className="disk-device">{mount.device}</span>
- </div>
- </div>
- ))}
- </div>
- )}
- </div>
-
</aside>
)}
diff --git a/frontend/src/styles/_variables.scss b/frontend/src/styles/_variables.scss
index 70ceade3..79e0103d 100644
--- a/frontend/src/styles/_variables.scss
+++ b/frontend/src/styles/_variables.scss
@@ -239,6 +239,8 @@ $z-fixed: 30;
$z-modal-backdrop: 40;
$z-modal: 50;
$z-tooltip: 60;
+$z-shell-panel: 1120;
+$z-shell-statusbar: 1130;
// --------------------------------------------
// BREAKPOINTS
diff --git a/frontend/src/styles/components/_global-statusbar.scss b/frontend/src/styles/components/_global-statusbar.scss
new file mode 100644
index 00000000..224c279e
--- /dev/null
+++ b/frontend/src/styles/components/_global-statusbar.scss
@@ -0,0 +1,492 @@
+// VS Code-style global chrome. Ambient controls live on one persistent bottom
+// edge; their detail surfaces open directly above it instead of floating over
+// unrelated page controls.
+
+.global-statusbar {
+ position: fixed;
+ inset-inline: $sidebar-width 0;
+ inset-block-end: 0;
+ z-index: $z-shell-statusbar;
+ display: flex;
+ align-items: center;
+ height: var(--sk-statusbar-height);
+ gap: 2px;
+ padding-inline: 6px;
+ border-block-start: 1px solid var(--border-soft);
+ background: color-mix(in srgb, var(--surface) 96%, var(--bg-body));
+ color: var(--text-faint);
+ font-family: $font-main;
+ font-size: 11.5px;
+ box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
+
+ &__segment,
+ .statusbar-select {
+ display: inline-flex;
+ align-items: center;
+ height: 22px;
+ min-width: 0;
+ gap: 7px;
+ padding-inline: 8px;
+ border: 0;
+ border-radius: 5px;
+ background: transparent;
+ color: var(--text-faint);
+ font: inherit;
+ white-space: nowrap;
+ transition: color 120ms ease, background-color 120ms ease;
+ }
+
+ &__segment {
+ cursor: pointer;
+ @include focus-ring();
+
+ &:hover { color: var(--text-dim); background: var(--surface-3); }
+ &.is-active { color: var(--accent-bright); background: var(--accent-bg); }
+ }
+
+ &__separator {
+ width: 1px;
+ height: 12px;
+ flex: 0 0 auto;
+ background: var(--border-soft);
+ }
+
+ &__spacer {
+ flex: 1;
+ min-width: $space-2;
+ }
+
+ &__muted {
+ color: var(--text-faint);
+ font-size: 10.5px;
+ letter-spacing: 0.02em;
+ }
+
+ &__segment.is-active &__muted {
+ color: var(--accent-bright);
+ opacity: 0.76;
+ }
+
+ &__dot,
+ &__pip {
+ display: inline-block;
+ flex: 0 0 auto;
+ border-radius: 50%;
+ }
+
+ &__dot {
+ width: 6px;
+ height: 6px;
+
+ &.is-online { background: var(--green); box-shadow: 0 0 6px var(--green); }
+ &.is-idle { background: var(--amber); box-shadow: 0 0 6px var(--amber); }
+ &.is-down { background: var(--red); box-shadow: 0 0 6px var(--red); }
+ }
+
+ &__pip {
+ width: 5px;
+ height: 5px;
+
+ &.is-warning { background: var(--amber); }
+ &.is-critical { background: var(--red); }
+ }
+
+ &__setup {
+ progress {
+ width: 34px;
+ height: 3px;
+ overflow: hidden;
+ border: 0;
+ border-radius: 999px;
+ background: var(--surface-3);
+ appearance: none;
+
+ &::-webkit-progress-bar { background: var(--surface-3); }
+ &::-webkit-progress-value { background: var(--amber); }
+ &::-moz-progress-bar { background: var(--amber); }
+ }
+
+ svg { color: var(--amber); }
+ }
+
+ &__command { padding-inline: 7px; }
+ &__mobile-icon { display: none; }
+}
+
+.statusbar-select {
+ position: relative;
+ cursor: pointer;
+
+ &:hover,
+ &:focus-within { color: var(--text-dim); background: var(--surface-3); }
+
+ &--workspace { color: var(--text-dim); }
+
+ &__value {
+ max-width: 170px;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ }
+
+ > svg:last-of-type { opacity: 0.58; }
+
+ select {
+ position: absolute;
+ inset: 0;
+ width: 100%;
+ height: 100%;
+ opacity: 0;
+ cursor: pointer;
+ }
+}
+
+// Shared bottom panel shell (Alerts; Operations and Recipes receive matching
+// geometry through their statusbar-mode overrides below).
+.shell-panel {
+ position: fixed;
+ inset-inline: $sidebar-width 0;
+ inset-block-end: var(--sk-statusbar-height);
+ z-index: $z-shell-panel;
+ display: flex;
+ height: min(320px, 56vh);
+ min-height: 220px;
+ flex-direction: column;
+ overflow: hidden;
+ border-block-start: 1px solid var(--border-strong);
+ background: var(--surface);
+ box-shadow: 0 -20px 45px rgba(0, 0, 0, 0.18);
+ animation: shell-panel-enter 160ms ease-out;
+
+ &__head,
+ &__footer,
+ &__tabs {
+ display: flex;
+ align-items: center;
+ }
+
+ &__head {
+ min-height: 39px;
+ flex: 0 0 auto;
+ gap: $space-2;
+ padding-inline: $space-2;
+ border-block-end: 1px solid var(--border-soft);
+ }
+
+ &__tabs { gap: 2px; }
+
+ &__tabs button,
+ &__action,
+ &__close {
+ min-height: 26px;
+ border: 0;
+ border-radius: $radius-sm;
+ background: transparent;
+ color: var(--text-faint);
+ font-size: $font-size-xs;
+ cursor: pointer;
+ @include focus-ring();
+
+ &:hover { color: var(--text); background: var(--surface-2); }
+ }
+
+ &__tabs button {
+ padding-inline: $space-3;
+ &.is-active { color: var(--text); background: var(--surface-3); }
+ }
+
+ &__action {
+ display: inline-flex;
+ align-items: center;
+ gap: $space-1;
+ padding-inline: $space-2;
+ }
+
+ &__close {
+ display: grid;
+ width: 28px;
+ place-items: center;
+ }
+
+ &__spacer { flex: 1; }
+
+ &__empty {
+ display: grid;
+ flex: 1;
+ place-items: center;
+ color: var(--text-faint);
+ font-size: $font-size-sm;
+ }
+
+ &__footer {
+ min-height: 34px;
+ justify-content: space-between;
+ gap: $space-3;
+ padding-inline: $space-4;
+ border-block-start: 1px solid var(--border-soft);
+ color: var(--text-ghost);
+ font-family: var(--mono);
+ font-size: 10px;
+
+ button {
+ border: 0;
+ background: transparent;
+ color: var(--accent-bright);
+ font: inherit;
+ cursor: pointer;
+ }
+ }
+}
+
+.shell-alerts {
+ &__list {
+ flex: 1;
+ min-height: 0;
+ overflow-y: auto;
+ }
+
+ &__row {
+ display: flex;
+ min-width: 0;
+ border-block-end: 1px solid var(--border-soft);
+
+ &.is-read { opacity: 0.5; }
+ }
+
+ &__hit {
+ display: grid;
+ grid-template-columns: 7px minmax(0, 1fr) auto;
+ align-items: center;
+ width: 100%;
+ min-width: 0;
+ gap: $space-3;
+ padding: 9px 13px;
+ border: 0;
+ background: transparent;
+ color: var(--text);
+ text-align: start;
+ cursor: pointer;
+
+ &:hover { background: var(--surface-2); }
+ }
+
+ &__dot {
+ width: 7px;
+ height: 7px;
+ border-radius: 50%;
+ background: var(--text-faint);
+
+ .is-critical & { background: var(--red); box-shadow: 0 0 6px var(--red); }
+ .is-warning & { background: var(--amber); box-shadow: 0 0 6px var(--amber); }
+ .is-success & { background: var(--green); }
+ .is-info & { background: var(--cyan); }
+ }
+
+ &__copy {
+ display: flex;
+ min-width: 0;
+ flex-direction: column;
+
+ strong,
+ span {
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ }
+
+ strong { font-size: 12.5px; font-weight: $font-weight-medium; }
+ span { margin-block-start: 1px; color: var(--text-ghost); font-size: 11px; }
+ }
+
+ &__meta {
+ color: var(--text-ghost);
+ font-size: 10.5px;
+ white-space: nowrap;
+ }
+
+ &__dismiss {
+ display: grid;
+ width: 34px;
+ flex: 0 0 auto;
+ place-items: center;
+ border: 0;
+ background: transparent;
+ color: var(--text-ghost);
+ cursor: pointer;
+
+ &:hover { color: var(--text); background: var(--surface-2); }
+ }
+}
+
+// Existing real operation UI, reflowed into the same bottom console geometry.
+.operations-dock.operations-dock--statusbar {
+ inset-inline: $sidebar-width 0;
+ inset-block-end: var(--sk-statusbar-height);
+ z-index: $z-shell-panel;
+
+ &.is-collapsed { display: none; }
+
+ .operations-dock__panel {
+ grid-template-areas:
+ 'header header'
+ 'tabs detail'
+ 'list detail';
+ grid-template-columns: 344px minmax(0, 1fr);
+ grid-template-rows: auto auto minmax(0, 1fr);
+ width: 100%;
+ height: min(320px, 56vh);
+ border: 0;
+ border-block-start: 1px solid var(--border-strong);
+ border-radius: 0;
+ box-shadow: 0 -20px 45px rgba(0, 0, 0, 0.18);
+ animation: shell-panel-enter 160ms ease-out;
+ }
+
+ .operations-dock__header { grid-area: header; min-height: 39px; padding-block: $space-1; }
+ .operations-dock__tabs { grid-area: tabs; }
+ .operations-dock__list { grid-area: list; border-inline-end: 1px solid var(--border-soft); border-block-end: 0; }
+ .operations-dock__detail { grid-area: detail; }
+}
+
+// Operator walkthroughs become Recipes in the bottom bar. The established
+// walkthrough engine and saved progress stay intact; only its shell changes.
+.walkthrough-shell.walkthrough-shell--statusbar {
+ inset-inline: $sidebar-width 0;
+ inset-block-end: var(--sk-statusbar-height);
+ z-index: $z-shell-panel;
+
+ .walkthrough-hub {
+ position: static;
+ width: 100%;
+ height: min(360px, 60vh);
+ max-height: none;
+ border: 0;
+ border-block-start: 1px solid var(--border-strong);
+ border-radius: 0;
+ box-shadow: 0 -20px 45px rgba(0, 0, 0, 0.18);
+ }
+
+ .walkthrough-hub__library { flex: 1; }
+ .walkthrough-hub__cards { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
+}
+
+// Leave the shared shell edge visible while the assistant is docked right.
+.dashboard-layout .sk-ai-drawer {
+ inset-block-end: var(--sk-statusbar-height);
+}
+
+// Reserve the bottom edge for the status bar on every shell variant.
+.dashboard-layout .sidebar {
+ height: calc(100vh - var(--sk-statusbar-height));
+}
+
+.dashboard-layout .main-content {
+ padding-block-end: calc(#{$space-10} + var(--sk-statusbar-height));
+
+ &--full-page,
+ &:has(.workflow-page.fullscreen),
+ &:has(.page-container--full-bleed) {
+ height: calc(100vh - var(--sk-statusbar-height));
+ padding-block-end: 0;
+ }
+}
+
+@media (min-width: ($breakpoint-md + 1)) {
+ [data-layout='rail'] {
+ .global-statusbar,
+ .shell-panel,
+ .operations-dock.operations-dock--statusbar,
+ .walkthrough-shell.walkthrough-shell--statusbar {
+ inset-inline-start: $sidebar-rail-width;
+ }
+ }
+
+ [data-layout='topbar'] {
+ .global-statusbar,
+ .shell-panel,
+ .operations-dock.operations-dock--statusbar,
+ .walkthrough-shell.walkthrough-shell--statusbar {
+ inset-inline-start: 0;
+ }
+
+ .main-content--full-page,
+ .main-content:has(.workflow-page.fullscreen),
+ .main-content:has(.page-container--full-bleed) {
+ height: calc(100vh - #{$header-height} - var(--sk-statusbar-height));
+ }
+ }
+}
+
+@media (max-width: $breakpoint-md) {
+ .dashboard-layout { --sk-statusbar-height: 36px; }
+
+ .global-statusbar,
+ .shell-panel,
+ .operations-dock.operations-dock--statusbar,
+ .walkthrough-shell.walkthrough-shell--statusbar {
+ inset-inline: 0;
+ }
+
+ .global-statusbar {
+ justify-content: space-around;
+ padding-inline: max(4px, env(safe-area-inset-left)) max(4px, env(safe-area-inset-right));
+
+ &__segment,
+ .statusbar-select { justify-content: center; min-width: 32px; padding-inline: 7px; }
+
+ &__segment > span:not(.global-statusbar__pip),
+ .statusbar-select__value,
+ .statusbar-select > svg:last-of-type,
+ &__setup,
+ &__command { display: none; }
+
+ &__spacer { display: none; }
+ &__mobile-icon { display: block; }
+ }
+
+ .operations-dock.operations-dock--statusbar .operations-dock__panel {
+ grid-template-areas:
+ 'header'
+ 'tabs'
+ 'list'
+ 'detail';
+ grid-template-columns: 1fr;
+ grid-template-rows: auto auto minmax(80px, 0.7fr) minmax(0, 1.3fr);
+ height: min(68vh, 620px);
+ }
+
+ .operations-dock.operations-dock--statusbar .operations-dock__list {
+ border-inline-end: 0;
+ border-block-end: 1px solid var(--border-soft);
+ }
+
+ .walkthrough-shell.walkthrough-shell--statusbar .walkthrough-hub,
+ .shell-panel { height: min(68vh, 620px); }
+
+ .walkthrough-shell.walkthrough-shell--statusbar .walkthrough-hub__cards {
+ grid-template-columns: 1fr;
+ }
+
+ .dashboard-layout .sidebar { height: calc(100dvh - var(--sk-statusbar-height)); }
+
+ .dashboard-layout .main-content {
+ padding-block-end: calc(#{$space-5} + var(--sk-statusbar-height));
+
+ &--full-page,
+ &:has(.workflow-page.fullscreen),
+ &:has(.page-container--full-bleed) {
+ height: calc(100dvh - #{$mobile-header-height} - env(safe-area-inset-top) - var(--sk-statusbar-height));
+ }
+ }
+}
+
+@keyframes shell-panel-enter {
+ from { opacity: 0; transform: translateY(6px); }
+ to { opacity: 1; transform: none; }
+}
+
+@media (prefers-reduced-motion: reduce) {
+ .shell-panel,
+ .operations-dock.operations-dock--statusbar .operations-dock__panel,
+ .walkthrough-shell.walkthrough-shell--statusbar .walkthrough-hub { animation: none; }
+}
diff --git a/frontend/src/styles/components/_setup-health.scss b/frontend/src/styles/components/_setup-health.scss
index 0cbff3e3..b4cfaa90 100644
--- a/frontend/src/styles/components/_setup-health.scss
+++ b/frontend/src/styles/components/_setup-health.scss
@@ -8,96 +8,74 @@
.setup-health-widget {
display: flex;
- flex-direction: column;
+ align-items: center;
gap: $space-3;
- padding: $space-4;
+ min-width: 0;
+ padding: 9px 8px 9px 13px;
border: 1px solid var(--border-soft, #{$border-default});
- border-radius: var(--radius, #{$radius-lg});
+ border-radius: 10px;
background: var(--surface, #{$bg-card});
- min-width: 0;
-
- &__head {
- display: flex;
- align-items: center;
- justify-content: space-between;
- gap: $space-2;
- }
&__title {
- display: inline-flex;
- align-items: center;
- gap: $space-2;
- font-size: 13px;
- font-weight: 600;
color: $text-primary;
+ font-size: 12.5px;
+ font-weight: 600;
+ white-space: nowrap;
}
&__score {
- font-size: 18px;
- font-weight: 700;
- color: $text-primary;
+ color: var(--amber);
+ font-size: 12px;
+ font-weight: 600;
font-variant-numeric: tabular-nums;
}
- &__summary {
- display: flex;
- flex-wrap: wrap;
- gap: $space-2;
- }
-
- &__list {
- list-style: none;
- margin: 0;
- padding: 0;
- display: flex;
- flex-direction: column;
- gap: $space-1;
+ &__icon {
+ flex: 0 0 auto;
+ color: var(--amber);
}
- &__item {
- width: 100%;
- display: flex;
- align-items: center;
- gap: $space-2;
- padding: $space-2 $space-2;
+ > progress {
+ width: 88px;
+ height: 4px;
+ overflow: hidden;
border: 0;
- border-radius: $radius-md;
- background: transparent;
- color: $text-primary;
- text-align: left;
- cursor: pointer;
- transition: background 0.12s ease;
+ border-radius: 999px;
+ background: var(--surface-3);
+ appearance: none;
- &:hover {
- background: var(--bg-hover, #{$bg-hover});
- }
+ &::-webkit-progress-bar { background: var(--surface-3); }
+ &::-webkit-progress-value { background: var(--amber); }
+ &::-moz-progress-bar { background: var(--amber); }
}
- &__itemtitle {
- flex: 1;
- min-width: 0;
- font-size: 12.5px;
+ &__summary,
+ &__muted {
overflow: hidden;
+ color: $text-tertiary;
+ font-size: 11.5px;
text-overflow: ellipsis;
white-space: nowrap;
}
- &__more {
- align-self: flex-start;
+ &__spacer {
+ flex: 1;
+ }
+
+ &__dismiss {
+ display: grid;
+ width: 26px;
+ height: 26px;
+ flex: 0 0 auto;
+ place-items: center;
border: 0;
+ border-radius: $radius-sm;
background: transparent;
- color: $primary-color;
- font-size: 12px;
+ color: $text-tertiary;
cursor: pointer;
- padding: 0;
+ @include focus-ring();
- &:hover { text-decoration: underline; }
- }
-
- &__muted {
- margin: 0;
- font-size: 12px;
- color: $text-tertiary;
+ &:hover { color: $text-primary; background: $bg-hover; }
}
// Slim "all set" state — a single clickable line, not a dead card.
@@ -119,6 +97,15 @@
flex: 1;
color: $text-secondary;
}
+
+ &--loading {
+ min-height: 46px;
+ }
+
+ @media (max-width: $breakpoint-md) {
+ > progress,
+ &__summary { display: none; }
+ }
}
// Per-user "secure your account" nudge banner (dashboard top).
diff --git a/frontend/src/styles/layout/_main-content.scss b/frontend/src/styles/layout/_main-content.scss
index 102d3cd5..a885c18a 100644
--- a/frontend/src/styles/layout/_main-content.scss
+++ b/frontend/src/styles/layout/_main-content.scss
@@ -3,6 +3,7 @@
// ============================================
.dashboard-layout {
+ --sk-statusbar-height: 30px;
display: flex;
min-height: 100vh;
}
diff --git a/frontend/src/styles/layout/_sidebar.scss b/frontend/src/styles/layout/_sidebar.scss
index 8d40b4ef..2d56c4f1 100644
--- a/frontend/src/styles/layout/_sidebar.scss
+++ b/frontend/src/styles/layout/_sidebar.scss
@@ -264,22 +264,13 @@
text-overflow: ellipsis;
}
-// Quick-create — a small circular accent "+" (AI chat-bubble style) that rides
-// on the first sidebar category row, next to the section label. Doubled class
-// beats the base `.quick-create` rules, which live in a later-imported
-// stylesheet.
-.nav-category--create {
- display: flex;
- align-items: center;
- justify-content: space-between;
- margin-right: 0.35rem;
-}
-
-.quick-create.quick-create--fab {
- width: 28px;
- height: 28px;
+// Quick-create now lives in the brand row: logo → name → GitHub star → create.
+// The square accent treatment matches the prototype's compact app-chrome tool.
+.quick-create.quick-create--header {
+ width: 27px;
+ height: 27px;
border: none;
- border-radius: 50%;
+ border-radius: 8px;
background: linear-gradient(160deg, var(--accent-bright), var(--accent));
box-shadow: 0 2px 8px -1px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
color: #fff;
@@ -302,6 +293,10 @@
}
}
+.brand-section--custom .quick-create--header {
+ margin-inline-start: auto;
+}
+
// Scrollable Navigation Container
// Active-workspace selector (#33) — sits between the brand and the nav.
// Uses the Radix Select UI component so the dropdown is fully theme-aware.
@@ -786,21 +781,9 @@
gap: 0;
}
- // Category labels hide in the collapsed rail, but the row
- // hosting quick-create stays so the "+" survives as a bare
- // circular FAB.
- .nav-category.nav-category--create {
- display: flex;
- justify-content: center;
- margin: 0.75rem 0 0.5rem;
-
- span {
- display: none;
- }
- }
-
.brand-text,
.brand-star,
+ .quick-create--header,
.nav-category,
.nav-expand-btn,
.workspace-switcher__trigger > span,
@@ -863,19 +846,6 @@
max-width: 170px;
}
- // Category labels are hidden in the bar, but keep the quick-create row
- // visible as a bare circular FAB at the start of the nav strip.
- .nav-category.nav-category--create {
- display: flex;
- align-items: center;
- margin: 0;
- flex-shrink: 0;
-
- span {
- display: none;
- }
- }
-
// Nav fills the middle of the bar and scrolls horizontally if it runs long.
.nav-scroll {
flex: 1;
diff --git a/frontend/src/styles/main.scss b/frontend/src/styles/main.scss
index 843a0219..e78a3212 100644
--- a/frontend/src/styles/main.scss
+++ b/frontend/src/styles/main.scss
@@ -80,6 +80,7 @@
@import 'components/_datagrid'; // DataGrid list surface (sk-grid*, ds/grid/)
@import 'components/_dashboard-widgets'; // configurable dashboard grid (skw-* namespace)
@import 'components/_setup-health'; // dashboard setup-health card + account nudge
+@import 'components/_global-statusbar'; // unified VS Code-style shell status edge + panels
@import 'components/_widget-editor'; // wide preview+settings widget drawer (skwe-* namespace)
@import 'components/_system-notices';
@import 'components/_disk-reclaim'; // curated safe disk-reclaim modal
diff --git a/frontend/src/styles/pages/_file-manager.scss b/frontend/src/styles/pages/_file-manager.scss
index 9cc98104..ab2c5dde 100644
--- a/frontend/src/styles/pages/_file-manager.scss
+++ b/frontend/src/styles/pages/_file-manager.scss
@@ -29,7 +29,7 @@ $ft-default: #646b7a;
&.fullscreen {
width: 100%;
max-width: none;
- height: 100vh;
+ height: 100%;
min-height: 0;
margin: 0;
padding: 0;
@@ -187,13 +187,22 @@ $ft-default: #646b7a;
.path-breadcrumb {
display: flex;
align-items: center;
- flex-wrap: wrap;
+ flex: 1;
+ flex-wrap: nowrap;
min-width: 0;
+ overflow: hidden;
font-family: $font-mono;
font-size: 12.5px;
gap: 1px;
- .crumb-segment { display: inline-flex; align-items: center; }
+ .crumb-segment {
+ display: inline-flex;
+ min-width: 0;
+ align-items: center;
+ flex: 0 1 auto;
+
+ &:last-child { flex-shrink: 0; }
+ }
// demo crumbs join on a mono "/" (not a chevron icon)
.crumb-separator {
color: var(--text-ghost);
@@ -210,6 +219,9 @@ $ft-default: #646b7a;
color: var(--text-dim);
cursor: pointer;
font: inherit;
+ max-width: 110px;
+ overflow: hidden;
+ text-overflow: ellipsis;
white-space: nowrap;
@include transition(all);
@@ -223,6 +235,25 @@ $ft-default: #646b7a;
}
}
+ .file-mount-chip {
+ display: inline-flex;
+ align-items: center;
+ min-width: 0;
+ gap: 5px;
+ margin-inline-start: $space-1;
+ padding: 4px 8px;
+ border: 1px solid var(--border-soft);
+ border-radius: $radius-sm;
+ background: var(--surface-2);
+ color: var(--text-faint);
+ font-family: $font-mono;
+ font-size: 10px;
+ white-space: nowrap;
+
+ svg { color: var(--accent-bright); }
+ span { @include truncate(); max-width: 90px; }
+ }
+
// ─── Search field ───────────────────────────────────
.search-field {
position: relative;
@@ -320,12 +351,41 @@ $ft-default: #646b7a;
&.small { padding: 4px; }
}
- .file-manager-toolbar .target-picker {
- flex-shrink: 0;
+ .file-toolbar-select {
+ position: relative;
+ display: inline-flex;
+ align-items: center;
+ height: 32px;
+ min-width: 0;
+ gap: 5px;
+ padding-inline: 8px 5px;
+ border: 1px solid var(--border);
+ border-radius: 8px;
+ background: var(--surface-2);
+ color: var(--text-faint);
+ transition: border-color 120ms ease, background-color 120ms ease, color 120ms ease;
+
+ &:hover,
+ &:focus-within {
+ border-color: var(--border-strong);
+ background: var(--surface-3);
+ color: var(--text-dim);
+ }
- .target-picker__resource {
- max-width: 170px;
+ select {
+ width: 78px;
+ min-width: 0;
+ border: 0;
+ outline: 0;
+ background: transparent;
+ color: inherit;
+ font-family: $font-mono;
+ font-size: 10.5px;
+ cursor: pointer;
+ appearance: none;
}
+
+ > svg:last-child { opacity: 0.58; pointer-events: none; }
}
// ─── View toggles ───────────────────────────────────
@@ -498,9 +558,8 @@ $ft-default: #646b7a;
@media (max-width: $breakpoint-lg) {
position: fixed;
- left: 0;
- top: 64px;
- bottom: 0;
+ inset-inline-start: 0;
+ inset-block: $mobile-header-height var(--sk-statusbar-height);
width: 100%;
max-width: 320px;
max-height: none;
@@ -511,6 +570,55 @@ $ft-default: #646b7a;
}
}
+ .file-manager-source {
+ position: relative;
+ padding: 0 2px $space-3;
+ border-bottom: 1px solid var(--border-soft);
+
+ .target-picker,
+ .target-picker__resource { width: 100%; max-width: none; }
+
+ &__meta {
+ display: flex;
+ align-items: center;
+ gap: 6px;
+ margin-block-start: 6px;
+ padding-inline: 9px;
+ color: var(--text-ghost);
+ font-family: $font-mono;
+ font-size: 9.5px;
+ }
+
+ &__dot {
+ width: 5px;
+ height: 5px;
+ flex: 0 0 auto;
+ border-radius: 50%;
+ background: var(--green);
+ box-shadow: 0 0 5px var(--green);
+
+ &.is-cloud { background: var(--cyan); box-shadow: 0 0 5px var(--cyan); }
+ }
+
+ &__close {
+ position: absolute;
+ inset-block-start: 5px;
+ inset-inline-end: 7px;
+ z-index: 2;
+ display: none;
+ width: 25px;
+ height: 25px;
+ place-items: center;
+ border: 0;
+ border-radius: $radius-sm;
+ background: var(--surface-3);
+ color: var(--text-faint);
+ cursor: pointer;
+
+ &:hover { color: var(--text); }
+ }
+ }
+
&:not(.sidebar-open) .file-manager-sidebar.left {
@media (max-width: $breakpoint-lg) { transform: translateX(-100%); }
}
@@ -580,6 +688,17 @@ $ft-default: #646b7a;
span { flex: 1; }
}
+
+ .sidebar-section-title {
+ display: flex;
+ align-items: center;
+ min-width: 0;
+ flex: 1;
+ gap: $space-2;
+ padding: 10px $space-2 5px;
+
+ svg { width: 13px; height: 13px; }
+ }
}
.sidebar-action-btn {
@@ -818,14 +937,6 @@ $ft-default: #646b7a;
}
// ─── Disk usage ─────────────────────────────────────
- .disk-header-row {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: $space-2;
- padding: 0 $space-2;
- }
-
.disk-updated {
display: flex;
align-items: center;
@@ -833,27 +944,42 @@ $ft-default: #646b7a;
font-family: $font-mono;
font-size: 10px;
color: var(--text-ghost);
+
+ &--footer {
+ justify-content: flex-end;
+ padding: 5px $space-2 0;
+ font-size: 9px;
+ }
}
+ .disk-mount-list { display: grid; gap: 2px; }
+
.disk-mount-item {
- padding: $space-2;
- border-bottom: 1px solid var(--border-soft);
+ width: 100%;
+ padding: 7px $space-2 8px;
+ border: 1px solid transparent;
+ border-radius: $radius-sm;
+ background: transparent;
+ color: inherit;
+ text-align: start;
+ cursor: pointer;
+ transition: background-color 120ms ease, border-color 120ms ease;
- &:last-child { border-bottom: none; padding-bottom: 0; }
- &:first-child { padding-top: 0; }
+ &:hover { background: var(--surface-2); }
+ &.active { background: var(--accent-bg); border-color: var(--accent-dim); }
}
.disk-mount-header {
display: flex;
justify-content: space-between;
align-items: center;
- margin-bottom: $space-2;
+ margin-bottom: 6px;
}
.disk-mount-point {
font-family: $font-mono;
font-size: 12px;
- color: $text-primary;
+ color: var(--text-dim);
}
.disk-percent {
@@ -870,7 +996,7 @@ $ft-default: #646b7a;
background: var(--surface-3);
border-radius: 3px;
overflow: hidden;
- margin-bottom: $space-2;
+ margin-bottom: 0;
.disk-progress-fill { height: 100%; border-radius: 3px; @include transition(width); }
&.healthy .disk-progress-fill { background: $success; }
@@ -1251,6 +1377,18 @@ $ft-default: #646b7a;
opacity: 1;
}
+ .file-manager-body.has-preview .file-list {
+ .file-list-header,
+ .file-item {
+ grid-template-columns: 30px minmax(0, 1fr) 76px 108px;
+ padding-inline: $space-2;
+
+ .col-permissions,
+ .col-owner,
+ .col-actions { display: none; }
+ }
+ }
+
.row-action {
background: transparent;
border: none;
@@ -1705,11 +1843,35 @@ $drawer-width: 520px;
// ─── Responsive ─────────────────────────────────────────
@media (max-width: $breakpoint-md) {
.file-manager {
+ .file-manager-source {
+ padding-inline-end: 38px;
+
+ &__close { display: grid; }
+ }
+
.file-manager-toolbar {
flex-direction: column;
align-items: stretch;
- .toolbar-left, .toolbar-right { justify-content: space-between; }
- .search-field { flex: 1; min-width: 0; }
+
+ .toolbar-left,
+ .toolbar-right { width: 100%; justify-content: flex-start; }
+
+ .toolbar-right { flex-wrap: wrap; }
+
+ .search-field {
+ order: -1;
+ width: 100%;
+ min-width: 0;
+ flex: 1 0 100%;
+ }
+
+ .file-toolbar-select {
+ flex: 1;
+
+ select { width: 100%; }
+ }
+
+ .file-mount-chip { display: none; }
}
.file-list {