Skip to content

Alerts: make /alerts public, require sign-in to save - #74

Merged
ralyodio merged 1 commit into
masterfrom
feat/alerts-public-v2
Jul 5, 2026
Merged

ralyodio merged 1 commit into
masterfrom
feat/alerts-public-v2

Conversation

@ralyodio

@ralyodio ralyodio commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

/alerts is now publicly viewable — anyone can open it and build an alert (category, term, recency, frequency). Saving requires an account.

  • Anonymous visitors: the "Create alert — sign in to save" button routes to /login?redirect=/alerts?new=<cat>&term=<term>&recency=<r>&frequency=<f>, so the alert they built is created immediately after sign-in (the page reads those params post-auth). A "Log in" link is shown too.
  • Signed-in visitors: the full management dashboard (create + list + pause/resume/delete), unchanged.
  • Implementation: moved the route out of the auth-gated (app) group into (marketing) (which has the auth-adaptive header and no forced redirect). The instant test-run stays signed-in-only (it spends SERP budget).

Verified locally: anonymous GET /alerts → 200 (previously 307→/login). App + worker tsc --noEmit clean.

Builds on merged #72 and #73.

🤖 Generated with Claude Code

Anyone can open /alerts and build an alert (category, term, recency,
frequency). Saving requires an account: for anonymous visitors the
Create button routes to /login?redirect=/alerts?new=... so the built
alert is created immediately after sign-in. Signed-in users get the
full dashboard. Moved from the auth-gated (app) group into (marketing)
(auth-adaptive header, no forced redirect).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Jul 5, 2026

Copy link
Copy Markdown

vu1nz Security Review

0 finding(s) in PR #?

No security issues found.

@ralyodio
ralyodio merged commit 6d97f6f into master Jul 5, 2026
8 checks passed
@ralyodio
ralyodio deleted the feat/alerts-public-v2 branch July 5, 2026 01:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant