feat(app): add ODD modal for incompatible modules #37055
Annotations
14 errors and 11 warnings
lint js:
app/src/organisms/IncompatibleModuleModal/IncompatibleModuleTakeover.tsx#L3
'useTranslation' is defined but never used
|
lint js:
app/src/organisms/IncompatibleModuleModal/IncompatibleModuleTakeover.tsx#L3
'Trans' is defined but never used
|
lint js:
app/src/organisms/IncompatibleModuleModal/IncompatibleModuleTakeover.tsx#L4
'capitalize' is defined but never used
|
lint js
Process completed with exit code 2.
|
typechecks:
app/src/organisms/IncompatibleModuleModal/hooks/__tests__/useIncompatibleModulesAttached.test.tsx#L28
Argument of type 'Response<Modules>' is not assignable to parameter of type 'UseQueryResult<Modules>'.
|
typechecks:
app/src/organisms/IncompatibleModuleModal/hooks/__tests__/useIncompatibleModulesAttached.test.tsx#L28
Conversion of type '{ data: ({ name: string; displayName: string; moduleModel: string; port: string; usbPort: { port: number; hub: boolean; portGroup: string; path: string; }; serial: string; model: string; revision: string; fwVersion: string; hasAvailableUpdate: boolean; status: string; data: { lid: string; lidTarget: number; lidTemp: number; currentTemp: number; targetTemp: number; holdTime: number; rampRate: null; currentCycleIndex: null; totalCycleCount: null; currentStepIndex: null; totalStepCount: null; labwareLatchStatus?: undefined; speedStatus?: undefined; temperatureStatus?: undefined; currentSpeed?: undefined; targetSpeed?: undefined; errorDetails?: undefined; engaged?: undefined; height?: undefined; }; } | { name: string; displayName: string; moduleModel: string; port: string; usbPort: { hub: boolean; portGroup: string; path: string; port: number; }; serial: string; model: string; revision: string; fwVersion: string; hasAvailableUpdate: boolean; status: string; data: { labwareLatchStatus: string; speedStatus: string; temperatureStatus: string; currentSpeed: number; currentTemp: number; targetSpeed: null; targetTemp: null; errorDetails: null; lid?: undefined; lidTarget?: undefined; lidTemp?: undefined; holdTime?: undefined; rampRate?: undefined; currentCycleIndex?: undefined; totalCycleCount?: undefined; currentStepIndex?: undefined; totalStepCount?: undefined; engaged?: undefined; height?: undefined; }; } | { name: string; displayName: string; moduleModel: string; port: string; usbPort: { hub: boolean; portGroup: string; path: string; port: number; }; serial: string; model: string; revision: string; fwVersion: string; hasAvailableUpdate: boolean; status: string; data: { currentTemp: number; targetTemp: number; lid?: undefined; lidTarget?: undefined; lidTemp?: undefined; holdTime?: undefined; rampRate?: undefined; currentCycleIndex?: undefined; totalCycleCount?: undefined; currentStepIndex?: undefined; totalStepCount?: undefined; labwareLatchStatus?: undefined; speedStatus?: undefined; temperatureStatus?: undefined; currentSpeed?: undefined; targetSpeed?: undefined; errorDetails?: undefined; engaged?: undefined; height?: undefined; }; } | { name: string; displayName: string; moduleModel: string; port: string; usbPort: { port: number; hub: boolean; portGroup: string; path: string; }; serial: string; model: string; revision: string; fwVersion: string; hasAvailableUpdate: boolean; status: string; data: { engaged: boolean; height: number; lid?: undefined; lidTarget?: undefined; lidTemp?: undefined; currentTemp?: undefined; targetTemp?: undefined; holdTime?: undefined; rampRate?: undefined; currentCycleIndex?: undefined; totalCycleCount?: undefined; currentStepIndex?: undefined; totalStepCount?: undefined; labwareLatchStatus?: undefined; speedStatus?: undefined; temperatureStatus?: undefined; currentSpeed?: undefined; targetSpeed?: undefined; errorDetails?: undefined; }; })[]; }' to type 'Response<Modules>' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
|
typechecks:
app/src/organisms/IncompatibleModuleModal/hooks/__tests__/useIncompatibleModulesAttached.test.tsx#L31
Type 'FunctionComponent<{ children: ReactNode; } & HostConfig>' is not assignable to type 'JSXElementConstructor<{ children: ReactNode; }> | undefined'.
|
typechecks:
app/src/organisms/IncompatibleModuleModal/hooks/__tests__/useIncompatibleModulesAttached.test.tsx#L35
Argument of type 'Response<Modules>' is not assignable to parameter of type 'UseQueryResult<Modules>'.
|
typechecks:
app/src/organisms/IncompatibleModuleModal/hooks/__tests__/useIncompatibleModulesAttached.test.tsx#L35
Conversion of type '{ data: ({ id: string; serialNumber: string; firmwareVersion: string; hardwareRevision: string; hasAvailableUpdate: boolean; moduleType: string; moduleModel: string; compatibleWithRobot: boolean; data: { status: string; currentTemperature: number; targetTemperature: number; lidStatus: string; lidTemperature: number; lidTargetTemperature: number; holdTime: number; labwareLatchStatus?: undefined; speedStatus?: undefined; currentSpeed?: undefined; temperatureStatus?: undefined; targetSpeed?: undefined; engaged?: undefined; height?: undefined; }; usbPort: { port: number; path: string; hub: boolean; portGroup: string; }; } | { id: string; serialNumber: string; firmwareVersion: string; hardwareRevision: string; hasAvailableUpdate: boolean; moduleType: string; moduleModel: string; compatibleWithRobot: boolean; data: { status: string; labwareLatchStatus: string; speedStatus: string; currentSpeed: number; temperatureStatus: string; currentTemperature: number; targetSpeed: null; targetTemperature?: undefined; lidStatus?: undefined; lidTemperature?: undefined; lidTargetTemperature?: undefined; holdTime?: undefined; engaged?: undefined; height?: undefined; }; usbPort: { port: number; path: string; hub: boolean; portGroup: string; }; } | { id: string; serialNumber: string; firmwareVersion: string; hardwareRevision: string; hasAvailableUpdate: boolean; moduleType: string; moduleModel: string; compatibleWithRobot: boolean; data: { status: string; currentTemperature: number; targetTemperature: number; lidStatus?: undefined; lidTemperature?: undefined; lidTargetTemperature?: undefined; holdTime?: undefined; labwareLatchStatus?: undefined; speedStatus?: undefined; currentSpeed?: undefined; temperatureStatus?: undefined; targetSpeed?: undefined; engaged?: undefined; height?: undefined; }; usbPort: { port: number; path: string; hub: boolean; portGroup: string; }; } | { id: string; serialNumber: string; firmwareVersion: string; hardwareRevision: string; hasAvailableUpdate: boolean; moduleType: string; moduleModel: string; compatibleWithRobot: boolean; data: { status: string; engaged: boolean; height: number; currentTemperature?: undefined; targetTemperature?: undefined; lidStatus?: undefined; lidTemperature?: undefined; lidTargetTemperature?: undefined; holdTime?: undefined; labwareLatchStatus?: undefined; speedStatus?: undefined; currentSpeed?: undefined; temperatureStatus?: undefined; targetSpeed?: undefined; }; usbPort: { port: number; path: string; hub: boolean; portGroup: string; }; })[]; }' to type 'Response<Modules>' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
|
typechecks:
app/src/organisms/IncompatibleModuleModal/hooks/__tests__/useIncompatibleModulesAttached.test.tsx#L38
Type 'FunctionComponent<{ children: ReactNode; } & HostConfig>' is not assignable to type 'JSXElementConstructor<{ children: ReactNode; }> | undefined'.
|
typechecks:
app/src/organisms/IncompatibleModuleModal/hooks/__tests__/useIncompatibleModulesAttached.test.tsx#L45
Argument of type 'Response<Modules>' is not assignable to parameter of type 'UseQueryResult<Modules>'.
|
typechecks:
app/src/organisms/IncompatibleModuleModal/hooks/__tests__/useIncompatibleModulesAttached.test.tsx#L45
Conversion of type '{ data: ({ id: string; serialNumber: string; firmwareVersion: string; hardwareRevision: string; hasAvailableUpdate: boolean; moduleType: string; moduleModel: string; data: { status: string; currentTemperature: number; targetTemperature: number; lidStatus: string; lidTemperature: number; lidTargetTemperature: number; holdTime: number; labwareLatchStatus?: undefined; speedStatus?: undefined; currentSpeed?: undefined; temperatureStatus?: undefined; targetSpeed?: undefined; engaged?: undefined; height?: undefined; }; usbPort: { port: number; path: string; hub: boolean; portGroup: string; }; } | { id: string; serialNumber: string; firmwareVersion: string; hardwareRevision: string; hasAvailableUpdate: boolean; moduleType: string; moduleModel: string; data: { status: string; labwareLatchStatus: string; speedStatus: string; currentSpeed: number; temperatureStatus: string; currentTemperature: number; targetSpeed: null; targetTemperature?: undefined; lidStatus?: undefined; lidTemperature?: undefined; lidTargetTemperature?: undefined; holdTime?: undefined; engaged?: undefined; height?: undefined; }; usbPort: { port: number; path: string; hub: boolean; portGroup: string; }; } | { id: string; serialNumber: string; firmwareVersion: string; hardwareRevision: string; hasAvailableUpdate: boolean; moduleType: string; moduleModel: string; data: { status: string; currentTemperature: number; targetTemperature: number; lidStatus?: undefined; lidTemperature?: undefined; lidTargetTemperature?: undefined; holdTime?: undefined; labwareLatchStatus?: undefined; speedStatus?: undefined; currentSpeed?: undefined; temperatureStatus?: undefined; targetSpeed?: undefined; engaged?: undefined; height?: undefined; }; usbPort: { port: number; path: string; hub: boolean; portGroup: string; }; } | { id: string; serialNumber: string; firmwareVersion: string; hardwareRevision: string; hasAvailableUpdate: boolean; moduleType: string; moduleModel: string; data: { status: string; engaged: boolean; height: number; currentTemperature?: undefined; targetTemperature?: undefined; lidStatus?: undefined; lidTemperature?: undefined; lidTargetTemperature?: undefined; holdTime?: undefined; labwareLatchStatus?: undefined; speedStatus?: undefined; currentSpeed?: undefined; temperatureStatus?: undefined; targetSpeed?: undefined; }; usbPort: { port: number; path: string; hub: boolean; portGroup: string; }; })[]; }' to type 'Response<Modules>' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
|
typechecks:
app/src/organisms/IncompatibleModuleModal/hooks/__tests__/useIncompatibleModulesAttached.test.tsx#L48
Type 'FunctionComponent<{ children: ReactNode; } & HostConfig>' is not assignable to type 'JSXElementConstructor<{ children: ReactNode; }> | undefined'.
|
typechecks:
app/src/organisms/IncompatibleModuleModal/hooks/__tests__/useIncompatibleModulesAttached.test.tsx#L52
Argument of type 'Response<Modules>' is not assignable to parameter of type 'UseQueryResult<Modules>'.
|
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-node@v3, actions/github-script@v6, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
lint js:
api-client/src/calibration/types.ts#L1
All imports in the declaration are only used as types. Use `import type`
|
lint js:
api-client/src/modules/api-types.ts#L1
All imports in the declaration are only used as types. Use `import type`
|
lint js:
api-client/src/modules/types.ts#L8
All imports in the declaration are only used as types. Use `import type`
|
lint js:
api-client/src/modules/types.ts#L15
All imports in the declaration are only used as types. Use `import type`
|
lint js:
api-client/src/pipettes/types.ts#L62
A record is preferred over an index signature
|
lint js:
api-client/src/pipettes/types.ts#L69
A record is preferred over an index signature
|
lint js:
api-client/src/pipettes/types.ts#L77
A record is preferred over an index signature
|
lint js:
api-client/src/pipettes/types.ts#L81
A record is preferred over an index signature
|
lint js:
api-client/src/pipettes/types.ts#L90
A record is preferred over an index signature
|
lint js:
api-client/src/protocols/__tests__/utils.test.ts#L17
All imports in the declaration are only used as types. Use `import type`
|
Loading