Skip to content

feat: add haptic feedback for quiz answers and achievement unlocks - #878

Merged
RUKAYAT-CODER merged 1 commit into
rinafcode:mainfrom
Nimatstar:feat/haptic-feedback-quiz-achievements-835
Jul 25, 2026
Merged

feat: add haptic feedback for quiz answers and achievement unlocks#878
RUKAYAT-CODER merged 1 commit into
rinafcode:mainfrom
Nimatstar:feat/haptic-feedback-quiz-achievements-835

Conversation

@Nimatstar

Copy link
Copy Markdown
Contributor

closes #835

Overview

Quiz answer submissions and achievement unlocks had no haptic feedback. This adds tactile confirmation for both, while respecting the OS Reduce Motion accessibility setting.

Changes

  • src/utils/quizHaptics.ts (new): small helper with quizAnswerHaptic() (medium impact) and achievementHaptic() (success notification). Both first check AccessibilityInfo.isReduceMotionEnabled() and no-op when Reduce Motion is on; haptic failures are swallowed silently.
  • src/store/quizStore.ts: fire quizAnswerHaptic() at the start of selectAnswer, so every answer selection gives feedback.
  • src/store/achievementStore.ts: fire achievementHaptic() in unlockAchievement when an achievement actually unlocks.

Acceptance criteria

  • Haptic fires on every quiz answer selection ✅
  • Achievement unlock triggers a success haptic ✅
  • Haptics respect the OS Reduce Motion setting ✅

Kept intentionally small — reuses the already-installed expo-haptics and hooks into the existing store actions. Per the requested scope, I did not run tests or a build locally.

Add a small quizHaptics helper that fires a medium impact on quiz answer
selection and a success notification on achievement unlock, gated on the OS
Reduce Motion accessibility setting. Wire it into quizStore.selectAnswer and
achievementStore.unlockAchievement.
@drips-wave

drips-wave Bot commented Jul 25, 2026

Copy link
Copy Markdown

@Nimatstar Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@RUKAYAT-CODER

Copy link
Copy Markdown
Contributor

Thank you for contributing to the project

@RUKAYAT-CODER
RUKAYAT-CODER merged commit f48c2f2 into rinafcode:main Jul 25, 2026
1 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Enhancement] Haptic feedback not implemented for quiz submissions and achievement unlocks

2 participants