webamp/packages/skin-database/api
Jordan Eldredge 86588f56e6 Add diagnostic logging to NSFW review flow
NSFW reports posted via the website-side GraphQL mutation aren't
triggering reviews when moderators react in Discord, but the bot-command
path (!review) works. Adds structured logging to disambiguate the two
paths and pinpoint which step in the path-B (graphql) flow is failing:

- DiscordEventHandler: client lifecycle events (ready, error, disconnect,
  reconnecting, shardError), login failures, top-level
  messageReactionAdd listener so we can see whether the Next.js-side
  gateway receives reactions at all
- DiscordEventHandler.handle: entry log + try/catch so swallowed errors
  surface (notify is fire-and-forget)
- requestReview: entry, resolved tweetStatus, explicit "skipping
  already-reviewed" log
- postSkin: new optional source param so logs can distinguish the bot
  command from the graphql mutation; logs at entry, after send, on bot
  reaction success/failure, awaiting reactions, awaitReactions resolved
- loggingFilter wrapping the awaitReactions filter to log every observed
  reaction with pass/fail and any filter errors
2026-06-27 17:00:11 -07:00
..
__mocks__ Add more test coverage 2020-11-30 19:30:09 -05:00
__tests__ Fix tests for Algolia use 2025-07-09 20:39:18 -07:00
graphql Remove blocklist of skins with viruses. These are now purged. 2025-12-29 13:15:46 -08:00
auth.ts Approve/reject skins from the website 2020-11-30 01:25:38 -05:00
DiscordEventHandler.ts Add diagnostic logging to NSFW review flow 2026-06-27 17:00:11 -07:00
processUserUploads.ts Enable more lints (#1330) 2025-11-28 12:19:10 -08:00
types.ts Remove express in favor of next.js 2025-06-05 18:14:30 -07:00