From f5b0caf19407d31359fc45a29dc2b660008f244f Mon Sep 17 00:00:00 2001 From: Michael Skrynski Date: Sun, 12 Apr 2026 20:49:45 +0200 Subject: [PATCH] Add Terms of Service modal to registration flow Add a modal with EDH Stats Tracker's Terms of Service and Privacy Policy. The modal is triggered by a link next to the "I agree" checkbox. It includes an "I Agree" button to validate acceptance and a close button. The modal is dismissed on click outside or via the dedicated buttons, ensuring a seamless user experience for new registrations. --- frontend/src/routes/register/+page.svelte | 194 +++++++++++++++++++++- frontend/static/version.txt | 2 +- 2 files changed, 194 insertions(+), 2 deletions(-) diff --git a/frontend/src/routes/register/+page.svelte b/frontend/src/routes/register/+page.svelte index 183b4c2..7ec5e4b 100644 --- a/frontend/src/routes/register/+page.svelte +++ b/frontend/src/routes/register/+page.svelte @@ -18,6 +18,7 @@ let serverError = ""; let successMessage = ""; let allowRegistration = true; + let showTermsModal = false; onMount(() => { (async () => { @@ -358,7 +359,14 @@ class="h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300 rounded mt-1" /> {#if errors.terms} @@ -421,3 +429,187 @@ + +{#if showTermsModal} +
+
(showTermsModal = false)} + >
+
+
+
+

+ Terms of Service +

+

EDH Stats Tracker

+
+ +
+
+

Last updated: January 2026

+
+

+ Welcome to EDH Stats Tracker +

+

+ By creating an account and using EDH Stats Tracker, you agree to + these Terms of Service. We've kept them simple and + straightforward—no legal jargon that makes your brain hurt. (You're + welcome.) +

+ +

+ 1. What This Service Is +

+

+ EDH Stats Tracker is a web application designed to help Magic: The + Gathering players track, analyze, and celebrate their EDH/Commander + game statistics. We store your game records, commanders, and + associated statistics. Think of us as your personal game journal + that actually does math for you. +

+ +

+ 2. User Accounts +

+

+ You are responsible for maintaining the confidentiality of your + password. You agree not to share your account credentials with + anyone else. If someone logs into your account and logs all your + games as losses, we'll sympathize, but that's on you. +

+

+ You represent that the information you provide during registration + is accurate and true. If you use a fake name, that's between you and + Magic's lore team. +

+ +

+ 3. Your Content +

+

+ All game records, commander lists, notes, and data you enter into + EDH Stats Tracker remain your property. We don't own your stats—we + just help you organize them. We won't sell your data, trade it for + pack equity, or share it with strangers. (We're not monsters.) +

+ +

+ 4. Acceptable Use +

+

+ You agree to use EDH Stats Tracker for its intended purpose: + tracking and analyzing your EDH games. Don't use it to harass, + deceive, or cause harm to others. Be cool. +

+

+ Don't try to break the service through hacking, automated attacks, + or other malicious means. If you find a security vulnerability, + please let us know responsibly instead. +

+ +

+ 5. Service Availability +

+

+ We aim to keep EDH Stats Tracker available and reliable. However, + like all software, it may occasionally go down for maintenance or + experience technical issues. We're doing our best here. +

+

+ We reserve the right to make changes to the service, add features, + or modify functionality as we see fit. We'll try to keep breaking + changes to a minimum. +

+ +

+ 6. Limitation of Liability +

+

+ EDH Stats Tracker is provided "as is." While we work hard to make it + great, we don't guarantee it will be perfect or meet every need. + We're not liable for data loss, lost wins, or your opponent's lucky + top-decks. +

+ +

+ 7. Changes to Terms +

+

+ We may update these Terms of Service from time to time. We'll let + you know about significant changes. Your continued use of the + service after changes means you accept the new terms. +

+ +

+ 8. Account Termination +

+

+ You can delete your account at any time. Your data will be removed + from our systems in accordance with our privacy practices. If you + violate these terms, we may disable your account. +

+ +

+ 9. Questions? +

+

+ If you have questions about these terms, please reach out. We're + reasonable people (at least we think so). +

+ +
+

+ TL;DR: Use the service as intended, keep your password + safe, it's your responsibility. We'll keep your data private and try + to keep the service running. Don't be a jerk. That's it. +

+
+
+
+
+ + +
+
+
+{/if} diff --git a/frontend/static/version.txt b/frontend/static/version.txt index e75da3e..197c4d5 100644 --- a/frontend/static/version.txt +++ b/frontend/static/version.txt @@ -1 +1 @@ -2.3.6 +2.4.0