generated from nhcarrigan/template
feat: debug panel with force unlocks and hard reset #65
Reference in New Issue
Block a user
Delete Branch "feat/resets"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Files added
apps/api/src/routes/debug.ts— two POST endpoints (/force-unlocks,/hard-reset)apps/web/src/components/game/debugPanel.tsx— the Debug tab UIapps/web/src/components/ui/confirmationModal.tsx— reusable confirmation modalFiles modified
apps/api/src/index.ts— registers the debug routerpackages/types/src/interfaces/api.ts— addsForceUnlocksResponsetypepackages/types/src/index.ts— exports the new typeapps/web/src/api/client.ts— addsforceUnlocks()anddebugHardReset()API callsapps/web/src/context/gameContext.tsx— wires both functions into game contextapps/web/src/components/game/gameLayout.tsx— adds the Debug tabapps/web/src/styles.css— styles for action buttons, cards, result messages, and confirmation modal✨ This PR was created with help from Hikari~ 🌸