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.

fix(settings): drop About under White Label + show panel version in System Info

Juan Denis271f925951e4
diff --git a/frontend/src/components/settings/SystemTab.jsx b/frontend/src/components/settings/SystemTab.jsx
index 8438427e..739aa8e5 100644
--- a/frontend/src/components/settings/SystemTab.jsx
+++ b/frontend/src/components/settings/SystemTab.jsx
@@ -1,5 +1,6 @@
import { useState, useEffect } from 'react';
import { useAuth } from '../../contexts/AuthContext';
+import { useTheme } from '../../contexts/ThemeContext';
import api from '../../services/api';
import { InfoList, InfoItem } from '../InfoList';
import { Button } from '@/components/ui/button';
@@ -25,7 +26,10 @@ function formatUptime(seconds) {
const SystemTab = () => {
const { isAdmin } = useAuth();
+ const { whiteLabel } = useTheme();
+ const brand = whiteLabel?.enabled && whiteLabel?.brandName ? whiteLabel.brandName : 'ServerKit';
const [metrics, setMetrics] = useState(null);
+ const [version, setVersion] = useState('');
const [loading, setLoading] = useState(true);
const [timezones, setTimezones] = useState([]);
const [selectedTimezone, setSelectedTimezone] = useState('');
@@ -45,6 +49,7 @@ const SystemTab = () => {
loadMetrics();
loadTimezones();
loadDomainInfo();
+ api.getVersion().then(d => setVersion(d.version || '')).catch(() => {});
}
}, [isAdmin]);
@@ -197,14 +202,19 @@ const SystemTab = () => {
</div>
</div>
- {metrics?.system && (
+ {(metrics?.system || version) && (
<div className="settings-card">
<h3>System Details</h3>
<InfoList>
- <InfoItem label="Hostname" value={metrics.system.hostname || '-'} />
- <InfoItem label="Platform" value={metrics.system.platform || '-'} />
- <InfoItem label="OS Version" value={metrics.system.version || '-'} />
- <InfoItem label="Uptime" value={formatUptime(metrics.system.uptime)} />
+ <InfoItem label={`${brand} Version`} value={version || '-'} />
+ {metrics?.system && (
+ <>
+ <InfoItem label="Hostname" value={metrics.system.hostname || '-'} />
+ <InfoItem label="Platform" value={metrics.system.platform || '-'} />
+ <InfoItem label="OS Version" value={metrics.system.version || '-'} />
+ <InfoItem label="Uptime" value={formatUptime(metrics.system.uptime)} />
+ </>
+ )}
</InfoList>
</div>
)}
diff --git a/frontend/src/pages/Settings.jsx b/frontend/src/pages/Settings.jsx
index 61fe2907..edc10797 100644
--- a/frontend/src/pages/Settings.jsx
+++ b/frontend/src/pages/Settings.jsx
@@ -156,7 +156,6 @@ const Settings = () => {
</Button>
</>
)}
- <div className="settings-nav-spacer" />
<Button
variant="ghost"
className={`settings-nav-item ${activeTab === 'about' ? 'active' : ''}`}