CtrlK
CommunityDocumentationLog inGet started
Tessl Logo

tessl/npm-lightdash--common

tessl install tessl/npm-lightdash--common@0.2231.5

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

Agent Success

Agent success rate when using this tile

72%

Improvement

Agent success rate improvement when using this tile compared to baseline

1.09x

Baseline

Agent success rate without this tile

66%

rubric.jsonevals/scenario-12/

{
  "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
    }
  ]
}

Version

Workspace
tessl
Visibility
Public
Created
Last updated
Describes
npmpkg:npm/@lightdash/common@0.2231.x
tile.json