Skip to content

add reusable haptic engine and integrate core DeFi feedback flows#203

Open
EstebanCanales wants to merge 4 commits into
Neko-Protocol:devfrom
EstebanCanales:feat/Haptic-Engine-Web-Integration
Open

add reusable haptic engine and integrate core DeFi feedback flows#203
EstebanCanales wants to merge 4 commits into
Neko-Protocol:devfrom
EstebanCanales:feat/Haptic-Engine-Web-Integration

Conversation

@EstebanCanales
Copy link
Copy Markdown

@EstebanCanales EstebanCanales commented Apr 26, 2026

Overview

Integrated a haptic feedback engine in the Neko web app to provide tactile responses on key user interactions.

Motivation

Haptic feedback improves perceived quality on mobile browsers and PWA installs, helping Neko feel native, not only visually native.

What was implemented (Issue #198)

  • Implemented a reusable useHaptic() hook for cross-feature usage.
  • Added haptic triggers for:
    • wallet connect
    • transaction confirm
    • transaction error
    • swap execute (success/error)
    • vault deposit/withdraw (success/error)
  • Added capability guards and graceful fallback:
    • respects prefers-reduced-motion
    • checks device/browser support
    • no-op on desktop/no-touch devices
    • silent no-op on unsupported environments

Scope decisions

  • Implemented with native Web Vibration API via reusable wrapper/hook architecture.
  • Centralized haptic patterns/constants to keep implementation clean and scalable.

Acceptance Criteria Mapping

  • Hook implemented and documented
  • Haptic fires on at least: tx confirm, tx error, wallet connect
  • No effect on desktop (graceful no-op)
  • Works on iOS Safari and Android Chrome in PWA mode

Demo video:

https://cap.so/s/zkz52amjy0fsmqd

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Apr 26, 2026

Hey @EstebanCanales! 👋 It looks like this PR isn't linked to any issue.

If this PR is for one of the issues assigned to you as part of a Wave, please link it to ensure your contribution is tracked properly. You can do this by adding a keyword to the PR description (e.g., Closes #123), or by clicking a button below:

Issue Title
#198 Haptic Engine Web Integration Link to this issue

ℹ️ Learn more about linking PRs to issues

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 26, 2026

@EstebanCanales is attempting to deploy a commit to the Oppia Software Labs Team on Vercel.

A member of the Team first needs to authorize it.

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