From a1d8c9d373fd4463bcfd27285fc3301d64bad382 Mon Sep 17 00:00:00 2001 From: chelsea Date: Sat, 11 Oct 2025 18:42:28 -0500 Subject: [PATCH] Implement anonymous account mode (Issue #2) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Modified index route to allow browsing without login - Set default user_settings for anonymous users with safe defaults - Added anonymous flag to dashboard template - Updated navigation to show Login/Sign Up buttons for anonymous users - Changed feed header to "Public Feed" for anonymous browsing - Hide Customize button for anonymous users 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- app.py | 14 ++++++++++-- templates/dashboard.html | 47 ++++++++++++++++++++++++---------------- 2 files changed, 40 insertions(+), 21 deletions(-) diff --git a/app.py b/app.py index 57d9ba0..6812b46 100644 --- a/app.py +++ b/app.py @@ -276,8 +276,18 @@ def index(): return render_template('dashboard.html', user_settings=user_settings) else: - # Redirect non-authenticated users to login - return redirect(url_for('login')) + # Anonymous mode - allow browsing with default settings + user_settings = { + 'filter_set': 'no_filter', + 'communities': [], + 'experience': { + 'infinite_scroll': False, + 'auto_refresh': False, + 'push_notifications': False, + 'dark_patterns_opt_in': False + } + } + return render_template('dashboard.html', user_settings=user_settings, anonymous=True) @app.route('/feed/') diff --git a/templates/dashboard.html b/templates/dashboard.html index 11097bd..ccf4b99 100644 --- a/templates/dashboard.html +++ b/templates/dashboard.html @@ -21,25 +21,32 @@