chore: audit frontend error reporting to exclude expected behaviours #79

Merged
naomi merged 1 commits from chore/error-reporting-audit into main 2026-03-19 16:01:22 -07:00
Owner

Summary

Audits all logError call sites in gameContext.tsx and suppresses telemetry for expected business logic rejections, eliminating alert fatigue without hiding real errors.

Changes per call site

Context Before After
auto_save Logged all non-signature errors Network failures silently swallowed — next tick retries
auto_prestige Logged eligibility failures Silently ignored — eligibility re-checked every tick
auto_boss Logged all errors Filters out "Boss is not currently available" (race condition); other errors still logged
challenge_boss Logged all errors Filters out "Boss is not currently available" (race condition); other errors still logged
start_exploration Logged then rethrew Removed useless try/catch — error propagates to UI naturally
collect_exploration Logged then rethrew Removed useless try/catch — error propagates to UI naturally

Genuine errors (buy_prestige_upgrade, transcend, apotheosis, buy_echo_upgrade, craft_recipe) are unchanged — they still fire telemetry.

Closes #73

This PR was created with help from Hikari~ 🌸

## Summary Audits all `logError` call sites in `gameContext.tsx` and suppresses telemetry for expected business logic rejections, eliminating alert fatigue without hiding real errors. ### Changes per call site | Context | Before | After | |---|---|---| | `auto_save` | Logged all non-signature errors | Network failures silently swallowed — next tick retries | | `auto_prestige` | Logged eligibility failures | Silently ignored — eligibility re-checked every tick | | `auto_boss` | Logged all errors | Filters out `"Boss is not currently available"` (race condition); other errors still logged | | `challenge_boss` | Logged all errors | Filters out `"Boss is not currently available"` (race condition); other errors still logged | | `start_exploration` | Logged then rethrew | Removed useless try/catch — error propagates to UI naturally | | `collect_exploration` | Logged then rethrew | Removed useless try/catch — error propagates to UI naturally | Genuine errors (`buy_prestige_upgrade`, `transcend`, `apotheosis`, `buy_echo_upgrade`, `craft_recipe`) are unchanged — they still fire telemetry. Closes #73 ✨ This PR was created with help from Hikari~ 🌸
hikari added 1 commit 2026-03-19 15:56:49 -07:00
chore: audit frontend error reporting to exclude expected behaviours
Security Scan and Upload / Security & DefectDojo Upload (pull_request) Successful in 59s
CI / Lint, Build & Test (pull_request) Successful in 1m13s
cc28f05c67
Closes #73
naomi merged commit 161127dc21 into main 2026-03-19 16:01:22 -07:00
naomi deleted branch chore/error-reporting-audit 2026-03-19 16:01:22 -07:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: nhcarrigan/elysium#79