CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-lightdash--common

Shared TypeScript library for the Lightdash platform containing common types, utilities, and business logic for analytics workflows

Overall
score

72%

Evaluation72%

1.09x

Agent success when using this tile

Overview
Eval results
Files

rubric.jsonevals/scenario-20/

{
  "context": "This criteria evaluates how well the engineer uses @lightdash/common's bar chart styling capabilities to implement a dynamic border radius calculation system. The evaluation focuses on proper handling of chart orientation, stacking modes, bar dimension calculations, and corner-specific radius application.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Bar width calculation",
      "description": "Correctly calculates bar width based on chart dimensions (width/height), number of data points, number of series, and stacking configuration. Should account for spacing and grouping in the calculation.",
      "max_score": 25
    },
    {
      "name": "Orientation-aware corners",
      "description": "Returns correct corner radius array based on orientation: vertical bars return [radius, radius, 0, 0] for top corners, horizontal bars return [0, radius, radius, 0] for right corners.",
      "max_score": 20
    },
    {
      "name": "Stack end detection",
      "description": "Implements logic to determine if a bar is at the stack end using the StackEndInfo parameter. Only stack-end bars should have rounded corners; non-stack-end bars should return [0, 0, 0, 0].",
      "max_score": 20
    },
    {
      "name": "Proportional radius formula",
      "description": "Uses a formula-based approach to calculate radius value proportional to bar width (e.g., radius = barWidth * constant). The constant should provide visual balance.",
      "max_score": 15
    },
    {
      "name": "Default dimensions handling",
      "description": "Properly handles optional chartWidth and chartHeight parameters, using sensible defaults (e.g., 500px) when not provided.",
      "max_score": 10
    },
    {
      "name": "Type conformance",
      "description": "Function signature matches the API specification exactly: accepts BarStyleConfig and optional StackEndInfo, returns [number, number, number, number] tuple.",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-lightdash--common

tile.json