Repository navigation
feat(native): expand haptic feedback across student, tutor, and admin flows - #468
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Expands native Capacitor haptic feedback beyond a small set of isolated actions into a consistent semantic system across Student, Tutor, Admin, Discussions, and shared UI primitives.
Haptic Vocabulary (
lib/native/haptics.ts)hapticSelection(): subtle tick for tab switches, bottom nav, switches, checkboxes, radios, selects, toggle groups, quiz/trivia option picks, discussion reactions, and pull-to-refresh threshold.hapticLight(): crisp light impact for back navigation, search/drawer gestures, accordions, flashcard flips, question flags, quiz prev/next/map navigation, opening discussion threads, swipe-to-close drilldown, and live quiz next.hapticMedium(): distinct impact for entering/switching courses, entering a quiz, opening quiz submit confirmation, discussion swipe-to-reply and long-press menu, flashcard next batch, live quiz start/reveal, and Ops AI proposal execution.hapticHeavy(): strong impact for destructive confirmations (AdminConfirmDialog), deleting discussion messages, and ending live quiz sessions.hapticSuccess()/hapticWarning()/hapticError(): semantic notification haptics for quiz start/submit, flashcard grades/checks, trivia results, discussion posts/resolutions, report moderation, pull-to-refresh outcomes, and globaltoastnotifications (components/ui/sonner.tsx).hapticSuccess()followed bytoast.success()) never double-buzz.Verification
bun test tests/mobile-share-haptics-ptr.test.tspasses (23/23 tests).