Skip to content

Commit 4bd8607

Browse files
author
Gabriel Tira
committed
Added contain_forbidden_parts and vehicle_not_fully_in_frame compliances
1 parent cee21f5 commit 4bd8607

File tree

3 files changed

+32
-0
lines changed

3 files changed

+32
-0
lines changed

packages/common/src/i18n/translations/image.ts

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,4 +430,32 @@ export const complianceIssueLabels: Record<ComplianceIssue, ImageLabels> = {
430430
nl: 'De foto is in portretstand, neem deze alstublieft in landschapmodus',
431431
},
432432
},
433+
[ComplianceIssue.CONTAIN_FORBIDDEN_PARTS]: {
434+
title: {
435+
en: 'Contain forbidden parts',
436+
fr: 'Contient des parties interdites',
437+
de: 'Enthält verbotene Teile',
438+
nl: 'Bevat verboden onderdelen',
439+
},
440+
description: {
441+
en: 'Make sure that the image does not contain any forbidden parts.',
442+
fr: "Assurez-vous que l'image ne contienne pas de parties interdites.",
443+
de: 'Vergewissern Sie sich, dass das Bild keine verbotenen Teile enthält.',
444+
nl: 'Zorg ervoor dat de afbeelding geen verboden onderdelen bevat.',
445+
},
446+
},
447+
[ComplianceIssue.VEHICLE_NOT_FULLY_IN_FRAME]: {
448+
title: {
449+
en: 'Vehicle not fully in frame',
450+
fr: 'Véhicule pas entièrement dans le cadre',
451+
de: 'Fahrzeug nicht vollständig im Bild',
452+
nl: 'Voertuig niet volledig in beeld',
453+
},
454+
description: {
455+
en: 'Make sure that the entire vehicle is visible in the photo.',
456+
fr: "Assurez-vous que l'intégralité du véhicule soit visible sur la photo.",
457+
de: 'Stellen Sie sicher, dass das gesamte Fahrzeug auf dem Foto sichtbar ist.',
458+
nl: 'Zorg ervoor dat het hele voertuig op de foto zichtbaar is.',
459+
},
460+
},
433461
};

packages/network/test/api/image/mappers.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ const EXPECTED_DEFAULT_COMPLIANCE_ISSUES = [
2929
];
3030

3131
const EXPECTED_COMPLIANCE_ISSUES_ORDER = [
32+
ComplianceIssue.CONTAIN_FORBIDDEN_PARTS,
33+
ComplianceIssue.VEHICLE_NOT_FULLY_IN_FRAME,
3234
ComplianceIssue.PORTRAIT_IMAGE,
3335
ComplianceIssue.NO_VEHICLE,
3436
ComplianceIssue.BLURRINESS,

packages/types/src/state/image.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,8 @@ export enum ComplianceIssue {
189189
INTERIOR_NOT_SUPPORTED = 'interior_not_supported',
190190
MISSING = 'missing',
191191
LOW_QUALITY = 'low_quality',
192+
CONTAIN_FORBIDDEN_PARTS = 'contain_forbidden_parts',
193+
VEHICLE_NOT_FULLY_IN_FRAME = 'vehicle_not_fully_in_frame',
192194

193195
// Custom issue(s)
194196
PORTRAIT_IMAGE = 'portrait_image',

0 commit comments

Comments
 (0)