Epic: Use what's built in, and keep our code for events and community
Back to our planType
tech-debt
Summary
Epic: use what's built in. Replace code that reinvents what Payload, Next.js, React or an established plugin already does, and re-plan open work the same way, so our own code goes into what makes the site unique: events, news and community.
Summary of the owner's direction (2026-10-22, Claude chat session):
Change plans and undo any work that reinvents the wheel. Where Payload already provides something that is well established, thoroughly tested, documented and working, such as reset emails or account creation, use that instead of building our own. The site's own value lies in what it is for, such as events and community features.
Rule: native first, then plugins, then our code, opens in a new tab (#262). Close calls go to the owner one question at a time (waits for owner, opens in a new tab).
Decisions for the owner (asked one at a time)
- Done: #266 Sign-in foundation. Decided 2026-10-23: Payload's own.
- Done: Confirming contact-form senders (#183, PR #258): already decided 2026-10-21 on #168. Payload's
auth.verifyonly works for accounts, so senders keep the site's own token (0009); the 2026-10-22 audit checked that reasoning against Payload 3.91. Goes ahead once 0007 (#186) merges. - Done: #187 Second confirmation: decided 2026-10-23, A (Payload's native verification).
- Not done: Later: photo contest voting (#164) on the Discourse forum (one vote per member built in) or our own. Asked when #164 starts.
- Not done: Later, small, asked when the work comes up: the Turnstile widget (ours vs
@marsidev/react-turnstile), form size limits (our hook vs Payload'smaxLength/maxRows), event dates (as today vs Payload's timezone-aware dates, with a migration).
Next up, in order (security first)
- #282 Forgot password: robot check, per-IP limit, even timing (priority: high, security)
- #187 Resident sign-up on Payload's native verification (in progress)
- #285 Reset page sends Referrer-Policy as a header
- #281 Header still shows Log In after signing in (bug)
- #286 Copilot automatic review fails since 2026-10-22 (diagnosis in progress; not disabling it)
Clear swaps (no decision needed)
- Done: #267 Next.js native sitemaps (#273)
- Done: #268 Payload's
deepMergeand Lexical-to-plaintext (#275) - Done: #269 Payload's sign-in helper and forgot/reset password pages (#277, #284)
- Not done: #187 Resident sign-up on Payload's
create+auth.verify(sub-issue of #162; stacked on #269)
Re-planned open work
- #141 Payload's jobs queue runs scheduled work first; cleanup of unconfirmed sign-ups, deferred emails and #255's fetching reuse it.
- #162 The volunteer sign-up is a Form Builder form (already installed), not a new collection.
- #123 The review queue uses Payload's drafts and versions, plus unique indexes for de-duplication.
- #255 Pull official feeds with an established RSS/ICS parser on a Payload job; the AI only judges relevance.
Stays custom (the site's own value)
Events, news, directory, page blocks, the role model, form-email and robot-check policies, and the change-password check.
Area
auth, cms, frontend
Priority
High
Generated by Claude Code, opens in a new tab
Issues in this epic
#267 · Closed Oct 23
#268 · Closed Oct 23
#276 · Closed Oct 23
#279