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

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

Version

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