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

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

Version

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