CtrlK
CommunityDocumentationLog inGet started
Tessl Logo

tessl/npm-react-top-loading-bar

A highly customizable React top-loading bar component with hook-based, ref-based, and state-based control patterns.

Agent Success

Agent success rate when using this tile

64%

Improvement

Agent success rate improvement when using this tile compared to baseline

1.25x

Baseline

Agent success rate without this tile

51%

Overview
Eval results
Files

rubric.jsonevals/scenario-8/

{
  "context": "This criteria evaluates how well the engineer uses react-top-loading-bar's continuousStart method with a configurable refresh rate to implement a smooth loading indicator during a simulated data fetch operation. The focus is on proper usage of the package's continuous loading mode with custom timing configuration.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "LoadingBar component usage",
      "description": "Uses the LoadingBar component from react-top-loading-bar (default import or named import)",
      "max_score": 15
    },
    {
      "name": "Ref-based control setup",
      "description": "Creates a ref using useRef<LoadingBarRef>(null) or React.createRef<LoadingBarRef>() to access LoadingBar methods",
      "max_score": 15
    },
    {
      "name": "Ref attachment",
      "description": "Properly attaches the ref to the LoadingBar component using the ref prop",
      "max_score": 10
    },
    {
      "name": "continuousStart method call",
      "description": "Calls the continuousStart method on the loading bar ref when initiating the fetch operation",
      "max_score": 25
    },
    {
      "name": "Refresh rate configuration",
      "description": "Passes 200 as the second argument (refreshRate parameter) to continuousStart method to configure update frequency",
      "max_score": 20
    },
    {
      "name": "complete method call",
      "description": "Calls the complete method on the loading bar ref when the fetch operation finishes",
      "max_score": 10
    },
    {
      "name": "Visual customization",
      "description": "Configures the LoadingBar with color prop set to '#10b981' (green) and height prop set to 4",
      "max_score": 5
    }
  ]
}
tessl i tessl/npm-react-top-loading-bar@3.0.0

tile.json