Files
ksmithandClaude Sonnet 5.5 2a3e9f632e Make the banner and sidebar counts live on every page
One 5-minute poll (/new-since/) now drives the new-articles banner, the
tab dot and the sidebar counts, across all subscriptions rather than the
selected feed/tag. The banner lives in the base layout with a
server-rendered baseline id and reloads the current view on click; new
articles are never inserted automatically.

Sidebar counts are patched in place by the poll, and immediately after
reading or starring (HX-Trigger: countsChanged). Ingestion, filter rules
and subscription changes now drop the cached counts instead of waiting
out the TTL.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-03 07:39:36 -07:00

21 lines
747 B
Python

from django.urls import path
from . import views
app_name = "reader"
urlpatterns = [
path("", views.stream, name="stream"),
path("new-since/", views.new_since, name="new_since"),
path("mark-all-read/", views.mark_all_read, name="mark_all_read"),
path("articles/<int:article_id>/", views.article_detail, name="article_detail"),
path(
"articles/<int:article_id>/inline/",
views.article_inline,
name="article_inline",
),
path("articles/<int:article_id>/toggle-read/", views.toggle_read, name="toggle_read"),
path("articles/<int:article_id>/toggle-star/", views.toggle_star, name="toggle_star"),
path("articles/<int:article_id>/toggle-saved/", views.toggle_saved, name="toggle_saved"),
]