Skip to content
This repository was archived by the owner on Mar 21, 2026. It is now read-only.

Connect tRPC routers to DynamoDB and implement projector handlers#4

Open
lollipop-onl wants to merge 1 commit intomainfrom
feat/connect-trpc-routers-to-dynamodb
Open

Connect tRPC routers to DynamoDB and implement projector handlers#4
lollipop-onl wants to merge 1 commit intomainfrom
feat/connect-trpc-routers-to-dynamodb

Conversation

@lollipop-onl
Copy link
Collaborator

Summary

  • Replace all hardcoded stub responses in tRPC routers (auth, gacha, costumes, users, sessions, synthesis, subscriptions) with actual DynamoDB repository calls
  • Implement projector handleMessage for NFC_SCANNED and QR_SCANNED events, calling trpc.auth.nfcLogin and returning SCAN_RESULT to admin via WebRTC DataChannel
  • Expose send() method from useProjectorConnection hook to enable downstream messaging

Test plan

  • Projector app builds successfully (tsc -b + vite build)
  • Server bundles successfully (801 modules)
  • Lint passes with 0 errors (14 pre-existing warnings only)
  • All 12 existing tests pass
  • Manual: Start DynamoDB Local + seed data, verify NFC login creates/retrieves user
  • Manual: Verify gacha pull fetches costume from DB and records in UserCostumes
  • Manual: Verify photo upload stores file and updates user record

🤖 Generated with Claude Code

…handlers

Replace hardcoded stub responses with actual DynamoDB repository calls across
all server routers (auth, gacha, costumes, users, sessions, synthesis,
subscriptions). Implement projector NFC/QR scan handlers that call tRPC
and return results to admin via WebRTC DataChannel.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant