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

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

Version

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