or run

npx @tessl/cli init
Log in

Version

Files

docs

index.md
tile.json

rubric.jsonevals/scenario-2/

{
  "context": "This criteria evaluates how well the engineer uses @rc-component/input-number to implement mouse-based interactions for a quantity selector, specifically testing proficiency with click and long-press functionality on step buttons.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "InputNumber component usage",
      "description": "Uses the InputNumber component from @rc-component/input-number as the primary component for the quantity selector implementation",
      "max_score": 25
    },
    {
      "name": "Step button rendering",
      "description": "Properly renders increment and decrement step buttons by using default controls or ensuring the 'controls' prop is not set to false",
      "max_score": 15
    },
    {
      "name": "Click interaction support",
      "description": "Click interactions on step buttons work correctly to increment/decrement values, leveraging the component's built-in click handlers on step buttons",
      "max_score": 20
    },
    {
      "name": "Long-press support",
      "description": "Long-press interactions on step buttons work correctly for continuous value changes, utilizing the component's built-in long-press auto-repeat functionality (600ms initial delay, then 200ms intervals)",
      "max_score": 25
    },
    {
      "name": "Min/max constraints",
      "description": "Correctly implements minimum and maximum value constraints using the 'min' and 'max' props on InputNumber",
      "max_score": 10
    },
    {
      "name": "Step configuration",
      "description": "Properly configures the step increment/decrement amount using the 'step' prop",
      "max_score": 5
    }
  ]
}