Refactor/chart config custom color palettes #3062
lint-types.yml
on: pull_request
lint-typecheck-test
2m 49s
Annotations
10 errors and 1 warning
lint-typecheck-test:
app/charts/chart-config-ui-options.ts#L414
Argument of type '({ x: { componentId: string; } & { useAbbreviations?: boolean | undefined; } & { sorting?: { sortingType: "byDimensionLabel" | "byMeasure" | "byTotalSize" | "byAuto"; sortingOrder: "desc" | "asc"; } | undefined; }; y: { ...; } & ... 1 more ... & { ...; }; color: { ...; } | { ...; }; } & { ...; }) | { ...; } | ({ ......' is not assignable to parameter of type 'ArrayLike<{ componentId: string; } & { useAbbreviations?: boolean | undefined; }> | { [s: string]: { componentId: string; } & { useAbbreviations?: boolean | undefined; }; }'.
|
lint-typecheck-test:
app/charts/index.ts#L1621
Type '{ value: string | undefined; label: string | undefined; }[]' is not assignable to type 'DimensionValue[]'.
|
lint-typecheck-test:
app/charts/map/constants.ts#L33
Type '{ type: "categorical"; componentId: string; palette: string; colorMapping: { [k: string]: string; }; opacity: number; }' is not assignable to type '{ type: "categorical"; componentId: string; paletteId: string; colorMapping: { [x: string]: string; }; } & { useAbbreviations?: boolean | undefined; } & { opacity: number; }'.
|
lint-typecheck-test:
app/charts/map/constants.ts#L50
Type '{ type: "numerical"; componentId: string; palette: PaletteType; scaleType: "continuous"; interpolationType: "linear"; opacity: number; }' is not assignable to type '{ type: "numerical"; componentId: string; paletteId: "BrBG" | "PiYG" | "PRGn" | "PuOr" | "RdBu" | "RdYlBu" | "RdYlGn" | "blues" | "greens" | "greys" | "oranges" | "purples" | "reds"; } & ({ ...; } | { ...; }) & { ...; }'.
|
lint-typecheck-test:
app/charts/map/map-state.tsx#L277
Property 'palette' does not exist on type '{ type: "numerical"; componentId: string; paletteId: "BrBG" | "PiYG" | "PRGn" | "PuOr" | "RdBu" | "RdYlBu" | "RdYlGn" | "blues" | "greens" | "greys" | "oranges" | "purples" | "reds"; } & ({ ...; } | { ...; }) & { ...; }'. Did you mean 'paletteId'?
|
lint-typecheck-test:
app/charts/map/map-state.tsx#L368
Property 'palette' does not exist on type '{ type: "categorical"; componentId: string; paletteId: string; colorMapping: { [x: string]: string; }; } & { useAbbreviations?: boolean | undefined; } & { opacity: number; }'. Did you mean 'paletteId'?
|
lint-typecheck-test:
app/charts/map/map-state.tsx#L437
Property 'palette' does not exist on type '{ type: "numerical"; componentId: string; paletteId: "BrBG" | "PiYG" | "PRGn" | "PuOr" | "RdBu" | "RdYlBu" | "RdYlGn" | "blues" | "greens" | "greys" | "oranges" | "purples" | "reds"; } & ({ ...; } | { ...; }) & { ...; }'. Did you mean 'paletteId'?
|
lint-typecheck-test:
app/configurator/components/chart-controls/color-picker.tsx#L131
'color' is declared but its value is never read.
|
lint-typecheck-test:
app/configurator/components/chart-options-selector.tsx#L304
Property 'color' is missing in type '{ animation: string; x: string; y: string; segment: string; baseLayer: string; areaLayer: string; symbolLayer: string; }' but required in type 'Record<EncodingFieldType, string>'.
|
lint-typecheck-test:
app/configurator/components/filters.tsx#L330
Property 'colorMapping' does not exist on type '{ componentId: string; } & { useAbbreviations?: boolean | undefined; }'.
|
lint-typecheck-test
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|