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

{
  "context": "This evaluation assesses how effectively the engineer uses @lightdash/common's data formatting functions to format sales report data. The focus is on proper usage of formatDate, formatNumber, and formatItemValue functions to handle dates, currency, quantities, and percentages.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Date formatting",
      "description": "Uses formatDate or formatItemValue with appropriate date format configuration to convert ISO date strings into human-readable date strings (e.g., 'March 15, 2024')",
      "max_score": 25
    },
    {
      "name": "Currency formatting",
      "description": "Uses formatNumber or formatItemValue with currency format configuration to format revenue values with dollar sign and thousand separators (e.g., '$1,234.56')",
      "max_score": 25
    },
    {
      "name": "Number formatting",
      "description": "Uses formatNumber or formatItemValue with number format configuration to format quantity values with thousand separators (e.g., '1,234')",
      "max_score": 20
    },
    {
      "name": "Percentage formatting",
      "description": "Uses formatNumber or formatItemValue with percentage format configuration to convert decimal growth rates into percentage strings (e.g., 0.15 becomes '15%')",
      "max_score": 20
    },
    {
      "name": "Null handling",
      "description": "Properly handles null and undefined values using the package's formatting functions, ensuring they display as '-' or use the package's default null handling behavior",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-lightdash--common

tile.json