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.

Refine welcome tour step map

rcourtman7b2c37de9484
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
index 242dbf2f5b..653e5a2100 100644
--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md
+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
@@ -1319,8 +1319,11 @@ primary-navigation target being described, and keep route-orientation copy on
the existing welcome flow instead of layering a duplicate in-product banner.
The guided stop map inside that welcome surface is interactive, not decorative:
operators must be able to jump directly to any tour step from the stop list,
-and desktop layouts may widen the panel enough to keep stop labels readable
-without overlapping or collapsing into clipped pills.
+and desktop layouts may widen the panel enough to keep step labels readable
+without overlapping or collapsing into clipped pills. That map should read as
+numbered wayfinding, not placeholder onboarding chrome: concise numeric badges
+plus section titles are preferred over repeated `Stop N` copy or other filler
+labels that add noise without helping orientation.
That state owner now also owns public-demo suppression: the modal must stay
closed until `sessionPresentationPolicyResolved()` is true and must fail closed
when `presentationPolicyIsDemoMode()` resolves true, so the public demo does
diff --git a/frontend-modern/src/components/shared/WhatsNewModal.tsx b/frontend-modern/src/components/shared/WhatsNewModal.tsx
index 6a095137d0..1eea0ab186 100644
--- a/frontend-modern/src/components/shared/WhatsNewModal.tsx
+++ b/frontend-modern/src/components/shared/WhatsNewModal.tsx
@@ -129,11 +129,11 @@ export function WhatsNewModal() {
<div class="space-y-2.5">
<div class="flex items-center gap-3">
<div class="text-[11px] font-semibold uppercase tracking-[0.16em] text-muted">
- Tour Stops
+ In This Tour
</div>
<div class="h-px flex-1 bg-border"></div>
</div>
- <p class="text-xs text-muted">Click any stop to jump there.</p>
+ <p class="text-xs text-muted">Jump ahead or follow the highlighted path.</p>
<div class="grid grid-cols-2 gap-2.5">
<For each={WHATS_NEW_FEATURE_CARDS}>
{(card, index) => (
@@ -141,28 +141,23 @@ export function WhatsNewModal() {
type="button"
onClick={() => state.handleSelectStep(index())}
aria-current={index() === state.stepIndex() ? 'step' : undefined}
- class={`min-h-[3.25rem] rounded-2xl border px-3 py-2.5 text-left transition-colors ${
+ class={`group min-h-[3.35rem] rounded-2xl border px-3.5 py-3 text-left transition-colors ${
index() === state.stepIndex()
- ? 'border-blue-300 bg-blue-50 text-blue-900 shadow-sm dark:border-blue-700 dark:bg-blue-950 dark:text-blue-100'
- : 'border-border bg-surface-hover text-muted hover:border-slate-300 hover:bg-surface dark:hover:border-slate-700'
+ ? 'border-blue-300 bg-gradient-to-br from-blue-50 to-white text-blue-900 shadow-sm dark:border-blue-700 dark:from-blue-950 dark:to-slate-950 dark:text-blue-100'
+ : 'border-border bg-surface-hover text-base-content hover:border-slate-300 hover:bg-surface dark:hover:border-slate-700'
}`}
>
- <div class="flex items-center gap-2.5">
+ <div class="flex items-center gap-3">
<div
- class={`flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-full ${
+ class={`flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-full text-[11px] font-semibold font-mono ${
index() === state.stepIndex()
- ? 'bg-white/80 text-blue-700 dark:bg-slate-950/50 dark:text-blue-200'
+ ? 'bg-white/85 text-blue-700 shadow-sm dark:bg-slate-950/50 dark:text-blue-200'
: 'bg-surface text-muted'
}`}
>
- <WhatsNewFeatureIcon card={card} />
- </div>
- <div class="min-w-0">
- <div class="truncate text-xs font-semibold">{card.title}</div>
- <div class="text-[10px] uppercase tracking-[0.14em] opacity-70">
- Stop {index() + 1}
- </div>
+ {String(index() + 1).padStart(2, '0')}
</div>
+ <div class="min-w-0 flex-1 truncate text-sm font-semibold">{card.title}</div>
</div>
</button>
)}
diff --git a/frontend-modern/src/components/shared/__tests__/WhatsNewModal.test.tsx b/frontend-modern/src/components/shared/__tests__/WhatsNewModal.test.tsx
index 1c48094546..d2c0948c3e 100644
--- a/frontend-modern/src/components/shared/__tests__/WhatsNewModal.test.tsx
+++ b/frontend-modern/src/components/shared/__tests__/WhatsNewModal.test.tsx
@@ -70,6 +70,8 @@ describe('WhatsNewModal', () => {
expect(dialog).toBeInTheDocument();
expect(within(dialog).getByText('Welcome to Pulse v6')).toBeInTheDocument();
expect(within(dialog).getByText('Step 1 of 5')).toBeInTheDocument();
+ expect(within(dialog).getByText('In This Tour')).toBeInTheDocument();
+ expect(within(dialog).queryByText(/Stop 1/i)).not.toBeInTheDocument();
expect(within(dialog).getAllByText('Dashboard')).toHaveLength(2);
});