Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Simplify settings panel gradients to solid colors

rcourtmanb75783397ca8
diff --git a/frontend-modern/src/components/Settings/APIAccessPanel.tsx b/frontend-modern/src/components/Settings/APIAccessPanel.tsx
index 32445e2d70..26a509e3a5 100644
--- a/frontend-modern/src/components/Settings/APIAccessPanel.tsx
+++ b/frontend-modern/src/components/Settings/APIAccessPanel.tsx
@@ -1,6 +1,5 @@
import { Component } from 'solid-js';
-import { Card } from '@/components/shared/Card';
-import { SectionHeader } from '@/components/shared/SectionHeader';
+import SettingsPanel from '@/components/shared/SettingsPanel';
import APITokenManager from './APITokenManager';
import BadgeCheck from 'lucide-solid/icons/badge-check';
@@ -13,25 +12,12 @@ interface APIAccessPanelProps {
export const APIAccessPanel: Component<APIAccessPanelProps> = (props) => {
return (
<div class="space-y-6">
- <Card
- padding="none"
- class="overflow-hidden border border-gray-200 dark:border-gray-700"
- border={false}
+ <SettingsPanel
+ title="API Access"
+ description="Generate scoped tokens for agents and automation"
+ icon={<BadgeCheck class="w-5 h-5" strokeWidth={2} />}
>
- <div class="bg-gradient-to-r from-blue-50 to-indigo-50 dark:from-blue-900/20 dark:to-indigo-900/20 px-6 py-4 border-b border-gray-200 dark:border-gray-700">
- <div class="flex items-center gap-3">
- <div class="p-2 bg-blue-100 dark:bg-blue-900/40 rounded-lg">
- <BadgeCheck class="w-5 h-5 text-blue-600 dark:text-blue-300" />
- </div>
- <SectionHeader
- title="API Access"
- description="Generate scoped tokens for agents and automation"
- size="sm"
- class="flex-1"
- />
- </div>
- </div>
- <div class="p-6 space-y-3">
+ <div class="space-y-3">
<p class="text-sm text-gray-600 dark:text-gray-400">
Generate scoped tokens for Docker agents, host agents, and automation pipelines. Tokens
are shown once—store them securely and rotate when infrastructure changes.
@@ -45,7 +31,7 @@ export const APIAccessPanel: Component<APIAccessPanelProps> = (props) => {
View scope reference
</a>
</div>
- </Card>
+ </SettingsPanel>
<APITokenManager
currentTokenHint={props.currentTokenHint}
diff --git a/frontend-modern/src/components/Settings/APITokenManager.tsx b/frontend-modern/src/components/Settings/APITokenManager.tsx
index e672a3efb7..87ae72e5d8 100644
--- a/frontend-modern/src/components/Settings/APITokenManager.tsx
+++ b/frontend-modern/src/components/Settings/APITokenManager.tsx
@@ -375,7 +375,7 @@ export const APITokenManager: Component<APITokenManagerProps> = (props) => {
<div class="space-y-5">
<Card
padding="lg"
- class="border border-gray-200/80 bg-gradient-to-r from-gray-50 via-white to-gray-50 shadow-sm dark:border-gray-700/80 dark:from-gray-900/60 dark:via-gray-900/40 dark:to-gray-900/60"
+ class="border border-gray-200/80 bg-gray-50 shadow-sm dark:border-gray-700/80 dark:bg-gray-900/60"
>
<div class="flex flex-col gap-6">
<div class="flex flex-wrap items-center justify-between gap-4">
diff --git a/frontend-modern/src/components/Settings/AuditLogPanel.tsx b/frontend-modern/src/components/Settings/AuditLogPanel.tsx
index f6194b0bd5..0cc522f6e2 100644
--- a/frontend-modern/src/components/Settings/AuditLogPanel.tsx
+++ b/frontend-modern/src/components/Settings/AuditLogPanel.tsx
@@ -503,7 +503,7 @@ export default function AuditLogPanel() {
{/* Upgrade CTA */}
<Show when={licenseLoaded() && !hasFeature('audit_logging') && !loading()}>
- <div class="p-6 bg-gradient-to-r from-indigo-50 to-purple-50 dark:from-indigo-900/20 dark:to-purple-900/20 border border-indigo-100 dark:border-indigo-800 rounded-xl">
+ <div class="p-6 bg-indigo-50 dark:bg-indigo-900/20 border border-indigo-100 dark:border-indigo-800 rounded-xl">
<div class="flex flex-col sm:flex-row items-center gap-4">
<div class="flex-1">
<h3 class="text-lg font-semibold text-gray-900 dark:text-white">Audit Logging</h3>
diff --git a/frontend-modern/src/components/Settings/OIDCPanel.tsx b/frontend-modern/src/components/Settings/OIDCPanel.tsx
index 79e9363275..fa5917f105 100644
--- a/frontend-modern/src/components/Settings/OIDCPanel.tsx
+++ b/frontend-modern/src/components/Settings/OIDCPanel.tsx
@@ -215,7 +215,7 @@ export const OIDCPanel: Component<Props> = (props) => {
class="overflow-hidden border border-gray-200 dark:border-gray-700"
border={false}
>
- <div class="bg-gradient-to-r from-blue-50 to-indigo-50 dark:from-blue-900/20 dark:to-indigo-900/20 px-6 py-4 border-b border-gray-200 dark:border-gray-700">
+ <div class="bg-blue-50 dark:bg-blue-900/20 px-6 py-4 border-b border-gray-200 dark:border-gray-700">
<div class="flex items-center gap-3">
<div class="p-2 bg-blue-100 dark:bg-blue-900/40 rounded-lg">
<svg
@@ -280,7 +280,7 @@ export const OIDCPanel: Component<Props> = (props) => {
</div>
</div>
<Show when={licenseLoaded() && !hasFeature('sso') && !loading()}>
- <div class="mx-6 mt-6 p-5 bg-gradient-to-r from-indigo-50 to-purple-50 dark:from-indigo-900/20 dark:to-purple-900/20 border border-indigo-100 dark:border-indigo-800 rounded-xl">
+ <div class="mx-6 mt-6 p-5 bg-indigo-50 dark:bg-indigo-900/20 border border-indigo-100 dark:border-indigo-800 rounded-xl">
<div class="flex flex-col sm:flex-row items-center gap-4">
<div class="flex-1">
<h4 class="text-base font-semibold text-gray-900 dark:text-white">Single Sign-On</h4>
diff --git a/frontend-modern/src/components/Settings/ProxmoxAgentNodesPanel.tsx b/frontend-modern/src/components/Settings/ProxmoxAgentNodesPanel.tsx
index 2d2fe7ebb2..72a1dd44b9 100644
--- a/frontend-modern/src/components/Settings/ProxmoxAgentNodesPanel.tsx
+++ b/frontend-modern/src/components/Settings/ProxmoxAgentNodesPanel.tsx
@@ -472,7 +472,7 @@ export const ProxmoxAgentNodesPanel: Component<ProxmoxAgentNodesPanelProps> = (p
<Show when={props.agentType === 'pmg'}>
{/* PMG style */}
<div
- class="bg-gradient-to-r from-purple-50 to-transparent dark:from-purple-900/20 dark:to-transparent border-l-4 border-purple-500 rounded-lg p-4 cursor-pointer hover:shadow-md transition-all"
+ class="bg-purple-50 dark:bg-purple-900/20 border-l-4 border-purple-500 rounded-lg p-4 cursor-pointer hover:shadow-md transition-all"
onClick={() => handleDiscoveredNodeClick(server)}
>
<div class="flex items-start justify-between">
diff --git a/frontend-modern/src/components/Settings/RolesPanel.tsx b/frontend-modern/src/components/Settings/RolesPanel.tsx
index 44f54ffe22..87f4477f3f 100644
--- a/frontend-modern/src/components/Settings/RolesPanel.tsx
+++ b/frontend-modern/src/components/Settings/RolesPanel.tsx
@@ -148,7 +148,7 @@ export const RolesPanel: Component = () => {
</div>
<Show when={licenseLoaded() && !hasFeature('rbac') && !loading()}>
- <div class="p-4 bg-gradient-to-r from-indigo-50 to-purple-50 dark:from-indigo-900/20 dark:to-purple-900/20 border border-indigo-100 dark:border-indigo-800 rounded-xl">
+ <div class="p-4 bg-indigo-50 dark:bg-indigo-900/20 border border-indigo-100 dark:border-indigo-800 rounded-xl">
<div class="flex flex-col sm:flex-row items-center gap-4">
<div class="flex-1">
<h4 class="text-base font-semibold text-gray-900 dark:text-white">Custom Roles (Pro)</h4>
diff --git a/frontend-modern/src/components/Settings/SSOProvidersPanel.tsx b/frontend-modern/src/components/Settings/SSOProvidersPanel.tsx
index 7803e6d1d0..cf28f3b2fe 100644
--- a/frontend-modern/src/components/Settings/SSOProvidersPanel.tsx
+++ b/frontend-modern/src/components/Settings/SSOProvidersPanel.tsx
@@ -508,7 +508,7 @@ export const SSOProvidersPanel: Component<Props> = (props) => {
<div class="space-y-6">
{/* License banner */}
<Show when={licenseLoaded() && !hasAdvancedSSO() && !loading()}>
- <Card padding="md" class="bg-gradient-to-r from-indigo-50 to-purple-50 dark:from-indigo-900/20 dark:to-purple-900/20 border border-indigo-100 dark:border-indigo-800">
+ <Card padding="md" class="bg-indigo-50 dark:bg-indigo-900/20 border border-indigo-100 dark:border-indigo-800">
<div class="flex flex-col sm:flex-row items-center gap-4">
<div class="flex-1">
<h4 class="text-base font-semibold text-gray-900 dark:text-white">Advanced SSO</h4>
@@ -535,7 +535,7 @@ export const SSOProvidersPanel: Component<Props> = (props) => {
border={false}
>
{/* Header */}
- <div class="bg-gradient-to-r from-blue-50 to-indigo-50 dark:from-blue-900/20 dark:to-indigo-900/20 px-6 py-4 border-b border-gray-200 dark:border-gray-700">
+ <div class="bg-blue-50 dark:bg-blue-900/20 px-6 py-4 border-b border-gray-200 dark:border-gray-700">
<div class="flex items-center justify-between gap-3">
<div class="flex items-center gap-3">
<div class="p-2 bg-blue-100 dark:bg-blue-900/40 rounded-lg">
diff --git a/frontend-modern/src/components/Settings/SecurityOverviewPanel.tsx b/frontend-modern/src/components/Settings/SecurityOverviewPanel.tsx
index f89088cbc6..d38f809ac8 100644
--- a/frontend-modern/src/components/Settings/SecurityOverviewPanel.tsx
+++ b/frontend-modern/src/components/Settings/SecurityOverviewPanel.tsx
@@ -38,7 +38,7 @@ export const SecurityOverviewPanel: Component<SecurityOverviewPanelProps> = (pro
class="overflow-hidden border border-gray-200 dark:border-gray-700"
border={false}
>
- <div class="bg-gradient-to-r from-gray-100 to-gray-200 dark:from-gray-800 dark:to-gray-700 px-6 py-5 animate-pulse">
+ <div class="bg-gray-100 dark:bg-gray-800 px-6 py-5 animate-pulse">
<div class="flex items-center gap-4">
<div class="w-12 h-12 bg-gray-300 dark:bg-gray-600 rounded-xl"></div>
<div class="flex-1 space-y-2">
@@ -76,7 +76,7 @@ export const SecurityOverviewPanel: Component<SecurityOverviewPanelProps> = (pro
class="overflow-hidden border border-blue-200 dark:border-blue-800"
border={false}
>
- <div class="bg-gradient-to-r from-blue-50 to-indigo-50 dark:from-blue-900/20 dark:to-indigo-900/20 px-6 py-4 border-b border-blue-200 dark:border-blue-700">
+ <div class="bg-blue-50 dark:bg-blue-900/20 px-6 py-4 border-b border-blue-200 dark:border-blue-700">
<div class="flex items-center gap-3">
<div class="p-2 bg-blue-100 dark:bg-blue-900/50 rounded-lg">
<Shield class="w-5 h-5 text-blue-600 dark:text-blue-300" strokeWidth={2} />
diff --git a/frontend-modern/src/components/Settings/SecurityPostureSummary.tsx b/frontend-modern/src/components/Settings/SecurityPostureSummary.tsx
index 7c00efc6c9..b5480c3ba2 100644
--- a/frontend-modern/src/components/Settings/SecurityPostureSummary.tsx
+++ b/frontend-modern/src/components/Settings/SecurityPostureSummary.tsx
@@ -97,9 +97,9 @@ export const SecurityPostureSummary: Component<SecurityPostureSummaryProps> = (p
const scoreColor = () => {
const score = securityScore();
- if (score >= 80) return 'from-green-500 to-emerald-600';
- if (score >= 50) return 'from-amber-500 to-orange-600';
- return 'from-red-500 to-rose-600';
+ if (score >= 80) return 'bg-green-500';
+ if (score >= 50) return 'bg-amber-500';
+ return 'bg-red-500';
};
const scoreLabel = () => {
@@ -123,7 +123,7 @@ export const SecurityPostureSummary: Component<SecurityPostureSummaryProps> = (p
border={false}
>
{/* Header with Security Score */}
- <div class={`bg-gradient-to-r ${scoreColor()} px-6 py-5`}>
+ <div class={`${scoreColor()} px-6 py-5`}>
<div class="flex items-center justify-between">
<div class="flex items-center gap-4">
<div class="p-3 bg-white/20 rounded-xl backdrop-blur-sm">
diff --git a/frontend-modern/src/components/Settings/UserAssignmentsPanel.tsx b/frontend-modern/src/components/Settings/UserAssignmentsPanel.tsx
index 2a438fa6ae..824217486a 100644
--- a/frontend-modern/src/components/Settings/UserAssignmentsPanel.tsx
+++ b/frontend-modern/src/components/Settings/UserAssignmentsPanel.tsx
@@ -130,7 +130,7 @@ export const UserAssignmentsPanel: Component = () => {
</div>
<Show when={licenseLoaded() && !hasFeature('rbac') && !loading()}>
- <div class="p-4 bg-gradient-to-r from-teal-50 to-emerald-50 dark:from-teal-900/20 dark:to-emerald-900/20 border border-teal-100 dark:border-teal-800 rounded-xl">
+ <div class="p-4 bg-teal-50 dark:bg-teal-900/20 border border-teal-100 dark:border-teal-800 rounded-xl">
<div class="flex flex-col sm:flex-row items-center gap-4">
<div class="flex-1">
<h4 class="text-base font-semibold text-gray-900 dark:text-white">Centralized Access Control (Pro)</h4>