diff options
| author | Ben Sima <ben@bsima.me> | 2025-11-16 09:07:37 -0500 |
|---|---|---|
| committer | Ben Sima <ben@bsima.me> | 2025-11-16 09:07:37 -0500 |
| commit | f3167698665482c8ee2ed9a02d84315f599031f0 (patch) | |
| tree | b85eb446e02451df8d59e815e809eb8dc43e0f46 /Biz/PodcastItLater/UI.py | |
| parent | 8235889345a37da308a19bed304cceb62d4dda53 (diff) | |
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)
Diffstat (limited to 'Biz/PodcastItLater/UI.py')
| -rw-r--r-- | Biz/PodcastItLater/UI.py | 18 |
1 files changed, 18 insertions, 0 deletions
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 @@ -197,6 +197,24 @@ class PageLayout(Component[AnyChildren, PageLayoutAttrs]): 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( + classes=[ + "bi", "bi-person-circle", "me-1", ], |
