CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-react-swipeable

React hook for handling swipe gestures on touch devices and mouse interactions with comprehensive directional callbacks and customizable sensitivity settings

90

1.00x

Evaluation90%

1.00x

Agent success when using this tile

Overview
Eval results
Files

rubric.jsonevals/scenario-6/

{
  "context": "This criteria evaluates how well the engineer uses the react-swipeable library's lifecycle callbacks (onSwipeStart, onSwiping, onSwiped) to implement a component that tracks and displays real-time swipe gesture progress.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "useSwipeable hook usage",
      "description": "Uses the useSwipeable hook from react-swipeable to set up swipe gesture handling",
      "max_score": 15
    },
    {
      "name": "onSwipeStart callback",
      "description": "Implements the onSwipeStart callback to detect when a swipe begins and updates the status to 'Swiping...'",
      "max_score": 25
    },
    {
      "name": "onSwiping callback",
      "description": "Implements the onSwiping callback to continuously update displacement values (deltaX and deltaY) during the swipe",
      "max_score": 30
    },
    {
      "name": "onSwiped callback",
      "description": "Implements the onSwiped callback to detect when a swipe completes, updates status to 'Completed!', and increments the swipe counter",
      "max_score": 25
    },
    {
      "name": "Handler attachment",
      "description": "Properly attaches the handlers returned by useSwipeable to a DOM element using spread operator or ref",
      "max_score": 5
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-react-swipeable

tile.json