Internal ID: #68
Imported from ISSUES.md via scripts/import-issues.mjs.
Problem Statement. useGameStore.js catches errors in register, login, completePuzzle, etc., and only console.errors. The UI never reflects failure states.
Expected Outcome. Return { ok: false, reason } from these actions and use them in UI to show toasts/snackbars.
Acceptance Criteria.
- Failed login shows a UI toast, not just devtools.
Implementation Notes.
- Use
react-hot-toast (small) or build a minimal one.
Files / modules affected.
frontend/store/useGameStore.js
frontend/components/shared/Toast.tsx (new)
Dependencies. None.
Difficulty / Effort. Medium / S (≈ 4 hours).
Labels. area:frontend, quality
Problem Statement.
useGameStore.jscatches errors inregister,login,completePuzzle, etc., and onlyconsole.errors. The UI never reflects failure states.Expected Outcome. Return
{ ok: false, reason }from these actions and use them in UI to show toasts/snackbars.Acceptance Criteria.
Implementation Notes.
react-hot-toast(small) or build a minimal one.Files / modules affected.
frontend/store/useGameStore.jsfrontend/components/shared/Toast.tsx(new)Dependencies. None.
Difficulty / Effort. Medium / S (≈ 4 hours).
Labels.
area:frontend,quality