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.

style: replace purple AI gradients with Pulse blue

rcourtman8d82c7d8d80e
diff --git a/frontend-modern/src/App.tsx b/frontend-modern/src/App.tsx
index 8870bd2c59..9b01f6fc94 100644
--- a/frontend-modern/src/App.tsx
+++ b/frontend-modern/src/App.tsx
@@ -914,9 +914,9 @@ function App() {
<button
type="button"
onClick={() => aiChatStore.toggle()}
- class="fixed right-0 top-1/2 -translate-y-1/2 z-40 flex items-center gap-1.5 pl-2 pr-1.5 py-3 rounded-l-xl bg-gradient-to-r from-purple-600 to-purple-700 text-white shadow-lg hover:from-purple-700 hover:to-purple-800 transition-all duration-200 group sm:top-1/2 sm:translate-y-[-50%] top-auto bottom-20 translate-y-0"
- title={aiChatStore.context.context?.name ? `AI Assistant - ${aiChatStore.context.context.name}` : 'AI Assistant (⌘K)'}
- aria-label="Expand AI Assistant"
+ class="fixed right-0 top-1/2 -translate-y-1/2 z-40 flex items-center gap-1.5 pl-2 pr-1.5 py-3 rounded-l-xl bg-blue-600 text-white shadow-lg hover:bg-blue-700 transition-colors duration-200 group sm:top-1/2 sm:translate-y-[-50%] top-auto bottom-20 translate-y-0"
+ title={aiChatStore.context.context?.name ? `Pulse Assistant - ${aiChatStore.context.context.name}` : 'Pulse Assistant (⌘K)'}
+ aria-label="Expand Pulse Assistant"
>
<svg
class="h-4 w-4 flex-shrink-0"
@@ -1319,7 +1319,7 @@ function AppLayout(props: {
<div class={`header-controls flex items-center gap-2 ${kioskMode() ? '' : 'justify-end sm:col-start-3 sm:col-end-4 sm:w-auto sm:justify-end sm:justify-self-end'}`}>
<Show when={props.hasAuth() && !props.needsAuth()}>
<div class="flex items-center gap-2">
- {/* AI Patrol Status Indicator */}
+ {/* Pulse Patrol Status Indicator */}
<AIStatusIndicator />
{/* Kiosk Mode Toggle */}
<button
diff --git a/frontend-modern/src/components/AI/Chat/ChatMessages.tsx b/frontend-modern/src/components/AI/Chat/ChatMessages.tsx
index 8b422080ce..fc099e3a3c 100644
--- a/frontend-modern/src/components/AI/Chat/ChatMessages.tsx
+++ b/frontend-modern/src/components/AI/Chat/ChatMessages.tsx
@@ -69,9 +69,9 @@ export const ChatMessages: Component<ChatMessagesProps> = (props) => {
<Show when={props.messages.length === 0 && props.emptyState}>
<div class="flex flex-col items-center justify-center h-full text-center py-12">
{/* AI Icon */}
- <div class="w-16 h-16 mb-4 rounded-2xl bg-gradient-to-br from-purple-100 to-violet-100 dark:from-purple-900/30 dark:to-violet-900/30 flex items-center justify-center shadow-lg shadow-purple-500/10">
+ <div class="w-16 h-16 mb-4 rounded-2xl bg-slate-100 dark:bg-slate-800 flex items-center justify-center shadow-sm">
<svg
- class="w-8 h-8 text-purple-500 dark:text-purple-400"
+ class="w-8 h-8 text-blue-500 dark:text-blue-400"
fill="none"
stroke="currentColor"
viewBox="0 0 24 24"
@@ -100,9 +100,9 @@ export const ChatMessages: Component<ChatMessagesProps> = (props) => {
<button
type="button"
onClick={() => props.emptyState!.onSuggestionClick?.(suggestion)}
- class="w-full text-left px-4 py-2.5 rounded-xl bg-slate-50 dark:bg-slate-800 text-slate-700 dark:text-slate-300 text-sm hover:bg-slate-100 dark:hover:bg-slate-700 transition-colors border border-slate-200 dark:border-slate-700 hover:border-purple-300 dark:hover:border-purple-700"
+ class="w-full text-left px-4 py-2.5 rounded-xl bg-slate-50 dark:bg-slate-800 text-slate-700 dark:text-slate-300 text-sm hover:bg-slate-100 dark:hover:bg-slate-700 transition-colors border border-slate-200 dark:border-slate-700 hover:border-blue-300 dark:hover:border-blue-700"
>
- <span class="text-purple-500 dark:text-purple-400 mr-2">→</span>
+ <span class="text-blue-500 dark:text-blue-400 mr-2">→</span>
{suggestion}
</button>
)}
diff --git a/frontend-modern/src/components/AI/Chat/MessageItem.tsx b/frontend-modern/src/components/AI/Chat/MessageItem.tsx
index 511d7103a8..1622c5cfde 100644
--- a/frontend-modern/src/components/AI/Chat/MessageItem.tsx
+++ b/frontend-modern/src/components/AI/Chat/MessageItem.tsx
@@ -105,7 +105,7 @@ export const MessageItem: Component<MessageItemProps> = (props) => {
<div class={`${isUser() ? 'flex justify-end' : ''} mb-4`}>
{/* User message - compact bubble */}
<Show when={isUser()}>
- <div class="max-w-[85%] px-4 py-2.5 rounded-2xl rounded-br-md bg-gradient-to-br from-purple-600 to-violet-600 text-white shadow-md">
+ <div class="max-w-[85%] px-4 py-2.5 rounded-2xl rounded-br-md bg-blue-600 text-white shadow-sm">
<p class="text-sm whitespace-pre-wrap">{props.message.content}</p>
</div>
</Show>
@@ -115,7 +115,7 @@ export const MessageItem: Component<MessageItemProps> = (props) => {
<div class="w-full">
{/* Assistant indicator */}
<div class="flex items-center gap-2 mb-2 text-xs text-slate-500 dark:text-slate-400">
- <div class="w-5 h-5 rounded-md bg-gradient-to-br from-purple-500 to-violet-500 flex items-center justify-center">
+ <div class="w-5 h-5 rounded-md bg-blue-600 flex items-center justify-center">
<svg class="w-3 h-3 text-white" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9.75 3.104v5.714a2.25 2.25 0 01-.659 1.591L5 14.5M9.75 3.104c-.251.023-.501.05-.75.082m.75-.082a24.301 24.301 0 014.5 0m0 0v5.714c0 .597.237 1.17.659 1.591L19.8 15.3M14.25 3.104c.251.023.501.05.75.082" />
</svg>
@@ -164,8 +164,8 @@ export const MessageItem: Component<MessageItemProps> = (props) => {
class="text-sm prose prose-slate prose-sm dark:prose-invert max-w-none overflow-x-auto
prose-p:leading-relaxed prose-p:my-2
prose-pre:bg-slate-900 prose-pre:text-slate-100 prose-pre:rounded-lg prose-pre:text-xs prose-pre:overflow-x-auto prose-pre:max-w-full
- prose-code:text-purple-600 dark:prose-code:text-purple-400
- prose-code:bg-purple-50 dark:prose-code:bg-purple-900/30
+ prose-code:text-blue-600 dark:prose-code:text-blue-400
+ prose-code:bg-blue-50 dark:prose-code:bg-blue-900/30
prose-code:px-1.5 prose-code:py-0.5 prose-code:rounded prose-code:break-all
prose-code:before:content-none prose-code:after:content-none
prose-headings:text-slate-900 dark:prose-headings:text-slate-100
@@ -208,8 +208,8 @@ export const MessageItem: Component<MessageItemProps> = (props) => {
class="text-sm prose prose-slate prose-sm dark:prose-invert max-w-none overflow-x-auto
prose-p:leading-relaxed prose-p:my-2
prose-pre:bg-slate-900 prose-pre:text-slate-100 prose-pre:rounded-lg prose-pre:text-xs prose-pre:overflow-x-auto prose-pre:max-w-full
- prose-code:text-purple-600 dark:prose-code:text-purple-400
- prose-code:bg-purple-50 dark:prose-code:bg-purple-900/30
+ prose-code:text-blue-600 dark:prose-code:text-blue-400
+ prose-code:bg-blue-50 dark:prose-code:bg-blue-900/30
prose-code:px-1.5 prose-code:py-0.5 prose-code:rounded prose-code:break-all
prose-code:before:content-none prose-code:after:content-none
prose-headings:text-slate-900 dark:prose-headings:text-slate-100
@@ -222,7 +222,7 @@ export const MessageItem: Component<MessageItemProps> = (props) => {
{/* Streaming text indicator */}
<Show when={isStreamingText()}>
- <span class="inline-block w-2 h-4 ml-0.5 bg-purple-500 dark:bg-purple-400 animate-pulse rounded-sm" />
+ <span class="inline-block w-2 h-4 ml-0.5 bg-blue-500 dark:bg-blue-400 animate-pulse rounded-sm" />
</Show>
<Show when={!props.message.isStreaming && contextTools().length > 0}>
diff --git a/frontend-modern/src/components/AI/Chat/index.tsx b/frontend-modern/src/components/AI/Chat/index.tsx
index 483151d076..35d7332220 100644
--- a/frontend-modern/src/components/AI/Chat/index.tsx
+++ b/frontend-modern/src/components/AI/Chat/index.tsx
@@ -344,15 +344,15 @@ export const AIChat: Component<AIChatProps> = (props) => {
{/* Header - wraps on mobile */}
<div class="flex flex-wrap items-center justify-between gap-2 px-4 py-3 border-b border-slate-200 dark:border-slate-700 bg-slate-50 dark:bg-slate-800/50">
<div class="flex items-center gap-3">
- <div class="p-2 bg-gradient-to-br from-purple-500 to-violet-500 rounded-xl shadow-lg shadow-purple-500/20">
+ <div class="p-2 bg-blue-600 rounded-xl shadow-sm">
<svg class="w-5 h-5 text-white" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.8" d="M9.75 3.104v5.714a2.25 2.25 0 01-.659 1.591L5 14.5M9.75 3.104c-.251.023-.501.05-.75.082m.75-.082a24.301 24.301 0 014.5 0m0 0v5.714c0 .597.237 1.17.659 1.591L19.8 15.3M14.25 3.104c.251.023.501.05.75.082M19.8 15.3l-1.57.393A9.065 9.065 0 0112 15a9.065 9.065 0 00-6.23.693L5 14.5m14.8.8l1.402 1.402c1.232 1.232.65 3.318-1.067 3.611l-2.576.43a18.003 18.003 0 01-5.118 0l-2.576-.43c-1.717-.293-2.299-2.379-1.067-3.611L5 14.5" />
</svg>
</div>
<div>
- <h2 class="text-sm font-semibold text-slate-900 dark:text-slate-100">AI Assistant</h2>
+ <h2 class="text-sm font-semibold text-slate-900 dark:text-slate-100">Pulse Assistant</h2>
<p class="text-[11px] text-slate-500 dark:text-slate-400">
- Powered by Pulse
+ Infrastructure intelligence
</p>
</div>
</div>
@@ -402,7 +402,7 @@ export const AIChat: Component<AIChatProps> = (props) => {
<div class="absolute right-0 top-full mt-1 w-72 max-h-96 bg-white dark:bg-slate-800 rounded-xl shadow-xl border border-slate-200 dark:border-slate-700 z-50 overflow-hidden">
<button
onClick={handleNewConversation}
- class="w-full px-3 py-2.5 text-left text-sm flex items-center gap-2 text-purple-600 dark:text-purple-400 hover:bg-purple-50 dark:hover:bg-purple-900/20 border-b border-slate-200 dark:border-slate-700"
+ class="w-full px-3 py-2.5 text-left text-sm flex items-center gap-2 text-blue-600 dark:text-blue-400 hover:bg-blue-50 dark:hover:bg-blue-900/20 border-b border-slate-200 dark:border-slate-700"
>
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 4v16m8-8H4" />
@@ -419,7 +419,7 @@ export const AIChat: Component<AIChatProps> = (props) => {
<For each={sessions()}>
{(session) => (
<div
- class={`group relative px-3 py-2.5 flex items-start gap-2 hover:bg-slate-50 dark:hover:bg-slate-700/50 cursor-pointer ${chat.sessionId() === session.id ? 'bg-purple-50 dark:bg-purple-900/20' : ''}`}
+ class={`group relative px-3 py-2.5 flex items-start gap-2 hover:bg-slate-50 dark:hover:bg-slate-700/50 cursor-pointer ${chat.sessionId() === session.id ? 'bg-blue-50 dark:bg-blue-900/20' : ''}`}
onClick={() => handleLoadSession(session.id)}
>
<div class="flex-1 min-w-0">
@@ -496,7 +496,7 @@ export const AIChat: Component<AIChatProps> = (props) => {
</Show>
<Show when={currentStatus()?.type === 'tool'}>
<div class="flex items-center justify-center w-4 h-4">
- <svg class="w-3.5 h-3.5 text-purple-500 dark:text-purple-400 animate-spin" fill="none" viewBox="0 0 24 24">
+ <svg class="w-3.5 h-3.5 text-blue-500 dark:text-blue-400 animate-spin" fill="none" viewBox="0 0 24 24">
<circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="3" />
<path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z" />
</svg>
@@ -532,7 +532,7 @@ export const AIChat: Component<AIChatProps> = (props) => {
onKeyDown={handleKeyDown}
placeholder="Ask about your infrastructure..."
rows={2}
- class="flex-1 px-4 py-3 text-sm rounded-xl border border-slate-200 dark:border-slate-700 bg-white dark:bg-slate-800 text-slate-900 dark:text-slate-100 placeholder-slate-400 focus:outline-none focus:ring-2 focus:ring-purple-500 focus:border-transparent resize-none"
+ class="flex-1 px-4 py-3 text-sm rounded-xl border border-slate-200 dark:border-slate-700 bg-white dark:bg-slate-800 text-slate-900 dark:text-slate-100 placeholder-slate-400 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent resize-none"
/>
<div class="flex gap-1.5 self-end">
<Show
@@ -553,7 +553,7 @@ export const AIChat: Component<AIChatProps> = (props) => {
<button
type="submit"
disabled={!input().trim()}
- class="px-4 py-3 bg-gradient-to-r from-purple-600 to-violet-600 hover:from-purple-700 hover:to-violet-700 text-white rounded-xl disabled:opacity-50 disabled:cursor-not-allowed transition-all shadow-lg shadow-purple-500/20 hover:shadow-xl hover:shadow-purple-500/30"
+ class="px-4 py-3 bg-blue-600 hover:bg-blue-700 text-white rounded-xl disabled:opacity-50 disabled:cursor-not-allowed transition-colors shadow-sm"
title="Send"
>
<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
diff --git a/frontend-modern/src/styles/animations.css b/frontend-modern/src/styles/animations.css
index 03b660bbc2..3d6b9392c7 100644
--- a/frontend-modern/src/styles/animations.css
+++ b/frontend-modern/src/styles/animations.css
@@ -212,51 +212,51 @@
}
/* AI Context row highlight - subtle left accent bar */
-/* Using purple-500 for a clean, modern look */
+/* Using blue-500 for consistency with Pulse styling */
.ai-context-row {
- background-color: rgba(147, 51, 234, 0.04);
- box-shadow: inset 3px 0 0 0 rgba(147, 51, 234, 0.6);
+ background-color: rgba(59, 130, 246, 0.04);
+ box-shadow: inset 3px 0 0 0 rgba(59, 130, 246, 0.6);
}
.ai-context-row:hover {
- background-color: rgba(147, 51, 234, 0.08);
+ background-color: rgba(59, 130, 246, 0.08);
}
/* Adjacent rows - keep the left border consistent */
.ai-context-row.ai-context-no-top,
.ai-context-row.ai-context-no-bottom,
.ai-context-row.ai-context-no-top.ai-context-no-bottom {
- background-color: rgba(147, 51, 234, 0.04);
- box-shadow: inset 3px 0 0 0 rgba(147, 51, 234, 0.6);
+ background-color: rgba(59, 130, 246, 0.04);
+ box-shadow: inset 3px 0 0 0 rgba(59, 130, 246, 0.6);
}
.ai-context-row.ai-context-no-top:hover,
.ai-context-row.ai-context-no-bottom:hover,
.ai-context-row.ai-context-no-top.ai-context-no-bottom:hover {
- background-color: rgba(147, 51, 234, 0.08);
+ background-color: rgba(59, 130, 246, 0.08);
}
-/* Dark mode - using purple-400 for better visibility */
+/* Dark mode - using blue-400 for better visibility */
.dark .ai-context-row {
- background-color: rgba(167, 139, 250, 0.06);
- box-shadow: inset 3px 0 0 0 rgba(167, 139, 250, 0.5);
+ background-color: rgba(96, 165, 250, 0.06);
+ box-shadow: inset 3px 0 0 0 rgba(96, 165, 250, 0.5);
}
.dark .ai-context-row:hover {
- background-color: rgba(167, 139, 250, 0.12);
+ background-color: rgba(96, 165, 250, 0.12);
}
.dark .ai-context-row.ai-context-no-top,
.dark .ai-context-row.ai-context-no-bottom,
.dark .ai-context-row.ai-context-no-top.ai-context-no-bottom {
- background-color: rgba(167, 139, 250, 0.06);
- box-shadow: inset 3px 0 0 0 rgba(167, 139, 250, 0.5);
+ background-color: rgba(96, 165, 250, 0.06);
+ box-shadow: inset 3px 0 0 0 rgba(96, 165, 250, 0.5);
}
.dark .ai-context-row.ai-context-no-top:hover,
.dark .ai-context-row.ai-context-no-bottom:hover,
.dark .ai-context-row.ai-context-no-top.ai-context-no-bottom:hover {
- background-color: rgba(167, 139, 250, 0.12);
+ background-color: rgba(96, 165, 250, 0.12);
}