Skip to content

feat(native): expand haptic feedback across student, tutor, and admin flows - #468

Merged
soezyxstt merged 2 commits into
stagingfrom
feat/comprehensive-native-haptics
Nov 24, 2026
Merged

soezyxstt merged 2 commits into
stagingfrom
feat/comprehensive-native-haptics

Conversation

@soezyxstt

Copy link
Copy Markdown
Owner

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 global toast notifications (components/ui/sonner.tsx).
  • Added an 80 ms duplicate coalescing window so rapid identical signals (such as explicit hapticSuccess() followed by toast.success()) never double-buzz.

Verification

  • bun test tests/mobile-share-haptics-ptr.test.ts passes (23/23 tests).
  • MCP compatibility: no impact; changes are strictly client UI / Capacitor native bridge haptic feedback.

@soezyxstt
soezyxstt merged commit b0adad6 into staging Nov 24, 2026
14 checks passed
@soezyxstt
soezyxstt deleted the feat/comprehensive-native-haptics branch November 24, 2026 11:17
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.

1 participant