summaryrefslogtreecommitdiff
path: root/Omni/Task
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2025-11-18 16:11:54 -0500
committerBen Sima <ben@bsima.me>2025-11-18 16:11:54 -0500
commit3e27d3f6c56da3451c15235a62e59073bc6a60fa (patch)
treed942a8efebb83dbe316378cc9613185a2282b389 /Omni/Task
parent2bd0fcfb9a8dd7d8e1a7564bd8c747e7290ef626 (diff)
Add 'Add to my feed' button to public feed for logged-in users
When viewing the public feed (or any episode list), logged-in users now see: - 'Add to my feed' button if episode is not in their feed - 'In your feed' button (disabled) if they already have it Implementation: - Added user_button logic to EpisodeList component - Checks Core.Database.user_has_episode() for each episode - Shows blue outline button for add action - Shows gray disabled button when already added - Buttons displayed in flex row with admin buttons Updated add_episode_to_feed endpoint: - Changed to redirect back to referer page after adding - Uses HX-Redirect to reload the page showing updated state - This allows the button to change from 'Add to my feed' to 'In your feed' All tests passing (48 tests)
Diffstat (limited to 'Omni/Task')
0 files changed, 0 insertions, 0 deletions