feat(dac-wizard): redesign welcome step and fix stepper navigation
Welcome step changes: - Add comprehensive disclaimer with bullet points - Add system requirements caveats (custom configs, manual mods, etc.) - Add recovery information - Update translations for EN/ES/FR/DE Bug fixes: - Fix stepper not updating when navigating backwards (current step now always shows as 'active') UI changes: - Replace Wand2 icon with gandalf.svg for DAC wizard button
This commit is contained in:
1 parent
e6d5c1ae7d
commit
8ef38c67e0
7 files changed
+305
-18
No files matched your search
@@ -197,7 +197,7 @@
|
||||
const steps = $derived<Step[]>(STEPS.map((step, index) => ({
|
||||
id: step,
|
||||
label: $t(`dacWizard.steps.${toCamelCase(step)}`) || step,
|
||||
status: completedSteps.has(step) ? 'complete' : index === currentIndex ? 'active' : 'upcoming'
|
||||
status: index === currentIndex ? 'active' : completedSteps.has(step) ? 'complete' : 'upcoming'
|
||||
})));
|
||||
|
||||
// Navigation
|
||||
@@ -362,8 +362,28 @@
|
||||
|
||||
<div class="wizard-content">
|
||||
{#if currentStep === 'welcome'}
|
||||
<div class="step-content">
|
||||
<p class="body-text">{$t('dacWizard.welcome.body')}</p>
|
||||
<div class="step-content welcome-content">
|
||||
<p class="body-text intro-text">{$t('dacWizard.welcome.intro')}</p>
|
||||
|
||||
<div class="disclaimer-section">
|
||||
<p class="disclaimer-title">{$t('dacWizard.welcome.disclaimerTitle')}</p>
|
||||
<ul class="disclaimer-list">
|
||||
<li>{$t('dacWizard.welcome.bulletResponsibility')}</li>
|
||||
<li>
|
||||
{$t('dacWizard.welcome.bulletNoGuarantee')}
|
||||
<ul class="system-issues">
|
||||
<li>{$t('dacWizard.welcome.systemIssue1')}</li>
|
||||
<li>{$t('dacWizard.welcome.systemIssue2')}</li>
|
||||
<li>{$t('dacWizard.welcome.systemIssue3')}</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>{$t('dacWizard.welcome.bulletHelper')}</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<p class="body-text recovery-text">{$t('dacWizard.welcome.recovery')}</p>
|
||||
|
||||
<p class="body-text ready-text">{$t('dacWizard.welcome.readyText')}</p>
|
||||
|
||||
<label class="checkbox-row">
|
||||
<input type="checkbox" bind:checked={welcomeConfirmed} />
|
||||
@@ -814,6 +834,69 @@
|
||||
color: var(--text-secondary);
|
||||
line-height: 1.6;
|
||||
margin: 0;
|
||||
white-space: pre-line;
|
||||
}
|
||||
|
||||
/* Welcome step styles */
|
||||
.welcome-content {
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
.intro-text {
|
||||
color: var(--text-primary);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.disclaimer-section {
|
||||
background: var(--bg-tertiary);
|
||||
border-radius: 8px;
|
||||
padding: 16px;
|
||||
border-left: 3px solid var(--warning, #fbbf24);
|
||||
}
|
||||
|
||||
.disclaimer-title {
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
color: var(--text-primary);
|
||||
margin: 0 0 12px 0;
|
||||
}
|
||||
|
||||
.disclaimer-list {
|
||||
margin: 0;
|
||||
padding-left: 20px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.disclaimer-list > li {
|
||||
font-size: 13px;
|
||||
color: var(--text-secondary);
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.system-issues {
|
||||
margin: 8px 0 0 0;
|
||||
padding-left: 16px;
|
||||
list-style-type: disc;
|
||||
}
|
||||
|
||||
.system-issues li {
|
||||
font-size: 12px;
|
||||
color: var(--text-muted);
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.recovery-text {
|
||||
padding: 12px;
|
||||
background: rgba(34, 197, 94, 0.1);
|
||||
border-radius: 6px;
|
||||
border-left: 3px solid var(--color-success, #22c55e);
|
||||
}
|
||||
|
||||
.ready-text {
|
||||
font-style: italic;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.checkbox-row {
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
import ViewTransition from '../ViewTransition.svelte';
|
||||
import { getCurrentWebview } from '@tauri-apps/api/webview';
|
||||
import { writeText as copyToClipboard } from '@tauri-apps/plugin-clipboard-manager';
|
||||
import { ArrowLeft, ChevronRight, ChevronDown, ChevronUp, Loader2, Sun, Moon, SunMoon, HelpCircle, Ban, Wand2 } from 'lucide-svelte';
|
||||
import { ArrowLeft, ChevronRight, ChevronDown, ChevronUp, Loader2, Sun, Moon, SunMoon, HelpCircle, Ban } from 'lucide-svelte';
|
||||
import Toggle from '../Toggle.svelte';
|
||||
import Dropdown from '../Dropdown.svelte';
|
||||
import DeviceDropdown from '../DeviceDropdown.svelte';
|
||||
@@ -2022,7 +2022,7 @@
|
||||
onclick={() => showDACWizardModal = true}
|
||||
title={$t('dacWizard.title')}
|
||||
>
|
||||
<Wand2 size={16} />
|
||||
<img src="/gandalf.svg" alt="DAC Setup" class="gandalf-icon" />
|
||||
</button>
|
||||
{/if}
|
||||
</div>
|
||||
@@ -3003,6 +3003,12 @@ flatpak override --user --filesystem=/home/USUARIO/Música com.blitzfc.qbz</pre>
|
||||
transform: scale(1.05);
|
||||
}
|
||||
|
||||
.dac-setup-btn .gandalf-icon {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
filter: invert(1);
|
||||
}
|
||||
|
||||
.loading-overlay {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
|
||||
@@ -965,9 +965,18 @@
|
||||
"triggerTooltip": "DAC-Einrichtungshilfe",
|
||||
"welcome": {
|
||||
"title": "Geführte DAC-Einrichtung",
|
||||
"subtitle": "Schritt-für-Schritt-Anleitung.",
|
||||
"body": "Sie werden Befehle kopieren und im Terminal ausführen. QBZ führt Sie durch jeden Schritt und erklärt alles. Vor Änderungen wird eine Sicherung erstellt.",
|
||||
"checkbox": "Ich verstehe, dass diese Anleitung die System-Audiokonfiguration ändert",
|
||||
"subtitle": "Dieser Assistent hilft Ihnen, Ihren DAC für bit-perfekte Wiedergabe unter Linux zu konfigurieren.",
|
||||
"intro": "QBZ nimmt keine automatischen Änderungen an Ihrem System vor.\nJeder Schritt zeigt die exakten Befehle, erklärt deren Funktion und überlässt Ihnen die Entscheidung, wann Sie fortfahren.",
|
||||
"disclaimerTitle": "Bitte beachten Sie vor dem Fortfahren:",
|
||||
"bulletResponsibility": "Sie sind selbst verantwortlich für das Erstellen, Aufbewahren und Wiederherstellen Ihrer Backups",
|
||||
"bulletNoGuarantee": "QBZ basiert auf offizieller Dokumentation und empfohlenen Vorgehensweisen, kann jedoch keine Garantie bieten bei Systemen mit:",
|
||||
"bulletHelper": "Diese Anleitung ist als Hilfestellung gedacht, nicht als System-Recovery-Werkzeug",
|
||||
"systemIssue1": "Bereits vorhandenen benutzerdefinierten Audio-Konfigurationen",
|
||||
"systemIssue2": "Manuell angepassten PipeWire-, Pulse- oder WirePlumber-Setups",
|
||||
"systemIssue3": "Übersprungenen oder in falscher Reihenfolge ausgeführten Befehlen",
|
||||
"recovery": "Sollte etwas nicht wie erwartet funktionieren, können Sie Ihre vorherige Konfiguration jederzeit aus dem erstellten Backup wiederherstellen.",
|
||||
"readyText": "Gehen Sie Schritt für Schritt vor.\nNichts wird ausgeführt, solange Sie es nicht selbst tun.",
|
||||
"checkbox": "Ich verstehe und akzeptiere diese Bedingungen",
|
||||
"start": "Starten"
|
||||
},
|
||||
"precheck": {
|
||||
|
||||
@@ -1024,9 +1024,18 @@
|
||||
"triggerTooltip": "DAC Setup Guide",
|
||||
"welcome": {
|
||||
"title": "Guided DAC Setup",
|
||||
"subtitle": "Step-by-step instructions.",
|
||||
"body": "You will copy and run commands in a terminal. QBZ will guide you and explain each step. A backup will be created before any changes.",
|
||||
"checkbox": "I understand this guide modifies system audio configuration",
|
||||
"subtitle": "This wizard helps you configure your DAC for bit-perfect playback on Linux.",
|
||||
"intro": "QBZ will not modify your system automatically.\nEach step shows the exact commands to run, explains what they do, and lets you decide when to proceed.",
|
||||
"disclaimerTitle": "Before continuing, please note:",
|
||||
"bulletResponsibility": "You are responsible for creating, keeping, and restoring your own backups",
|
||||
"bulletNoGuarantee": "QBZ follows official documentation and recommended practices, but cannot guarantee results on systems with:",
|
||||
"bulletHelper": "This guide is provided as a helper, not a system recovery tool",
|
||||
"systemIssue1": "Previous custom audio configurations",
|
||||
"systemIssue2": "Manually modified PipeWire, Pulse, or WirePlumber setups",
|
||||
"systemIssue3": "Commands skipped or executed out of order",
|
||||
"recovery": "If anything goes wrong, you can restore your previous configuration using the backup created during this process.",
|
||||
"readyText": "When you're ready, continue step by step.\nNothing will run unless you run it.",
|
||||
"checkbox": "I understand and accept these terms",
|
||||
"start": "Start"
|
||||
},
|
||||
"precheck": {
|
||||
|
||||
@@ -1024,9 +1024,18 @@
|
||||
"triggerTooltip": "Guía de Configuración de DAC",
|
||||
"welcome": {
|
||||
"title": "Configuración Guiada de DAC",
|
||||
"subtitle": "Instrucciones paso a paso.",
|
||||
"body": "Copiarás y ejecutarás comandos en una terminal. QBZ te guiará y explicará cada paso. Se creará un backup antes de cualquier cambio.",
|
||||
"checkbox": "Entiendo que esta guía modifica la configuración de audio del sistema",
|
||||
"subtitle": "Este asistente te ayuda a configurar tu DAC para una reproducción bit-perfect en Linux.",
|
||||
"intro": "QBZ no realiza cambios automáticos en tu sistema.\nCada paso muestra los comandos exactos que debes ejecutar, explica qué hacen y te permite decidir cuándo continuar.",
|
||||
"disclaimerTitle": "Antes de seguir, ten en cuenta lo siguiente:",
|
||||
"bulletResponsibility": "Tú eres responsable de crear, conservar y restaurar tus propios respaldos",
|
||||
"bulletNoGuarantee": "QBZ se basa en documentación oficial y prácticas recomendadas, pero no puede garantizar resultados en sistemas con:",
|
||||
"bulletHelper": "Esta guía es solo una ayuda, no una herramienta de recuperación del sistema",
|
||||
"systemIssue1": "Configuraciones de audio personalizadas previas",
|
||||
"systemIssue2": "Modificaciones manuales en PipeWire, Pulse o WirePlumber",
|
||||
"systemIssue3": "Comandos omitidos o ejecutados fuera de orden",
|
||||
"recovery": "Si algo sale mal, siempre puedes restaurar tu configuración anterior usando el respaldo creado durante este proceso.",
|
||||
"readyText": "Cuando estés listo, avanza paso a paso.\nNada se ejecuta si tú no lo ejecutas.",
|
||||
"checkbox": "Entiendo y acepto estos términos",
|
||||
"start": "Comenzar"
|
||||
},
|
||||
"precheck": {
|
||||
|
||||
@@ -964,10 +964,19 @@
|
||||
"title": "Assistant Configuration DAC",
|
||||
"triggerTooltip": "Guide de configuration DAC",
|
||||
"welcome": {
|
||||
"title": "Configuration guidée du DAC",
|
||||
"subtitle": "Instructions étape par étape.",
|
||||
"body": "Vous allez copier et exécuter des commandes dans un terminal. QBZ vous guidera et expliquera chaque étape. Une sauvegarde sera créée avant toute modification.",
|
||||
"checkbox": "Je comprends que ce guide modifie la configuration audio du système",
|
||||
"title": "Configuration Guidée du DAC",
|
||||
"subtitle": "Cet assistant vous aide à configurer votre DAC pour une lecture bit-perfect sous Linux.",
|
||||
"intro": "QBZ n'applique aucune modification automatiquement.\nChaque étape affiche les commandes exactes à exécuter, explique leur fonctionnement et vous laisse décider quand continuer.",
|
||||
"disclaimerTitle": "Avant de poursuivre, veuillez noter :",
|
||||
"bulletResponsibility": "Vous êtes responsable de la création, de la conservation et de la restauration de vos sauvegardes",
|
||||
"bulletNoGuarantee": "QBZ s'appuie sur la documentation officielle et les bonnes pratiques, sans pouvoir garantir le bon fonctionnement sur des systèmes ayant :",
|
||||
"bulletHelper": "Ce guide est une aide, et non un outil de récupération système",
|
||||
"systemIssue1": "Des configurations audio personnalisées existantes",
|
||||
"systemIssue2": "Des modifications manuelles de PipeWire, Pulse ou WirePlumber",
|
||||
"systemIssue3": "Des commandes ignorées ou exécutées dans un ordre différent",
|
||||
"recovery": "En cas de problème, vous pourrez restaurer votre configuration précédente à l'aide de la sauvegarde créée durant ce processus.",
|
||||
"readyText": "Lorsque vous êtes prêt, avancez étape par étape.\nRien ne s'exécute sans votre action.",
|
||||
"checkbox": "Je comprends et j'accepte ces conditions",
|
||||
"start": "Commencer"
|
||||
},
|
||||
"precheck": {
|
||||
|
||||
Reference in new issue
Block a user