Update dossier display #5018
Annotations
12 errors and 11 warnings
Unit Tests
The process '/usr/local/bin/yarn' failed with exit code 1
|
Unit Tests
🚨 Coverage run failed!
|
Compile:
src/dossiers/application/DossiersService.test.ts#L1
Argument of type '{ id: string; description: string; isApproximateDate: boolean; yearRangeFrom: number; yearRangeTo: number; relatedKings: number[]; provenance: { readonly name: "Assyria"; readonly abbreviation: "Assa"; readonly parent: null; }; script: { ...; }; references: Reference[]; }' is not assignable to parameter of type 'DossierRecordDto'.
|
Compile:
src/dossiers/domain/DossierRecord.test.ts#L1
Argument of type '{ id: string; description: string; isApproximateDate: boolean; yearRangeFrom: number; yearRangeTo: number; relatedKings: number[]; provenance: { readonly name: "Assyria"; readonly abbreviation: "Assa"; readonly parent: null; }; script: { ...; }; references: ReferenceType[]; }' is not assignable to parameter of type 'DossierRecordDto'.
|
Compile:
src/dossiers/infrastructure/DossiersRepository.test.ts#L1
Argument of type '{ id: string; description: string; isApproximateDate: boolean; yearRangeFrom: number; yearRangeTo: number; relatedKings: number[]; provenance: { readonly name: "Assyria"; readonly abbreviation: "Assa"; readonly parent: null; }; script: { ...; }; references: Reference[]; }' is not assignable to parameter of type 'DossierRecordDto'.
|
Compile:
src/dossiers/infrastructure/DossiersRepository.test.ts#L1
Argument of type '{ id: string; description: string; isApproximateDate: boolean; yearRangeFrom: number; yearRangeTo: number; relatedKings: number[]; provenance: { readonly name: "Assyria"; readonly abbreviation: "Assa"; readonly parent: null; }; script: { ...; }; references: Reference[]; }' is not assignable to parameter of type 'DossierRecordDto'.
|
Compile:
src/dossiers/ui/DossierDisplay.test.tsx#L1
Type '{ readonly name: "Neo-Assyrian"; readonly abbreviation: "NA"; readonly description: "(ca. 1000–609 BCE)"; readonly displayName: null; readonly parent: null; }' is not assignable to type 'string'.
|
Compile:
src/dossiers/ui/DossierDisplay.test.tsx#L1
Type '{ readonly name: "None"; readonly displayName: "-"; }' is not assignable to type 'string'.
|
Compile:
src/dossiers/ui/DossierDisplay.test.tsx#L1
Argument of type '{ id: string; description?: string | undefined; isApproximateDate: boolean; yearRangeFrom?: number | undefined; yearRangeTo?: number | undefined; relatedKings: number[]; provenance?: Provenance | undefined; script?: Script | undefined; references: Reference[]; [immerable]: boolean; }' is not assignable to parameter of type 'DossierRecordDto'.
|
Compile:
src/fragmentarium/domain/Fragment.test.ts#L1
Property 'dossiers' is missing in type '{ number: string; accession: string; publication: string; joins: { museumNumber: string; isChecked: true; date: string; joinedBy: string; note: string; legacyData: string; isInFragmentarium: true; isEnvelope: true; }[][]; ... 19 more ...; authorizedScopes: string[]; }' but required in type 'FragmentProps'.
|
Compile:
src/fragmentarium/ui/fragment/CuneiformFragment.test.tsx#L1
Property 'dossiersService' is missing in type '{ fragment: Fragment; fragmentService: Mocked<FragmentService>; fragmentSearchService: Mocked<FragmentSearchService>; wordService: Mocked<...>; findspotService: Mocked<...>; afoRegisterService: Mocked<...>; activeLine: string; }' but required in type 'ControllerProps'.
|
Compile:
src/fragmentarium/ui/fragment/FragmentView.test.tsx#L1
Property 'dossiersService' is missing in type '{ number: string; folioName: string | null; folioNumber: string | null; tab: string | null; fragmentService: Mocked<FragmentService>; fragmentSearchService: Mocked<...>; ... 4 more ...; session: any; }' but required in type 'Omit<Props, "fragment">'.
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Lint:
src/about/ui/about.test.tsx#L12
Unexpected any. Specify a different type
|
Lint:
src/auth/react-auth0-spa.tsx#L76
React Hook useEffect has missing dependencies: 'initOptions', 'onRedirectCallback', and 'returnTo'. Either include them or remove the dependency array. If 'onRedirectCallback' changes too often, find the parent component that defines it and wrap that definition in useCallback
|
Lint:
src/bibliography/domain/BibliographyEntry.ts#L23
Unexpected any. Specify a different type
|
Lint:
src/common/HtmlParsing.tsx#L3
Argument 'inputElements' should be typed with a non-any type
|
Lint:
src/common/HtmlParsing.tsx#L3
Unexpected any. Specify a different type
|
Lint:
src/common/List.tsx#L34
'value' is missing in props validation
|
Lint:
src/common/List.tsx#L35
'children' is missing in props validation
|
Lint:
src/common/List.tsx#L36
'onChange' is missing in props validation
|
Lint:
src/common/List.tsx#L37
'defaultValue' is missing in props validation
|
Lint:
src/common/List.tsx#L71
'value.map' is missing in props validation
|
Loading