From f3167698665482c8ee2ed9a02d84315f599031f0 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Sun, 16 Nov 2025 09:07:37 -0500 Subject: Fix public feed display and admin access issues Issue #1: demo@example.com admin status - Confirmed demo@example.com IS in ADMIN_EMAILS (working as intended) - Both Core.py and UI.py have demo@example.com in whitelist Issue #2: /public page auto-refresh causing disappearing articles - Created PublicFeedPage component without auto-refresh - Separated from HomePage which has dashboard auto-updates - /public route now uses PublicFeedPage instead of HomePage Issue #3: Homepage missing public feed for logged-out users - Updated HomePage to show public feed when user is not logged in - Shows login form with public episodes below - Includes marketing message: 'Sign up to create your own personal feed!' - Public episodes are fetched and displayed prominently Additional improvements: - Added 'Public Feed' link to navbar for easy access - PublicFeedPage shows RSS feed link for public.rss - Clear separation between user dashboard (auto-refresh) and public feed (static) All tests passing (48 tests) --- Biz/PodcastItLater/UI.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'Biz/PodcastItLater/UI.py') diff --git a/Biz/PodcastItLater/UI.py b/Biz/PodcastItLater/UI.py index 72a0bf1..a457a02 100644 --- a/Biz/PodcastItLater/UI.py +++ b/Biz/PodcastItLater/UI.py @@ -192,6 +192,24 @@ class PageLayout(Component[AnyChildren, PageLayoutAttrs]): ), classes=["nav-item"], ), + html.li( + html.a( + html.i( + classes=[ + "bi", + "bi-globe", + "me-1", + ], + ), + "Public Feed", + href="/public", + classes=[ + "nav-link", + "active" if is_active("public") else "", + ], + ), + classes=["nav-item"], + ), html.li( html.a( html.i( -- cgit v1.2.3