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

{
  "context": "This criteria evaluates how well the engineer uses the @lightdash/common package to implement tooltip formatting for charts. The focus is on using package-provided utilities for value formatting, tooltip generation, and field-specific format configurations rather than implementing these features from scratch.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses formatItemValue",
      "description": "Uses the formatItemValue utility from @lightdash/common to format values according to field configurations instead of manually implementing number formatting",
      "max_score": 25
    },
    {
      "name": "Uses ItemsMap structure",
      "description": "Properly constructs and uses the ItemsMap type from @lightdash/common to map field names to their format configurations",
      "max_score": 15
    },
    {
      "name": "Uses format types",
      "description": "Uses the appropriate format type definitions from @lightdash/common (Format, NumberFormat, CurrencyFormat, PercentageFormat) to configure field formatting",
      "max_score": 20
    },
    {
      "name": "Handles null values",
      "description": "Uses @lightdash/common utilities or patterns for handling null/undefined values in tooltip display (e.g., checking for null before formatting, using placeholder values)",
      "max_score": 15
    },
    {
      "name": "Generates HTML output",
      "description": "Properly formats tooltip output as HTML string suitable for chart libraries, following patterns used in @lightdash/common's tooltip formatters",
      "max_score": 10
    },
    {
      "name": "Uses field identification",
      "description": "Uses @lightdash/common utilities like getItemId or field identification patterns to match series names to ItemsMap entries for format lookup",
      "max_score": 15
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-lightdash--common

tile.json