webamp/packages/skin-database
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__ Fix tests for Algolia use 2025-07-09 20:39:18 -07:00
api Add diagnostic logging to NSFW review flow 2026-06-27 17:00:11 -07:00
app Fix TypeScript error in Webamp renderInto call (#1340) 2026-01-01 15:19:31 -08:00
data Webamp optionally fully contained into a DOM element (#1338) 2025-12-31 14:59:14 -08:00
discord-bot Add diagnostic logging to NSFW review flow 2026-06-27 17:00:11 -07:00
docs Refactor museum query 2022-06-19 16:20:57 -07:00
fixtures Progress (probably, who knows) 2020-09-16 08:29:50 -04:00
legacy-client/src Switch away from cached api 2025-12-26 19:20:30 +00:00
migrations Make scroll sessions more dynamic 2025-11-07 15:23:02 -08:00
public Bring static assets over 2025-06-06 08:07:54 -07:00
scripts Fix lints (#1335) 2025-12-15 22:12:14 -08:00
seeds Fix tests snapshots 2025-06-05 17:30:15 -07:00
services Fix lints (#1335) 2025-12-15 22:12:14 -08:00
tasks Remove unused RichText import from bluesky.ts to fix CI lint failure (#1346) 2026-03-24 21:08:48 -07:00
.eslintrc.js Consolidate ESLint configs into root (#1324) 2025-11-27 21:32:10 -08:00
.gitignore Start adopting next.js 2025-06-04 21:07:45 -07:00
.prettierignore Upgrade grats 2024-08-25 18:41:45 -07:00
addSkin.ts Webamp optionally fully contained into a DOM element (#1338) 2025-12-31 14:59:14 -08:00
algolia.ts Fix tests for Algolia use 2025-07-09 20:39:18 -07:00
cli.ts Webamp optionally fully contained into a DOM element (#1338) 2025-12-31 14:59:14 -08:00
CloudFlare.ts Progress 2021-01-18 13:37:39 -05:00
config.ts Bluesky bot 2025-10-10 20:25:57 -07:00
data.json Tweet from JS and scrape tweets 2020-11-02 23:49:49 -05:00
db.ts Try falling back to test 2022-03-09 23:40:48 -08:00
DiscordWinstonTransport.js Avoid some lint errors 2025-07-09 21:05:54 -07:00
jest-setup.js Add missing BLUESKY env vars to test setup (#1319) 2025-11-27 16:24:04 -08:00
knexfile.ts Get rid of custom server for next.js 2025-06-04 23:47:10 -07:00
logger.js Move skin stuff to their own packages 2020-05-17 22:24:35 -07:00
museumOrder.sql Fix sorting script 2023-03-04 14:37:59 -05:00
next-env.d.ts Start adopting next.js 2025-06-04 21:07:45 -07:00
next.config.js Fix deploy 2025-12-03 18:12:43 -05:00
package.json Enable Webamp for scroll UI 2025-12-31 15:18:45 -08:00
preview.png Bring static assets over 2025-06-06 08:07:54 -07:00
preview_small.png Bring static assets over 2025-06-06 08:07:54 -07:00
README.md Remove express in favor of next.js 2025-06-05 18:14:30 -07:00
regionParser.ts Check region.txt with more detail 2022-10-03 19:32:27 -07:00
s3.js Upgrade grats 2024-03-01 23:26:06 -08:00
Search filter ideas Search filter exploration 2022-10-01 14:21:46 -07:00
shooter.js Fiddle with shooter 2025-06-05 02:59:17 -04:00
skinHash.ts Avoid some lint errors 2025-07-09 21:05:54 -07:00
transparency.ts Index the number of transparent pixels 2022-10-05 19:51:00 -07:00
tsconfig.json Improve scroll UI 2025-12-29 15:32:03 -08:00
twitter.ts Add type info 2020-12-02 01:20:31 -05:00
types.ts Add bulk download page 2025-12-29 11:35:45 -08:00
utils.ts Get syncing to the archive working again 2025-12-03 18:12:43 -05:00

Winamp Skin Database

This package contains code for managing the collection of Winamp skins which are used for various projects related to Webamp:

  • @winampSkins Twitter Bot
  • The Discord bot used in the Webamp Discord

Discord Bot

The discord bot allows us to:

  • Review skins for use by the Twitter bot
  • Upload new skins to the database
  • Get a screenshot of a given skin
  • Get a link/screenshot of a skin based on its hash

Server

This package also includes a GraphQL interface for exploring skins. It is not currently used by anything, but can be useful for inspecting the data. sudo systemctl reload apache2