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 setup wizard onboarding flow

rcourtman0f4ad7d0242c
diff --git a/frontend-modern/src/components/SetupWizard/SetupCompletionPanel.tsx b/frontend-modern/src/components/SetupWizard/SetupCompletionPanel.tsx
index bbee09dea5..e7483a0e74 100644
--- a/frontend-modern/src/components/SetupWizard/SetupCompletionPanel.tsx
+++ b/frontend-modern/src/components/SetupWizard/SetupCompletionPanel.tsx
@@ -172,7 +172,7 @@ Keep these credentials secure!
const completionViewModel = createMemo(() => buildSetupCompletionViewModel(connectedSystems()));
return (
- <div class="max-w-2xl mx-auto bg-surface border border-border overflow-hidden animate-fade-in relative rounded-md p-6 sm:p-8 text-center text-base-content">
+ <div class="max-w-2xl mx-auto bg-surface border border-border overflow-hidden relative rounded-md p-6 sm:p-8 text-center text-base-content">
<div class="relative z-10">
<div class="mb-8">
<div class="inline-flex items-center justify-center w-16 h-16 rounded-full bg-emerald-100 dark:bg-emerald-900 text-emerald-600 dark:text-emerald-400 mb-6 border border-emerald-200 dark:border-emerald-800">
@@ -378,15 +378,6 @@ Keep these credentials secure!
</div>
</div>
- <div class="bg-surface-hover dark:bg-black border border-border rounded-md p-3">
- <div class="text-[11px] font-medium text-muted mb-1 uppercase tracking-wider">
- Infrastructure
- </div>
- <code class="text-base-content font-mono text-xs break-all">
- {ADD_INFRASTRUCTURE_PATH}
- </code>
- </div>
-
<button
onClick={downloadCredentials}
class="w-full mt-2 py-2.5 text-sm font-medium text-blue-600 dark:text-blue-400 hover:text-blue-700 dark:hover:text-blue-300 flex items-center justify-center gap-1.5 bg-blue-50 dark:bg-blue-900 hover:bg-blue-100 dark:hover:bg-blue-900 rounded-md transition-colors border border-blue-100 dark:border-blue-900"
@@ -472,16 +463,17 @@ Keep these credentials secure!
<div class="text-[11px] font-medium uppercase tracking-wider text-muted">
Source choices
</div>
- <div class="mt-2 grid gap-2 sm:grid-cols-3">
+ <ul class="mt-2 space-y-1.5 text-left">
<For each={SOURCE_STRATEGY_OPTIONS}>
{(option) => (
- <div class="rounded-md border border-border bg-surface px-3 py-2.5">
- <div class="text-xs font-semibold text-base-content">{option.title}</div>
- <p class="mt-1 text-[11px] leading-4 text-muted">{option.description}</p>
- </div>
+ <li class="text-xs leading-snug">
+ <span class="font-semibold text-base-content">{option.title}</span>
+ <span class="text-muted">{' — '}</span>
+ <span class="text-muted">{option.description}</span>
+ </li>
)}
</For>
- </div>
+ </ul>
</div>
</div>
</div>
diff --git a/frontend-modern/src/components/SetupWizard/steps/SecurityStep.tsx b/frontend-modern/src/components/SetupWizard/steps/SecurityStep.tsx
index 65865b8e3c..c1fe299c03 100644
--- a/frontend-modern/src/components/SetupWizard/steps/SecurityStep.tsx
+++ b/frontend-modern/src/components/SetupWizard/steps/SecurityStep.tsx
@@ -21,6 +21,7 @@ export const SecurityStep: Component<SecurityStepProps> = (props) => {
const [useCustomPassword, setUseCustomPassword] = createSignal(false);
const [password, setPassword] = createSignal('');
const [confirmPassword, setConfirmPassword] = createSignal('');
+ const [showPassword, setShowPassword] = createSignal(false);
const [isSettingUp, setIsSettingUp] = createSignal(false);
const generatePassword = () => {
@@ -114,16 +115,16 @@ export const SecurityStep: Component<SecurityStepProps> = (props) => {
};
return (
- <div class="max-w-lg mx-auto bg-surface border border-border overflow-hidden animate-fade-in relative rounded-md">
- {' '}
+ <div class="max-w-lg mx-auto bg-surface border border-border overflow-hidden relative rounded-md">
<div class="p-8 border-b border-border relative z-10 text-center">
- <h2 class="text-3xl font-bold tracking-tight text-base-content">Secure Pulse</h2>
- <p class="text-slate-500 dark:text-blue-200 mt-2 font-light">
- Create your root administrator account, then choose the first infrastructure source.
+ <h2 class="text-2xl font-bold tracking-tight text-base-content">
+ Create your admin account
+ </h2>
+ <p class="text-sm text-muted mt-2">
+ The next step is to choose the first infrastructure source.
</p>
</div>
<div class="p-8 space-y-6 relative z-10">
- {/* Username */}
<div>
<label class="block text-sm font-medium text-base-content mb-2">Username</label>
<input
@@ -135,7 +136,6 @@ export const SecurityStep: Component<SecurityStepProps> = (props) => {
/>
</div>
- {/* Password choice */}
<div>
<label class="block text-sm font-medium text-base-content mb-3">Password</label>
<div class="grid grid-cols-1 sm:grid-cols-2 gap-3 mb-4">
@@ -148,7 +148,7 @@ export const SecurityStep: Component<SecurityStepProps> = (props) => {
: 'bg-surface border-border text-muted hover:bg-surface-hover'
}`}
>
- Generate Secure
+ Auto-generate
</button>
<button
type="button"
@@ -159,44 +159,55 @@ export const SecurityStep: Component<SecurityStepProps> = (props) => {
: 'bg-surface border-border text-muted hover:bg-surface-hover'
}`}
>
- Custom Password
+ Custom password
</button>
</div>
<Show when={useCustomPassword()}>
- <div class="space-y-4 animate-fade-in">
+ <div class="space-y-2">
+ <div class="relative">
+ <input
+ type={showPassword() ? 'text' : 'password'}
+ value={password()}
+ onInput={(e) => setPassword(e.currentTarget.value)}
+ class="w-full px-5 py-3.5 pr-20 bg-surface border border-border rounded-md text-base-content placeholder-slate-400 focus:outline-none focus:ring-0 focus:border-blue-500 transition-colors font-mono"
+ placeholder="Password (min 12 characters)"
+ />
+ <button
+ type="button"
+ onClick={() => setShowPassword(!showPassword())}
+ class="absolute right-3 top-1/2 -translate-y-1/2 text-xs font-medium text-muted hover:text-base-content transition-colors px-2 py-1"
+ >
+ {showPassword() ? 'Hide' : 'Show'}
+ </button>
+ </div>
<input
- type="password"
- value={password()}
- onInput={(e) => setPassword(e.currentTarget.value)}
- class="w-full px-5 py-3.5 bg-surface border border-border rounded-md text-base-content placeholder-slate-400 focus:outline-none focus:ring-0 focus:border-blue-500 transition-colors font-mono"
- placeholder="Password"
- />
- <input
- type="password"
+ type={showPassword() ? 'text' : 'password'}
value={confirmPassword()}
onInput={(e) => setConfirmPassword(e.currentTarget.value)}
class="w-full px-5 py-3.5 bg-surface border border-border rounded-md text-base-content placeholder-slate-400 focus:outline-none focus:ring-0 focus:border-blue-500 transition-colors font-mono"
placeholder="Confirm password"
/>
+ <p class="text-xs text-muted">Minimum 12 characters.</p>
</div>
</Show>
<Show when={!useCustomPassword()}>
- <div class="bg-blue-50 dark:bg-blue-950/40 border border-blue-200 dark:border-blue-900 rounded-md p-4 animate-fade-in">
- <p class="text-sm text-blue-800 dark:text-blue-200 font-medium">
- A secure 20-character password will be generated and shown after setup.
- </p>
- </div>
+ <p class="text-sm text-muted">
+ A secure 20-character password will be generated and shown on the next screen.
+ </p>
</Show>
</div>
- {/* Info */}
- <div class="bg-base rounded-md p-4 border border-border">
- <p class="text-sm text-muted">
- This creates your admin account and an API token for automation. Credentials are
- displayed once - save them securely.
- </p>
+ <div class="bg-base rounded-md p-4 border border-border text-left">
+ <div class="text-[11px] font-semibold uppercase tracking-wide text-muted mb-2">
+ On the next screen
+ </div>
+ <ul class="text-sm text-muted space-y-1">
+ <li>• Your username and password</li>
+ <li>• An admin API token for automation</li>
+ </ul>
+ <p class="mt-2 text-xs text-muted">Save them before continuing, they are shown once.</p>
</div>
</div>
{/* Actions */}
diff --git a/frontend-modern/src/components/SetupWizard/steps/WelcomeStep.tsx b/frontend-modern/src/components/SetupWizard/steps/WelcomeStep.tsx
index bb1974c090..a57497d4a5 100644
--- a/frontend-modern/src/components/SetupWizard/steps/WelcomeStep.tsx
+++ b/frontend-modern/src/components/SetupWizard/steps/WelcomeStep.tsx
@@ -160,106 +160,62 @@ export const WelcomeStep: Component<WelcomeStepProps> = (props) => {
return (
<div class="text-center relative">
- {/* Logo */}
- <div class="mb-10 relative z-10">
+ <div class="mb-8 relative z-10">
<img
src="/logo.svg"
alt="Pulse Logo"
- class="w-24 h-24 rounded-md mb-8 mx-auto dark:shadow-none"
+ class="w-20 h-20 rounded-md mb-6 mx-auto dark:shadow-none"
/>
- <h1 class="text-4xl sm:text-5xl font-bold tracking-tight text-base-content mb-4 animate-fade-in delay-100">
+ <h1 class="text-3xl sm:text-4xl font-bold tracking-tight text-base-content mb-3">
Welcome to Pulse
</h1>
- <p class="text-xl dark:text-blue-200 font-light animate-fade-in delay-200 max-w-md mx-auto">
- Unified infrastructure intelligence
+ <p class="text-base text-muted max-w-xl mx-auto">
+ Three steps:{' '}
+ <span class="text-base-content font-medium">Unlock this Pulse server</span>,{' '}
+ <span class="text-base-content font-medium">Create the admin account</span>, then{' '}
+ <span class="text-base-content font-medium">Choose the first source</span>.
</p>
- <p class="mt-4 text-sm text-muted max-w-xl mx-auto animate-fade-in delay-300">
- You are about to do three things: unlock setup on this Pulse server, create your admin
- account, and choose the first infrastructure source Pulse should monitor.
+ <p class="text-sm text-muted max-w-xl mx-auto mt-2">
+ <span>Connect a platform API, install Pulse Agent, or use both for full coverage.</span>
</p>
</div>
- <div class="mb-8 grid gap-3 text-left sm:grid-cols-3">
- <div class="rounded-md border border-border bg-surface px-4 py-3">
- <div class="text-[11px] font-semibold uppercase tracking-wide text-blue-700 dark:text-blue-300">
- Step 1
- </div>
- <div class="mt-1 text-sm font-semibold text-base-content">Unlock this Pulse server</div>
- <p class="mt-1 text-xs text-muted">
- Read the one-time bootstrap token from the system where Pulse is installed.
- </p>
- </div>
- <div class="rounded-md border border-border bg-surface px-4 py-3">
- <div class="text-[11px] font-semibold uppercase tracking-wide text-blue-700 dark:text-blue-300">
- Step 2
- </div>
- <div class="mt-1 text-sm font-semibold text-base-content">Create the admin account</div>
- <p class="mt-1 text-xs text-muted">
- Set the first login and let Pulse generate the credentials you need to save.
- </p>
- </div>
- <div class="rounded-md border border-border bg-surface px-4 py-3">
- <div class="text-[11px] font-semibold uppercase tracking-wide text-blue-700 dark:text-blue-300">
- Step 3
- </div>
- <div class="mt-1 text-sm font-semibold text-base-content">Choose the first source</div>
- <p class="mt-1 text-xs text-muted">
- Connect a platform API, install Pulse Agent, or use both for full coverage.
- </p>
- </div>
- </div>
-
- {/* Bootstrap token unlock */}
<Show when={!props.isUnlocked}>
- <div class="p-8 max-w-lg mx-auto bg-surface border border-border rounded-md text-left animate-slide-up delay-300 relative group">
- <div class="relative z-10">
- <h3 class="text-xl font-semibold text-base-content mb-2 tracking-tight">
- Unlock Setup
- </h3>
- <p class="text-sm text-muted mb-6">
- Run the following command on the Pulse server to retrieve the one-time bootstrap token
- that unlocks this wizard. Do not paste the raw `.bootstrap_token` file contents
- directly.
- </p>
+ <div class="p-6 sm:p-8 max-w-2xl mx-auto bg-surface border border-border rounded-md text-left">
+ <h3 class="text-lg font-semibold text-base-content mb-2 tracking-tight">Unlock setup</h3>
+ <p class="text-sm text-muted mb-5">{deploymentHint()}</p>
- <div class="mb-4 rounded-md border border-blue-200 bg-blue-50 px-4 py-3 dark:border-blue-800 dark:bg-blue-950/40">
- <div class="text-[11px] font-semibold uppercase tracking-wide text-blue-700 dark:text-blue-300">
- Where to run it
- </div>
- <div class="mt-1 flex items-center gap-2">
- <span class="inline-flex items-center rounded-full bg-blue-100 px-2 py-0.5 text-[11px] font-semibold text-blue-700 dark:bg-blue-900 dark:text-blue-200">
- {deploymentLabel()}
- </span>
+ <div class="mb-5">
+ <div class="bg-base rounded-md p-4 font-mono text-sm text-emerald-400 border border-border-subtle flex items-center justify-between">
+ <div class="flex items-center space-x-3 overflow-x-auto scrollbar-hide">
+ <Terminal class="w-4 h-4 flex-shrink-0" />
+ <code class="whitespace-nowrap select-all">{getTokenCommand()}</code>
</div>
- <p class="mt-2 text-sm text-base-content">{deploymentHint()}</p>
+ <button
+ onClick={copyCommand}
+ class="ml-4 flex-shrink-0 p-2 rounded-md bg-surface hover:bg-slate-700 text-slate-300 hover:text-white transition-colors focus:outline-none focus:ring-0"
+ title="Copy command"
+ >
+ <Show when={copied()} fallback={<Copy class="w-4 h-4" />}>
+ <Check class="w-4 h-4 text-emerald-400" />
+ </Show>
+ </button>
</div>
-
- <div class="mb-8">
- <div class="bg-base rounded-md p-4 font-mono text-sm text-emerald-400 border border-border-subtle flex items-center justify-between">
- <div class="flex items-center space-x-3 overflow-x-auto scrollbar-hide">
- <Terminal class="w-4 h-4 flex-shrink-0" />
- <code class="whitespace-nowrap select-all">{getTokenCommand()}</code>
- </div>
- <button
- onClick={copyCommand}
- class="ml-4 flex-shrink-0 p-2 rounded-md bg-surface hover:bg-slate-700 text-slate-300 hover:text-white transition-colors focus:outline-none focus:ring-0"
- title="Copy command"
- >
- <Show when={copied()} fallback={<Copy class="w-4 h-4" />}>
- <Check class="w-4 h-4 text-emerald-400" />
- </Show>
- </button>
- </div>
+ <div class="mt-2 flex items-center gap-2 text-[11px] text-muted">
+ <span class="inline-flex items-center rounded-full bg-blue-50 px-2 py-0.5 font-semibold text-blue-700 dark:bg-blue-950/40 dark:text-blue-300">
+ {deploymentLabel()}
+ </span>
</div>
+ </div>
- <div class="mb-6 rounded-md border border-emerald-200 bg-emerald-50 px-4 py-3 dark:border-emerald-800 dark:bg-emerald-950/40">
- <div class="text-[11px] font-semibold uppercase tracking-wide text-emerald-700 dark:text-emerald-300">
- What this token does
- </div>
- <p class="mt-2 text-sm text-base-content">{unlockHelp()}</p>
+ <div class="mb-5 text-left">
+ <div class="text-[11px] font-semibold uppercase tracking-wide text-muted">
+ What this token does
</div>
+ <p class="mt-1 text-sm text-muted">{unlockHelp()}</p>
+ </div>
- <div class="space-y-4">
+ <div class="space-y-3">
<input
type="text"
value={props.bootstrapToken}
@@ -324,12 +280,11 @@ export const WelcomeStep: Component<WelcomeStepProps> = (props) => {
)}
</button>
</div>
- </div>
</div>
</Show>
<Show when={props.isUnlocked}>
- <div class="animate-enter delay-200">
+ <div>
<button
onClick={props.onNext}
class="py-4 px-10 bg-blue-600 hover:bg-blue-700 text-white text-lg font-medium rounded-md transition-colors duration-200"