diff --git a/desktop/src/features/onboarding/ui/EncryptedBackupCreator.tsx b/desktop/src/features/onboarding/ui/EncryptedBackupCreator.tsx
index b22e2929ea..c0b0e05328 100644
--- a/desktop/src/features/onboarding/ui/EncryptedBackupCreator.tsx
+++ b/desktop/src/features/onboarding/ui/EncryptedBackupCreator.tsx
@@ -1,4 +1,11 @@
-import { AlertTriangle, Eye, EyeOff, RefreshCw } from "lucide-react";
+import {
+ AlertTriangle,
+ Eye,
+ EyeOff,
+ LockKeyhole,
+ RefreshCw,
+} from "lucide-react";
+import { motion, useReducedMotion } from "motion/react";
import * as React from "react";
import { createPortal } from "react-dom";
@@ -75,6 +82,101 @@ const PENDING_TICKER_INTERVAL_MS = 2500;
/** Matches the `duration-300` slide transition on the ticker column. */
const PENDING_TICKER_SLIDE_MS = 300;
+const BACKUP_KEY_DOTS = [
+ "key-dot-1",
+ "key-dot-2",
+ "key-dot-3",
+ "key-dot-4",
+ "key-dot-5",
+ "key-dot-6",
+ "key-dot-7",
+ "key-dot-8",
+ "key-dot-9",
+] as const;
+
+const TIMELINE_CONNECTOR_DOTS = [
+ "connector-dot-1",
+ "connector-dot-2",
+ "connector-dot-3",
+ "connector-dot-4",
+] as const;
+
+const TIMELINE_DOT_INITIAL = { opacity: 0.35, scale: 0.85 };
+const TIMELINE_DOT_PULSE = {
+ opacity: [0.35, 1, 0.35],
+ scale: [0.85, 1.25, 0.85],
+};
+const TIMELINE_DOT_TRANSITION = {
+ duration: 0.7,
+ ease: "easeInOut" as const,
+ repeat: Number.POSITIVE_INFINITY,
+ repeatDelay: 1.2,
+};
+const TIMELINE_TOP_DOT_TRANSITIONS = TIMELINE_CONNECTOR_DOTS.map(
+ (_, index) => ({
+ ...TIMELINE_DOT_TRANSITION,
+ delay: index * 0.16,
+ }),
+);
+const TIMELINE_BOTTOM_DOT_TRANSITIONS = TIMELINE_CONNECTOR_DOTS.map(
+ (_, index) => ({
+ ...TIMELINE_DOT_TRANSITION,
+ delay: (index + TIMELINE_CONNECTOR_DOTS.length) * 0.16 + 0.24,
+ }),
+);
+
+/**
+ * Decorative key → password → lock timeline for the onboarding security
+ * surface. The password field is layered over its center by the caller.
+ */
+function BackupPasswordTimeline() {
+ const reduceMotion = useReducedMotion() ?? false;
+
+ return (
+
+
+ {BACKUP_KEY_DOTS.map((dot) => (
+
+ ))}
+
+
+ {TIMELINE_CONNECTOR_DOTS.map((dot, index) => (
+
+ ))}
+
+
+ {TIMELINE_CONNECTOR_DOTS.map((dot, index) => (
+
+ ))}
+
+
+
+ );
+}
+
/**
* Vertical ticker for the queued-download button label — cycles through the
* pending messages by sliding a stacked column inside a one-line viewport.
@@ -572,6 +674,11 @@ export function EncryptedBackupCreator({
}, [onVerified, setVerified]);
const issue = passphraseIssue(state.passphrase);
+ const showBackupTimeline =
+ variant === "spotlight" &&
+ !state.savedPassword &&
+ !state.createError &&
+ !saveError;
// The test view requires a successful save, not just a committed blob —
// while the native save dialog is open the password form stays put.
@@ -601,114 +708,124 @@ export function EncryptedBackupCreator({
className={cn("mx-auto w-full max-w-[500px] space-y-3 text-left")}
data-testid="encrypted-backup-creator"
>
-
-
{
- if (state.savedPassword) {
- event.preventDefault();
- setConfirmNewPassword(true);
- }
- }}
- onPaste={(event) => {
- if (state.savedPassword) {
- event.preventDefault();
- setConfirmNewPassword(true);
- }
- }}
- onChange={(event) =>
- dispatch({ type: "set-passphrase", value: event.target.value })
- }
- placeholder={
- state.savedPassword
- ? ""
- : `Password (min ${MIN_PASSPHRASE_LEN} characters)`
- }
- type={isRevealed ? "text" : "password"}
- value={state.passphrase}
- />
- {state.savedPassword ? (
-
+ {showBackupTimeline ?
: null}
+
+
{
+ if (state.savedPassword) {
+ event.preventDefault();
+ setConfirmNewPassword(true);
+ }
+ }}
+ onPaste={(event) => {
+ if (state.savedPassword) {
+ event.preventDefault();
+ setConfirmNewPassword(true);
+ }
+ }}
+ onChange={(event) =>
+ dispatch({ type: "set-passphrase", value: event.target.value })
+ }
+ placeholder={
+ state.savedPassword
+ ? ""
+ : `Password (min ${MIN_PASSPHRASE_LEN} characters)`
+ }
+ type={isRevealed ? "text" : "password"}
+ value={state.passphrase}
+ />
+ {state.savedPassword ? (
+
+ ••••••••••••••••••••••••••••••••
+
+ ) : null}
+ {state.savedPassword ? (
+
+ Backup password saved; hidden for security.
+
+ ) : null}
+
+ state.savedPassword
+ ? setConfirmNewPassword(true)
+ : setIsRevealed((revealed) => !revealed)
+ }
+ size="icon"
+ type="button"
+ variant="ghost"
>
- ••••••••••••••••••••••••••••••••
-
- ) : null}
- {state.savedPassword ? (
-
- Backup password saved; hidden for security.
-
- ) : null}
-
- state.savedPassword
- ? setConfirmNewPassword(true)
- : setIsRevealed((revealed) => !revealed)
- }
- size="icon"
- type="button"
- variant="ghost"
- >
- {isRevealed ? (
-
- ) : (
-
- )}
-
-
setConfirmNewPassword(true) : undefined
- }
- onGenerated={(value) => {
- dispatch({ type: "set-passphrase", value });
- // A generated password must be visible so the user can save it.
- setIsRevealed(true);
- }}
- securityTheme={variant === "spotlight"}
- />
- {issue ? (
-
- {issue}
-
- ) : null}
+ {isRevealed ? (
+
+ ) : (
+
+ )}
+
+ setConfirmNewPassword(true)
+ : undefined
+ }
+ onGenerated={(value) => {
+ dispatch({ type: "set-passphrase", value });
+ // A generated password must be visible so the user can save it.
+ setIsRevealed(true);
+ }}
+ securityTheme={variant === "spotlight"}
+ />
+ {issue ? (
+
+ {issue}
+
+ ) : null}
+
{state.savedPassword && state.ncryptsec && savedPath ? (