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.

Polish Pulse brand refresh motion

rcourtmane4b416f0e316
diff --git a/docs/release-control/v6/internal/subsystems/registry.json b/docs/release-control/v6/internal/subsystems/registry.json
index 484b4fccb5..fbe55553c7 100644
--- a/docs/release-control/v6/internal/subsystems/registry.json
+++ b/docs/release-control/v6/internal/subsystems/registry.json
@@ -2840,6 +2840,7 @@
"frontend-modern/src/features/dashboardOverview/ProblemResourcesTable.tsx",
"frontend-modern/src/features/dashboardOverview/TrendCharts.tsx",
"frontend-modern/src/hooks/createNonSuspendingQuery.ts",
+ "frontend-modern/src/index.css",
"frontend-modern/src/pages/Operations.tsx",
"frontend-modern/src/stores/aiChat.ts",
"frontend-modern/src/utils/aiSettingsPresentation.ts",
@@ -2876,6 +2877,20 @@
],
"require_explicit_path_policy_coverage": true,
"path_policies": [
+ {
+ "id": "global-app-shell-css",
+ "label": "global app-shell css proof",
+ "match_prefixes": [],
+ "match_files": [
+ "frontend-modern/src/index.css"
+ ],
+ "allow_same_subsystem_tests": false,
+ "test_prefixes": [],
+ "exact_files": [
+ "frontend-modern/src/__tests__/App.architecture.test.ts",
+ "frontend-modern/src/__tests__/AppLayout.test.tsx"
+ ]
+ },
{
"id": "page-controls-and-filters",
"label": "page controls and filter proof",
diff --git a/frontend-modern/src/AppLayout.tsx b/frontend-modern/src/AppLayout.tsx
index 34cbe91c8b..8784a501af 100644
--- a/frontend-modern/src/AppLayout.tsx
+++ b/frontend-modern/src/AppLayout.tsx
@@ -138,6 +138,9 @@ export function AppLayout(props: AppLayoutProps) {
const navigate = useNavigate();
const location = useLocation();
const kioskMode = useKioskMode();
+ const brandMotionActive = createMemo(
+ () => props.connectionStatus().kind === 'connected' && props.dataUpdated(),
+ );
const [headerVisible, setHeaderVisible] = createSignal(true);
let headerEl: HTMLDivElement | undefined;
@@ -463,13 +466,16 @@ export function AppLayout(props: AppLayoutProps) {
>
<Show when={!kioskMode()}>
<div class="flex items-center gap-2 sm:flex-initial sm:gap-2 sm:col-start-2 sm:col-end-3 sm:justify-self-center">
- <div class="flex items-center gap-2">
+ <div
+ class={`pulse-brand-lockup flex items-center gap-2 ${brandMotionActive() ? 'animate-pulse-brand' : ''}`}
+ data-testid="pulse-brand-lockup"
+ >
<svg
width="20"
height="20"
viewBox="0 0 256 256"
xmlns="http://www.w3.org/2000/svg"
- class={`pulse-logo ${props.connectionStatus().kind === 'connected' && props.dataUpdated() ? 'animate-pulse-logo' : ''}`}
+ class="pulse-brand-logo"
>
<title>Pulse Logo</title>
<circle
@@ -491,7 +497,7 @@ export function AppLayout(props: AppLayoutProps) {
r="26"
/>
</svg>
- <span class="text-lg font-medium text-base-content">Pulse</span>
+ <span class="pulse-brand-wordmark text-lg font-medium text-base-content">Pulse</span>
<Show when={props.versionInfo()?.channel === 'rc'}>
<span class="text-xs px-1.5 py-0.5 bg-orange-500 text-white rounded font-bold">
Preview
diff --git a/frontend-modern/src/__tests__/App.architecture.test.ts b/frontend-modern/src/__tests__/App.architecture.test.ts
index 894b89affd..35c52b01f9 100644
--- a/frontend-modern/src/__tests__/App.architecture.test.ts
+++ b/frontend-modern/src/__tests__/App.architecture.test.ts
@@ -85,6 +85,10 @@ describe('App architecture', () => {
expect(appLayoutSource).toContain(
"props.connectionStatus().kind === 'connected' && props.dataUpdated()",
);
+ expect(appLayoutSource).toContain('const brandMotionActive = createMemo(');
+ expect(appLayoutSource).toContain('pulse-brand-lockup');
+ expect(appLayoutSource).toContain('animate-pulse-brand');
+ expect(appLayoutSource).not.toContain('animate-pulse-logo');
expect(appLayoutSource).toContain("props.versionInfo()?.channel === 'rc'");
expect(appLayoutSource).toContain('Preview');
expect(appLayoutSource).not.toContain(
diff --git a/frontend-modern/src/__tests__/AppLayout.test.tsx b/frontend-modern/src/__tests__/AppLayout.test.tsx
index b803742070..dac08addd3 100644
--- a/frontend-modern/src/__tests__/AppLayout.test.tsx
+++ b/frontend-modern/src/__tests__/AppLayout.test.tsx
@@ -15,7 +15,7 @@ describe('AppLayout navigation icons', () => {
cleanup();
});
- const renderLayout = () =>
+ const renderLayout = (options: { dataUpdated?: boolean } = {}) =>
render(() => (
<Router>
<Route
@@ -28,7 +28,7 @@ describe('AppLayout navigation icons', () => {
detail: 'Backend and live data stream are connected.',
tone: 'healthy',
})}
- dataUpdated={() => false}
+ dataUpdated={() => options.dataUpdated ?? false}
lastUpdateText={() => ''}
versionInfo={() =>
({
@@ -83,4 +83,14 @@ describe('AppLayout navigation icons', () => {
expect(container).toHaveTextContent('Dashboard body');
});
+
+ it('animates the full brand lockup when live data refreshes', () => {
+ const { container } = renderLayout({ dataUpdated: true });
+
+ const brandLockup = screen.getByTestId('pulse-brand-lockup');
+ expect(brandLockup).toHaveClass('animate-pulse-brand');
+ expect(brandLockup.querySelector('.pulse-brand-logo')).toBeTruthy();
+ expect(brandLockup.querySelector('.pulse-brand-wordmark')).toHaveTextContent('Pulse');
+ expect(container.querySelector('.animate-pulse-logo')).toBeNull();
+ });
});
diff --git a/frontend-modern/src/index.css b/frontend-modern/src/index.css
index f2d2b9873b..83d7092238 100644
--- a/frontend-modern/src/index.css
+++ b/frontend-modern/src/index.css
@@ -76,6 +76,9 @@
--color-border-base: theme('colors.slate.200');
--color-text-base: theme('colors.slate.900');
--color-text-muted: theme('colors.slate.500');
+ --color-brand-primary: theme('colors.blue.600');
+ --color-brand-primary-strong: theme('colors.blue.700');
+ --color-brand-primary-muted: rgba(37, 99, 235, 0.2);
--color-summary-row-bg: rgba(14, 165, 233, 0.05);
--color-summary-row-bg-hover: rgba(14, 165, 233, 0.08);
--color-summary-row-border: rgba(14, 165, 233, 0.16);
@@ -98,6 +101,9 @@
--color-border-base: theme('colors.slate.700');
--color-text-base: theme('colors.slate.100');
--color-text-muted: theme('colors.slate.400');
+ --color-brand-primary: theme('colors.blue.500');
+ --color-brand-primary-strong: theme('colors.blue.300');
+ --color-brand-primary-muted: rgba(96, 165, 250, 0.26);
--color-summary-row-bg: rgba(56, 189, 248, 0.08);
--color-summary-row-bg-hover: rgba(56, 189, 248, 0.12);
--color-summary-row-border: rgba(56, 189, 248, 0.18);
@@ -398,45 +404,124 @@ body,
border-color 150ms ease-in-out;
}
-/* Pulse logo animation - subtle ripple effect */
-@keyframes pulse-logo {
+/* Pulse brand motion - a brief live-data acknowledgement, not decorative looping. */
+@keyframes pulse-brand-lockup {
0% {
- transform: scale(1);
+ transform: translate3d(0, 0, 0) scale(1);
}
- 25% {
- transform: scale(1.05);
+ 18% {
+ transform: translate3d(0, -0.5px, 0) scale(1.012);
}
- 50% {
+ 48%,
+ 100% {
+ transform: translate3d(0, 0, 0) scale(1);
+ }
+}
+
+@keyframes pulse-brand-logo {
+ 0%,
+ 100% {
+ filter: drop-shadow(0 0 0 transparent);
transform: scale(1);
}
+
+ 28% {
+ filter: drop-shadow(0 1px 5px var(--color-brand-primary-muted));
+ transform: scale(1.035);
+ }
}
-@keyframes pulse-ring {
+@keyframes pulse-brand-ring {
0%,
100% {
opacity: 0.92;
transform: scale(1);
+ stroke-width: 14;
}
- 50% {
- opacity: 0.6;
- transform: scale(1.1);
+ 36% {
+ opacity: 0.64;
+ transform: scale(1.16);
+ stroke-width: 10;
}
}
-.animate-pulse-logo {
- animation: pulse-logo 0.8s cubic-bezier(0.4, 0, 0.6, 1);
- transform-origin: center;
+@keyframes pulse-brand-center {
+ 0%,
+ 100% {
+ transform: scale(1);
+ }
+
+ 28% {
+ transform: scale(0.88);
+ }
+
+ 58% {
+ transform: scale(1.06);
+ }
}
-.animate-pulse-logo .pulse-ring {
- animation: pulse-ring 0.8s cubic-bezier(0.4, 0, 0.6, 1);
+@keyframes pulse-brand-wordmark {
+ 0%,
+ 100% {
+ color: var(--color-text-base);
+ text-shadow: 0 0 0 transparent;
+ }
+
+ 24% {
+ color: var(--color-brand-primary-strong);
+ text-shadow: 0 0 9px var(--color-brand-primary-muted);
+ }
+}
+
+.pulse-brand-lockup {
+ transform-origin: left center;
+}
+
+.pulse-brand-logo,
+.pulse-brand-logo .pulse-ring,
+.pulse-brand-logo .pulse-center {
transform-origin: center;
transform-box: fill-box;
}
+.animate-pulse-brand {
+ animation: pulse-brand-lockup 0.9s cubic-bezier(0.16, 1, 0.3, 1);
+ will-change: transform;
+}
+
+.animate-pulse-brand .pulse-brand-logo {
+ animation: pulse-brand-logo 0.9s cubic-bezier(0.16, 1, 0.3, 1);
+ will-change: filter, transform;
+}
+
+.animate-pulse-brand .pulse-ring {
+ animation: pulse-brand-ring 0.9s cubic-bezier(0.16, 1, 0.3, 1);
+ will-change: opacity, stroke-width, transform;
+}
+
+.animate-pulse-brand .pulse-center {
+ animation: pulse-brand-center 0.9s cubic-bezier(0.16, 1, 0.3, 1);
+ will-change: transform;
+}
+
+.animate-pulse-brand .pulse-brand-wordmark {
+ animation: pulse-brand-wordmark 0.9s cubic-bezier(0.16, 1, 0.3, 1);
+ will-change: color, text-shadow;
+}
+
+@media (prefers-reduced-motion: reduce) {
+ .animate-pulse-brand,
+ .animate-pulse-brand .pulse-brand-logo,
+ .animate-pulse-brand .pulse-ring,
+ .animate-pulse-brand .pulse-center,
+ .animate-pulse-brand .pulse-brand-wordmark {
+ animation: none;
+ }
+}
+
/* Stable table layout */
.table-fixed {
table-layout: fixed;