Skip to content

feat: TET-904 add MetricsCard #222

feat: TET-904 add MetricsCard

feat: TET-904 add MetricsCard #222

Triggered via pull request September 3, 2024 12:59
Status Failure
Total duration 45s
Artifacts

build-n-test.yml

on: pull_request
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

5 errors and 1 warning
build (18.x): src/components/MetricsCard/MetricsCard.test.tsx#L19
Type '{ intent: string; iconPosition: "Top"; hasTrend: false; hasIcon: false; hasMoreIcon: false; }' is not assignable to type 'IntrinsicAttributes & { iconPosition?: IconPositionType | undefined; hasTrend?: boolean | undefined; hasIcon?: boolean | undefined; hasMoreIcon?: boolean | undefined; custom?: MetricsCardConfig | undefined; } & Omit<...> & MarginProps<...>'.
build (18.x): src/components/MetricsCard/stylesBuilder.ts#L2
Module '"./MetricsCard.styles"' declares 'IconPositionType' locally, but it is not exported.
build (18.x): src/components/MetricsCard/stylesBuilder.ts#L24
Element implicitly has an 'any' type because expression of type 'IconPositionType' can't be used to index type '{ Top: { flexDirection: "column"; }; Left: { flexDirection: "row"; }; }'.
build (18.x): src/docs-components/MetricsCardDocs.tsx#L61
Type '{ trend: TrendType; trendValue: string; metrics: string; label: string; intent: IntentType; iconPosition: IconPositionType; hasIcon: true; hasTrend: true; }' is not assignable to type 'IntrinsicAttributes & { iconPosition?: IconPositionType | undefined; hasTrend?: boolean | undefined; hasIcon?: boolean | undefined; hasMoreIcon?: boolean | undefined; custom?: MetricsCardConfig | undefined; } & Omit<...> & MarginProps<...>'.
build (18.x)
Process completed with exit code 2.
build (18.x)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/