Skip to content

useGameStore.errors are silently logged, never surfaced #69

Description

@mercy60

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

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programarea:frontendImported from ISSUES.mdqualityImported from ISSUES.md

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions