CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl-labs/frontend-error-handling

Proactive error handling for React and vanilla JS frontends — every data-fetching component gets loading, error, and empty states, error boundaries, fetch error handling, form validation, optimistic rollback

90

1.38x
Quality

84%

Does it follow best practices?

Impact

100%

1.38x

Average score across 5 eval scenarios

SecuritybySnyk

Passed

No known issues

Overview
Quality
Evals
Security
Files

task.mdevals/scenario-2/

Product Listing Page

Build a product listing page in React with TypeScript. The page fetches products from /api/products and displays them in a responsive grid. Each product card shows the product name, price, image, and a short description.

Users can filter products by category using a dropdown that fetches categories from /api/categories. There is also a "Add to Cart" button on each card that sends a POST to /api/cart/items.

Output

Produce TypeScript/TSX files in a src/ directory:

  • src/api.ts -- API client for making requests
  • src/types.ts -- TypeScript type definitions
  • src/components/ProductGrid.tsx -- the main product listing page
  • src/components/ProductCard.tsx -- individual product card component
  • src/components/CategoryFilter.tsx -- category filter dropdown
  • src/App.tsx -- app root

Do not include test files or build configuration.

evals

tile.json