Conversation
This was referenced Sep 23, 2026
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: the media worker, media intake and reports; events, certificates, guest RSVPs and volunteer hours; chat, direct messages and the websocket gateway. Large functions are split into named helpers, repeated code is shared, magic numbers and strings 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
Filing a photo report — [Web] [Mobile]
Creating, editing, duplicating and cancelling an event — [Web] [Mobile]
Joining an event and claiming a slot — [Web] [Mobile]
Guest RSVP — [Web]
Volunteer hours and the transcript PDF — [Web] [Mobile]
Direct messages and crew chat — [Web] [Mobile]
Findings addressed
Campaign PRs 7 to 10: the LOCAL DUP, READ and DEAD ledger findings for chunks B04 to B06, plus local magic values, large-function splits and un-exports.
Largest splits: the media job core (
processAsset) into phases that each build their retryable infrastructure error at the same point, so only that error can leave the job; the event service (updateCleanup,createEvent,requestResources) and its notifications, slots and address helpers into three new modules; the certificate PDF renderer (about 490 lines) into draw helpers with byte-identical output for eight sample inputs; the chat gateway wiring (388 lines), the websocket send handler and the socket lifecycle into named builders with the same order of side effects.Decisions for the reviewer
User-visible copy changes
None.
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