Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
A behavior-neutral cleanup inside the files of three areas: posts, the feed, follows, notifications and legal documents; host registration, tickets, questions, waitlist and check-in; organizations, event teams and event pages. The 2,854-line registration repository and the 1,979-line organization repository are split by concern into files in the same folder, behind the same factories. Large functions are split into named helpers, repeated code is shared, magic values are named, and dead code and needless exports are removed. Nothing a user sees should change.
Before you start
Verify
Nothing new to verify: every step below is a regression check.
Regression
Posting, liking, reposting and following — [Web] [Mobile]
Registering with tickets and questions, and the waitlist — [Web] [Mobile]
Check-in and the roster — [Web] [Mobile]
Organization invite — [Web]
Event team invite — [Web] [Mobile]
Editing the event signup page — [Web]
Findings addressed
Campaign PRs 7 to 10: the LOCAL DUP, READ and DEAD ledger findings for chunks B07 to B09, plus local magic values, large-function splits and un-exports.
Largest splits: the registration repository into load, ticket types, questions, register, roster, waitlist, check-in and pages files, with
registerInin steps on the same transaction and statement order; the organization repository into rows, profile, members, verification, admin and invites files, with invite acceptance in steps under the same lock order; post creation and feed hydration; the five post-activity notifiers into one table with the same keys and dedupe choices.Decisions for the reviewer
assertSlugAllowedtakes an optional message so the page address keeps its own "that address is reserved" text.roleOfand pending-invite count, the team standing factory (now also used by its route), and several notification helpers.User-visible copy changes
None. The invite emails and notification still say "expires in 14 days", now driven by the same constant as the expiry.
Tests changed
None. No test file was edited.
Verification
pnpm lint, prettier check,check:sqlclean; api unit suite by explicit path 428 files, 7116 passed, 3 skipped; media-worker unit 300 passed, 2 failed (the known arm64 ffprobe helper issue fixed in Backend test safety net: SQL transcripts, CSRF pairing, authz and characterization tests #92).Staging checks
https://api.civfix.dev/readyzanswers ready after the deploy (no migration in this PR).Not covered
🤖 Generated with Claude Code