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

{
  "context": "This criteria evaluates how well the engineer uses @lightdash/common's period-over-period comparison and tooltip formatting capabilities. The focus is on leveraging the package's built-in support for adaptive multi-axis tooltip systems with granularity-aware comparisons, as described in the advanced functionalities section.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Tooltip formatter usage",
      "description": "Uses appropriate tooltip formatter from @lightdash/common (e.g., getTooltipFormatter, CartesianChartDataModel.getTooltipFormatter, or related tooltip formatting utilities) rather than implementing tooltip formatting from scratch",
      "max_score": 25
    },
    {
      "name": "Granularity types",
      "description": "Uses the package's time granularity type definitions (e.g., TimeFrames enum or similar types for DAY, WEEK, MONTH, QUARTER, YEAR) instead of custom string literals or enums",
      "max_score": 15
    },
    {
      "name": "Period comparison structure",
      "description": "Correctly structures data to support period-over-period comparison using the package's expected data format (e.g., proper use of comparison fields in tooltip data, ItemsMap for field formatting, or similar structures)",
      "max_score": 20
    },
    {
      "name": "Percentage calculation",
      "description": "Implements percentage change calculation between current and comparison periods, handling edge cases (zero values, missing data, division by zero) appropriately",
      "max_score": 15
    },
    {
      "name": "Value formatting",
      "description": "Uses the package's formatting utilities (e.g., formatItemValue, Format type definitions, or related formatters) to format numeric values and percentages rather than implementing custom formatters",
      "max_score": 15
    },
    {
      "name": "Tooltip content generation",
      "description": "Generates tooltip content that displays current period value, comparison period value, percentage change with appropriate signs (+/-), and period labels based on granularity",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-lightdash--common

tile.json