Skip to content

feat(external-api): support Timeline tiles in dashboard GET/PUT round-trip #2226

Description

@alex-fedotyev

Currently Timeline tiles are not supported in the external dashboards API (packages/api/src/routers/external-api/v2/utils/dashboards.ts). When a Timeline tile is read via GET, the converter logs an error and falls back to a Line tile config, losing the user's intent.

Follow-up from #2190 (Timeline schema PR). To fix when the Timeline renderer lands:

  • Add a DisplayType.Timeline branch to convertToExternalTileChartConfig (both the raw-SQL and builder paths)
  • Add a corresponding timeline case to the external schema in packages/api/src/utils/zod.ts and packages/mcp/tools/dashboards/schemas.ts / packages/mcp/prompts/dashboards/content.ts
  • Add round-trip tests for Timeline tiles in the external-api test suite

Linked PRs: #2190 (schema), #2192 (renderer)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions