Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.
Rework welcome screen (#177)
Leendert de Borst5b22a41aa6ba
diff --git a/src/AliasVault.Client/Main/Components/Email/RecentEmails.razor b/src/AliasVault.Client/Main/Components/Email/RecentEmails.razorindex c37362792..fe8a308e3 100644--- a/src/AliasVault.Client/Main/Components/Email/RecentEmails.razor+++ b/src/AliasVault.Client/Main/Components/Email/RecentEmails.razor@@ -46,7 +46,7 @@}else if (MailboxEmails.Count == 0){- <div class="text-gray-900 dark:text-white">No emails found.</div>+ <div class="text-gray-900 dark:text-white">No emails received (yet).</div>}else{diff --git a/src/AliasVault.Client/Main/Pages/Settings/General.razor b/src/AliasVault.Client/Main/Pages/Settings/General.razorindex e651985f7..4143b4898 100644--- a/src/AliasVault.Client/Main/Pages/Settings/General.razor+++ b/src/AliasVault.Client/Main/Pages/Settings/General.razor@@ -91,27 +91,27 @@/// <summary>/// Updates the default email domain./// </summary>- private async Task UpdateDefaultEmailDomain()+ private void UpdateDefaultEmailDomain(){- await DbService.Settings.SetDefaultEmailDomain(DefaultEmailDomain);+ DbService.Settings.DefaultEmailDomain = DefaultEmailDomain;StateHasChanged();}/// <summary>/// Updates the auto email refresh setting./// </summary>- private async Task UpdateAutoEmailRefresh()+ private void UpdateAutoEmailRefresh(){- await DbService.Settings.SetAutoEmailRefresh(AutoEmailRefresh);+ DbService.Settings.AutoEmailRefresh = AutoEmailRefresh;StateHasChanged();}/// <summary>/// Updates the auto email refresh setting./// </summary>- private async Task UpdateDefaultIdentityLanguage()+ private void UpdateDefaultIdentityLanguage(){- await DbService.Settings.SetDefaultIdentityLanguage(DefaultIdentityLanguage);+ DbService.Settings.DefaultIdentityLanguage = DefaultIdentityLanguage;StateHasChanged();}}diff --git a/src/AliasVault.Client/Main/Pages/Settings/Vault.razor b/src/AliasVault.Client/Main/Pages/Settings/Vault.razorindex 0e0bd2af4..e5f9b6863 100644--- a/src/AliasVault.Client/Main/Pages/Settings/Vault.razor+++ b/src/AliasVault.Client/Main/Pages/Settings/Vault.razor@@ -14,6 +14,14 @@<div class="p-4 mx-4 mb-4 bg-white border border-gray-200 rounded-lg shadow-sm 2xl:col-span-2 dark:border-gray-700 sm:p-6 dark:bg-gray-800"><h3 class="mb-4 text-xl font-semibold dark:text-white">Export vault</h3><div class="mb-4">+ <div class="p-4 mb-4 text-sm text-yellow-800 rounded-lg bg-yellow-50 dark:bg-yellow-900 dark:text-yellow-100">+ <p><strong>Warning:</strong> Exporting your vault to an unencrypted file will expose all of your passwords and sensitive information in plain text. Only do this on trusted computers and ensure you:</p>+ <ul class="list-disc ml-6 mt-2">+ <li>Store the exported file in a secure location</li>+ <li>Delete the file when you no longer need it</li>+ <li>Never share the exported file with others</li>+ </ul>+ </div><div><Button OnClick="ExportVaultSqlite">Export vault to unencrypted SQLite file</Button></div>diff --git a/src/AliasVault.Client/Main/Pages/Welcome.razor b/src/AliasVault.Client/Main/Pages/Welcome.razorindex 1ca9ed14b..d828f7669 100644--- a/src/AliasVault.Client/Main/Pages/Welcome.razor+++ b/src/AliasVault.Client/Main/Pages/Welcome.razor@@ -23,50 +23,41 @@{case TutorialStep.Welcome:<div class="space-y-4">- <h3 class="text-2xl font-bold text-gray-900 dark:text-white">Welcome to AliasVault!</h3><p class="text-gray-600 dark:text-gray-400">- Protect your online identity by using unique aliases for each service you sign up for. Let's learn how AliasVault works and then create your first secure identity.+ Your account has been successfully created! Protect your online identity by using unique aliases for each service you sign up for. Let's learn how AliasVault works and then create your first secure alias.</p>- <ul class="list-disc list-inside space-y-2 text-gray-600 dark:text-gray-400">- <li>Create unique identities for different services</li>- <li>Use temporary email addresses to protect your privacy</li>- <li>Generate and store random personal information</li>- <li>Access confirmation emails securely</li>- </ul></div>break;- case TutorialStep.HowItWorks:+ case TutorialStep.HowAliasVaultWorks:<div class="space-y-4">- <h3 class="text-2xl font-bold text-gray-900 dark:text-white">How AliasVault Works</h3><p class="text-gray-600 dark:text-gray-400">When you need to sign up for a new service:</p><ol class="list-decimal list-inside space-y-2 text-gray-600 dark:text-gray-400">- <li>AliasVault generates a random identity with a secure email address</li>+ <li>AliasVault generates a random identity with a secure private email address</li><li>Use this information to sign up for the service</li>- <li>All emails are automatically forwarded to AliasVault</li>- <li>Your real email address stays private</li>+ <li>Received emails show up in this app and can be opened in your browser</li>+ <li>Your real email address and other personal information stay private</li></ol><div class="mt-4 p-4 bg-blue-50 dark:bg-gray-700 rounded-lg"><p class="text-sm text-blue-800 dark:text-blue-200">- <span class="font-semibold">Pro tip:</span> Create different identities for different types of services (social media, shopping, banking) to prevent cross-site tracking.+ <span class="font-semibold">Pro tip:</span> Create different identities for different types of services (social media, shopping, newsletters) to prevent cross-site tracking.</p></div></div>break;- case TutorialStep.EmailManagement:+ case TutorialStep.SecureEnvironment:<div class="space-y-4">- <h3 class="text-2xl font-bold text-gray-900 dark:text-white">Managing Your Emails</h3><p class="text-gray-600 dark:text-gray-400">- AliasVault handles all your service-related emails:+ AliasVault is built with security and privacy in mind:</p><ol class="list-decimal list-inside space-y-2 text-gray-600 dark:text-gray-400">- <li>Emails appear automatically in your AliasVault inbox</li>- <li>All emails are encrypted and only visible to you</li>- <li>Confirmation links open in a new tab</li>- <li>Easily manage and delete emails when no longer needed</li>+ <li>All your data is encrypted in your browser with your master password</li>+ <li>Emails are stored encrypted on the server and are only readable by you</li>+ <li>Your master password never leaves your device</li>+ <li>The source-code is open-source and available on GitHub</li></ol></div>break;@@ -80,8 +71,8 @@<p class="text-gray-600 dark:text-gray-400">Your master password is the only way to access your vault. Store it securely and never share it.</p></div><div class="p-4 bg-gray-50 dark:bg-gray-700 rounded-lg">- <h4 class="font-semibold text-gray-900 dark:text-white">Regular Backups</h4>- <p class="text-gray-600 dark:text-gray-400">Your vault is automatically backed up, but you can also export your data manually from settings.</p>+ <h4 class="font-semibold text-gray-900 dark:text-white">Enable Two-Factor Authentication In Settings</h4>+ <p class="text-gray-600 dark:text-gray-400">Two-factor authentication adds an extra layer of security to your account. It requires you to enter a code from your authenticator app or provide a recovery code before your encrypted vault can be accessed.</p></div><div class="p-4 bg-gray-50 dark:bg-gray-700 rounded-lg"><h4 class="font-semibold text-gray-900 dark:text-white">Use Different Identities</h4>@@ -136,8 +127,8 @@private enum TutorialStep{Welcome,- HowItWorks,- EmailManagement,+ HowAliasVaultWorks,+ SecureEnvironment,SecurityTips,CreateFirstIdentity}@@ -152,14 +143,26 @@return step switch{TutorialStep.Welcome => "Welcome to AliasVault",- TutorialStep.HowItWorks => "How It Works",- TutorialStep.EmailManagement => "Managing Emails",+ TutorialStep.HowAliasVaultWorks => "How AliasVault Works",+ TutorialStep.SecureEnvironment => "Secure Environment",TutorialStep.SecurityTips => "Security Tips",TutorialStep.CreateFirstIdentity => "Get Started",_ => "Tutorial"};}+ /// <inheritdoc />+ protected override async Task OnInitializedAsync()+ {+ await base.OnInitializedAsync();++ // If tutorial is already done, redirect to the home page.+ if (DbService.Settings.TutorialDone)+ {+ NavigationManager.NavigateTo("/");+ }+ }+private void HandleSubmit(){GoNext();@@ -169,9 +172,9 @@{_currentStep = _currentStep switch{- TutorialStep.Welcome => TutorialStep.HowItWorks,- TutorialStep.HowItWorks => TutorialStep.EmailManagement,- TutorialStep.EmailManagement => TutorialStep.SecurityTips,+ TutorialStep.Welcome => TutorialStep.HowAliasVaultWorks,+ TutorialStep.HowAliasVaultWorks => TutorialStep.SecureEnvironment,+ TutorialStep.SecureEnvironment => TutorialStep.SecurityTips,TutorialStep.SecurityTips => TutorialStep.CreateFirstIdentity,_ => _currentStep};@@ -184,6 +187,7 @@private void FinishTutorial(){+ DbService.Settings.TutorialDone = true;NavigationManager.NavigateTo("credentials");}diff --git a/src/AliasVault.Client/Services/SettingsService.cs b/src/AliasVault.Client/Services/SettingsService.csindex a02946267..3b7f372ca 100644--- a/src/AliasVault.Client/Services/SettingsService.cs+++ b/src/AliasVault.Client/Services/SettingsService.cs@@ -27,43 +27,40 @@ public sealed class SettingsServiceprivate bool _initialized;/// <summary>- /// Gets the DefaultEmailDomain setting.+ /// Gets or sets a value indicating whether the tutorial has been completed./// </summary>- /// <returns>Default email domain as string.</returns>- public string DefaultEmailDomain => GetSetting("DefaultEmailDomain");-- /// <summary>- /// Gets a value indicating whether email refresh should be done automatically on the credentials page.- /// </summary>- /// <returns>AutoEmailRefresh setting as string.</returns>- public bool AutoEmailRefresh => GetSetting("AutoEmailRefresh", true);-- /// <summary>- /// Gets the DefaultIdentityLanguage setting.- /// </summary>- /// <returns>Default identity language as two-letter code.</returns>- public string DefaultIdentityLanguage => GetSetting<string>("DefaultIdentityLanguage", "en")!;+ public bool TutorialDone+ {+ get => GetSetting("TutorialDone", false);+ set => SetSettingAsync("TutorialDone", value).GetAwaiter().GetResult();+ }/// <summary>- /// Sets the DefaultEmailDomain setting.+ /// Gets or sets the DefaultEmailDomain setting./// </summary>- /// <param name="value">The new DefaultEmailDomain setting.</param>- /// <returns>Task.</returns>- public Task SetDefaultEmailDomain(string value) => SetSettingAsync("DefaultEmailDomain", value);+ public string DefaultEmailDomain+ {+ get => GetSetting("DefaultEmailDomain");+ set => SetSettingAsync("DefaultEmailDomain", value).GetAwaiter().GetResult();+ }/// <summary>- /// Sets the AutoEmailRefresh setting as a string.+ /// Gets or sets a value indicating whether email refresh should be done automatically on the credentials page./// </summary>- /// <param name="value">The new value.</param>- /// <returns>Task.</returns>- public Task SetAutoEmailRefresh(bool value) => SetSettingAsync("AutoEmailRefresh", value);+ public bool AutoEmailRefresh+ {+ get => GetSetting("AutoEmailRefresh", true);+ set => SetSettingAsync("AutoEmailRefresh", value).GetAwaiter().GetResult();+ }/// <summary>- /// Sets the DefaultIdentityLanguage setting.+ /// Gets or sets the DefaultIdentityLanguage setting./// </summary>- /// <param name="value">The new value.</param>- /// <returns>Task.</returns>- public Task SetDefaultIdentityLanguage(string value) => SetSettingAsync("DefaultIdentityLanguage", value);+ public string DefaultIdentityLanguage+ {+ get => GetSetting<string>("DefaultIdentityLanguage", "en")!;+ set => SetSettingAsync("DefaultIdentityLanguage", value).GetAwaiter().GetResult();+ }/// <summary>/// Initializes the settings service asynchronously.diff --git a/src/AliasVault.Client/wwwroot/css/tailwind.css b/src/AliasVault.Client/wwwroot/css/tailwind.cssindex 56506c9cb..f3e59cc49 100644--- a/src/AliasVault.Client/wwwroot/css/tailwind.css+++ b/src/AliasVault.Client/wwwroot/css/tailwind.css@@ -833,6 +833,10 @@ video {margin-top: 2rem;}+.ml-6 {+ margin-left: 1.5rem;+}+.line-clamp-2 {overflow: hidden;display: -webkit-box;@@ -868,10 +872,6 @@ video {display: grid;}-.contents {- display: contents;-}-.hidden {display: none;}@@ -2334,6 +2334,11 @@ video {background-color: rgb(133 77 14 / var(--tw-bg-opacity));}+.dark\:bg-yellow-900:is(.dark *) {+ --tw-bg-opacity: 1;+ background-color: rgb(113 63 18 / var(--tw-bg-opacity));+}+.dark\:bg-opacity-80:is(.dark *) {--tw-bg-opacity: 0.8;}@@ -2418,6 +2423,11 @@ video {color: rgb(191 219 254 / var(--tw-text-opacity));}+.dark\:text-yellow-100:is(.dark *) {+ --tw-text-opacity: 1;+ color: rgb(254 249 195 / var(--tw-text-opacity));+}+.dark\:placeholder-gray-400:is(.dark *)::-moz-placeholder {--tw-placeholder-opacity: 1;color: rgb(156 163 175 / var(--tw-placeholder-opacity));