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.

Give the GitHub star prompt a warmer presentation

rcourtman50864566e044
diff --git a/frontend-modern/browser-verification/aefe1a0d96ff158b.json b/frontend-modern/browser-verification/aefe1a0d96ff158b.json
new file mode 100644
index 0000000000..3c0cb23596
--- /dev/null
+++ b/frontend-modern/browser-verification/aefe1a0d96ff158b.json
@@ -0,0 +1,51 @@
+{
+ "version": 1,
+ "base_sha": "f49cbaec62762516a54c8a71d6c67dc112151315",
+ "verified_at": "2026-10-14T09:24:51.433Z",
+ "result": "passed",
+ "changed_paths": [
+ "frontend-modern/src/components/GitHubStarBanner.tsx"
+ ],
+ "content_sha256": {
+ "frontend-modern/src/components/GitHubStarBanner.tsx": "e8c7b043bacdadcdf9d5353f0f71d4c692efa381c01804a15ec0957c5d266e99"
+ },
+ "routes": [
+ "/proxmox/overview"
+ ],
+ "viewports": [
+ {
+ "width": 1440,
+ "height": 900
+ },
+ {
+ "width": 800,
+ "height": 900
+ },
+ {
+ "width": 390,
+ "height": 844
+ },
+ {
+ "width": 320,
+ "height": 740
+ }
+ ],
+ "states": [
+ "First return on a later connected day, light and dark themes",
+ "First connected day and same-day reload without a prompt",
+ "Previously shown and permanently dismissed prompts",
+ "Competing release notice owns the session",
+ "Scripted empty, loading and unavailable infrastructure states",
+ "Command palette open and closed after a visible prompt"
+ ],
+ "interactions": [
+ "Inspect actual card pixels, copy, colour, wrapping, focus outlines and navigation clearance at every width in both themes",
+ "Hover and focus both actions, traverse with Tab and verify 44px phone touch targets",
+ "Outside click and Escape retain the non-modal prompt",
+ "Activate permanent dismissal with the keyboard and reload",
+ "Activate the star action using desktop keyboard and phone touch, verify the exact repository URL in a tab without an opener, then reload and confirm permanent dismissal",
+ "Open the command palette with Control+K from a persistent shell control, inspect the settled panel on desktop and phone, close with Escape and verify focus return while the prompt remains suppressed"
+ ],
+ "command": "Playwright Chromium against the production frontend preview on pulse-dev, proxying a task-owned mock backend compiled from the matching source.",
+ "notes": "Twenty source-bound browser scenarios passed. The settled command-palette pixels and dismissal were separately repeated at 1440px and 390px. Default prompt pixels were inspected at all four widths in light and dark themes. Transport and engagement fixtures do not change backend settings. The frontend content digest matches the final working tree."
+}
diff --git a/frontend-modern/src/components/GitHubStarBanner.tsx b/frontend-modern/src/components/GitHubStarBanner.tsx
index c614910940..a807d9054a 100644
--- a/frontend-modern/src/components/GitHubStarBanner.tsx
+++ b/frontend-modern/src/components/GitHubStarBanner.tsx
@@ -107,52 +107,54 @@ export function GitHubStarBanner() {
return (
<Show when={showPrompt()}>
<section
- class="fixed left-4 right-20 bottom-(--pulse-mobile-nav-height) mb-4 z-30 max-w-sm overflow-hidden rounded-lg border border-border bg-surface text-base-content shadow-lg md:right-auto"
+ class="fixed left-4 right-20 bottom-(--pulse-mobile-nav-height) mb-4 z-30 max-w-sm overflow-hidden rounded-xl border border-blue-200 bg-surface text-base-content shadow-xl dark:border-blue-800 md:right-auto"
aria-labelledby="github-star-title"
aria-live="polite"
>
- <div class="flex items-start gap-3 p-3">
- <div
- class="mt-0.5 flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-surface-hover"
- aria-hidden="true"
- >
- <GithubIcon class="h-4 w-4 text-base-content" />
- </div>
-
- <div class="min-w-0 flex-1">
- <div class="flex items-start gap-2">
- <div class="min-w-0 flex-1">
- <h2 id="github-star-title" class="text-sm font-semibold text-base-content">
- Finding Pulse useful?
- </h2>
- <p class="mt-1 text-xs leading-5 text-muted">
- Starring the project on GitHub helps others discover it.
- </p>
+ <div
+ class="h-1 bg-linear-to-r from-blue-500 via-violet-500 to-amber-400"
+ aria-hidden="true"
+ />
+ <div class="bg-linear-to-br from-blue-50 via-surface to-surface p-4 dark:from-blue-950/60">
+ <div class="flex items-start justify-between gap-3">
+ <div
+ class="relative mb-4 flex h-12 w-12 shrink-0 items-center justify-center rounded-xl bg-blue-100 text-blue-700 dark:bg-blue-900/60 dark:text-blue-200"
+ aria-hidden="true"
+ >
+ <GithubIcon class="h-6 w-6" />
+ <div class="absolute -right-2 -top-1 flex h-6 w-6 items-center justify-center rounded-full bg-amber-300 text-amber-900 shadow-xs">
+ <StarIcon class="h-3.5 w-3.5 fill-current" />
</div>
- <ActionIconButton
- onClick={handleDismiss}
- label="Close and don't show again"
- title="Don't show again"
- tone="muted"
- size="sm"
- type="button"
- >
- <XIcon class="h-4 w-4" aria-hidden="true" />
- </ActionIconButton>
- </div>
- <div class="mt-2 flex flex-wrap gap-2">
- <Button
- onClick={handleStarClick}
- variant="primary"
- size="mdCompact"
- class="gap-2"
- type="button"
- >
- <StarIcon class="h-4 w-4" aria-hidden="true" />
- Star on GitHub
- </Button>
</div>
+ <ActionIconButton
+ onClick={handleDismiss}
+ label="Close and don't show again"
+ title="Don't show again"
+ tone="muted"
+ size="sm"
+ class="min-h-11 min-w-11 sm:min-h-0 sm:min-w-0"
+ type="button"
+ >
+ <XIcon class="h-4 w-4" aria-hidden="true" />
+ </ActionIconButton>
</div>
+ <h2 id="github-star-title" class="text-lg font-semibold text-base-content">
+ Enjoying Pulse?
+ </h2>
+ <p class="mt-2 text-sm leading-6 text-muted">
+ If Pulse is useful to you, a GitHub star helps others discover it and shows your support
+ for the project.
+ </p>
+ <Button
+ onClick={handleStarClick}
+ variant="primary"
+ size="md"
+ class="mt-4 w-full gap-2"
+ type="button"
+ >
+ <StarIcon class="h-4 w-4" aria-hidden="true" />
+ Star on GitHub
+ </Button>
</div>
</section>
</Show>
diff --git a/frontend-modern/src/components/__tests__/GitHubStarBanner.test.tsx b/frontend-modern/src/components/__tests__/GitHubStarBanner.test.tsx
index cca6f3f4ab..49352309df 100644
--- a/frontend-modern/src/components/__tests__/GitHubStarBanner.test.tsx
+++ b/frontend-modern/src/components/__tests__/GitHubStarBanner.test.tsx
@@ -65,7 +65,7 @@ describe('GitHubStarBanner', () => {
it('stays quiet without connected infrastructure', async () => {
await renderBanner();
- expect(screen.queryByText('Finding Pulse useful?')).not.toBeInTheDocument();
+ expect(screen.queryByText('Enjoying Pulse?')).not.toBeInTheDocument();
expect(localStorage.getItem(ACTIVE_DAYS_KEY)).toBe('0');
});
@@ -75,7 +75,7 @@ describe('GitHubStarBanner', () => {
await renderBanner();
- expect(screen.queryByText('Finding Pulse useful?')).not.toBeInTheDocument();
+ expect(screen.queryByText('Enjoying Pulse?')).not.toBeInTheDocument();
expect(localStorage.getItem(ACTIVE_DAYS_KEY)).toBe('0');
});
@@ -86,7 +86,7 @@ describe('GitHubStarBanner', () => {
await waitFor(() => expect(localStorage.getItem(ACTIVE_DAYS_KEY)).toBe('1'));
expect(localStorage.getItem(LAST_ACTIVE_DATE_KEY)).toBe('2026-03-14');
- expect(screen.queryByText('Finding Pulse useful?')).not.toBeInTheDocument();
+ expect(screen.queryByText('Enjoying Pulse?')).not.toBeInTheDocument();
});
it('does not count repeated sessions on the same day', async () => {
@@ -97,7 +97,7 @@ describe('GitHubStarBanner', () => {
await renderBanner();
expect(localStorage.getItem(ACTIVE_DAYS_KEY)).toBe('1');
- expect(screen.queryByText('Finding Pulse useful?')).not.toBeInTheDocument();
+ expect(screen.queryByText('Enjoying Pulse?')).not.toBeInTheDocument();
});
it('shows one compact prompt on the first return day with connected infrastructure', async () => {
@@ -107,10 +107,12 @@ describe('GitHubStarBanner', () => {
await renderBanner();
await waitFor(() => {
- expect(screen.getByText('Finding Pulse useful?')).toBeInTheDocument();
+ expect(screen.getByText('Enjoying Pulse?')).toBeInTheDocument();
});
expect(
- screen.getByText('Starring the project on GitHub helps others discover it.'),
+ screen.getByText(
+ 'If Pulse is useful to you, a GitHub star helps others discover it and shows your support for the project.',
+ ),
).toBeInTheDocument();
expect(screen.getByText('Star on GitHub')).toBeInTheDocument();
expect(screen.queryByText('Maybe later')).not.toBeInTheDocument();
@@ -126,7 +128,7 @@ describe('GitHubStarBanner', () => {
await renderBanner();
- expect(screen.queryByText('Finding Pulse useful?')).not.toBeInTheDocument();
+ expect(screen.queryByText('Enjoying Pulse?')).not.toBeInTheDocument();
});
it('stays quiet when another low-priority notice owns the session', async () => {
@@ -137,7 +139,7 @@ describe('GitHubStarBanner', () => {
await renderBanner();
await waitFor(() => expect(localStorage.getItem(ACTIVE_DAYS_KEY)).toBe('2'));
- expect(screen.queryByText('Finding Pulse useful?')).not.toBeInTheDocument();
+ expect(screen.queryByText('Enjoying Pulse?')).not.toBeInTheDocument();
expect(localStorage.getItem(PROMPT_SHOWN_KEY)).not.toBe('true');
});
@@ -146,12 +148,12 @@ describe('GitHubStarBanner', () => {
setResourceCount(3);
await renderBanner();
- await waitFor(() => expect(screen.getByText('Finding Pulse useful?')).toBeInTheDocument());
+ await waitFor(() => expect(screen.getByText('Enjoying Pulse?')).toBeInTheDocument());
fireEvent.click(screen.getByLabelText("Close and don't show again"));
await waitFor(() => {
- expect(screen.queryByText('Finding Pulse useful?')).not.toBeInTheDocument();
+ expect(screen.queryByText('Enjoying Pulse?')).not.toBeInTheDocument();
});
expect(localStorage.getItem(DISMISSED_KEY)).toBe('true');
@@ -160,7 +162,7 @@ describe('GitHubStarBanner', () => {
vi.setSystemTime(new Date('2026-03-15T12:00:00Z'));
await renderBanner();
- expect(screen.queryByText('Finding Pulse useful?')).not.toBeInTheDocument();
+ expect(screen.queryByText('Enjoying Pulse?')).not.toBeInTheDocument();
});
it('yields a visible prompt to a blocking dialog for the rest of the session', async () => {
@@ -183,14 +185,14 @@ describe('GitHubStarBanner', () => {
);
});
- await waitFor(() => expect(screen.getByText('Finding Pulse useful?')).toBeInTheDocument());
+ await waitFor(() => expect(screen.getByText('Enjoying Pulse?')).toBeInTheDocument());
openDialog();
await waitFor(() => expect(screen.getByRole('dialog')).toBeInTheDocument());
- expect(screen.queryByText('Finding Pulse useful?')).not.toBeInTheDocument();
+ expect(screen.queryByText('Enjoying Pulse?')).not.toBeInTheDocument();
fireEvent.keyDown(document, { key: 'Escape' });
await waitFor(() => expect(screen.queryByRole('dialog')).not.toBeInTheDocument());
- expect(screen.queryByText('Finding Pulse useful?')).not.toBeInTheDocument();
+ expect(screen.queryByText('Enjoying Pulse?')).not.toBeInTheDocument();
});
it('opens GitHub and permanently dismisses on the star action', async () => {