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-7/

{
  "context": "This criteria evaluates how effectively the engineer uses react-top-loading-bar's continuous loading mode to create an automatic progress indicator. The focus is on proper usage of the package's API methods for starting continuous loading, completing the progress, and managing the loading bar's lifecycle.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "LoadingBar component imported",
      "description": "The LoadingBar component from react-top-loading-bar is properly imported into the FileUploadDemo component.",
      "max_score": 10
    },
    {
      "name": "LoadingBar component rendered",
      "description": "The LoadingBar component is rendered in the component tree, typically at the top level of the FileUploadDemo component.",
      "max_score": 10
    },
    {
      "name": "Ref created",
      "description": "A ref is created using useRef() to access the LoadingBar component's imperative methods.",
      "max_score": 10
    },
    {
      "name": "Ref attached",
      "description": "The ref is properly attached to the LoadingBar component using the ref prop.",
      "max_score": 10
    },
    {
      "name": "continuousStart() method used",
      "description": "The continuousStart() method is called to start the automatic, continuous loading animation when the upload begins. This is the key method for continuous loading mode.",
      "max_score": 30
    },
    {
      "name": "complete() method used",
      "description": "The complete() method is called to finish the loading bar and set it to 100% when the upload completes after 5 seconds.",
      "max_score": 20
    },
    {
      "name": "Proper timing integration",
      "description": "The loading bar methods are called at the correct times: continuousStart() when upload begins, and complete() after the 5-second delay.",
      "max_score": 10
    }
  ]
}
tessl i tessl/npm-react-top-loading-bar@3.0.0

tile.json