From 5a463819fb93c89c948a767d82835cf6cb59042d Mon Sep 17 00:00:00 2001 From: David LY <153214527+dlymonkai@users.noreply.github.com> Date: Wed, 9 Oct 2024 14:49:58 +0200 Subject: [PATCH] Added Penny Test and Card Keys Overlays/Sights (#854) --- .../VehicleTypeSelectionPage.tsx | 2 -- packages/sights/research/data/all/all.json | 12 ++++++++++-- .../research/data/all/overlays/all-8jdq7f5m.svg | 1 + .../research/data/all/overlays/all-mdwq0pl4.svg | 1 + .../sights/research/data/all/overlays/empty.svg | 1 - packages/sights/research/data/labels.json | 14 ++++++++++++++ 6 files changed, 26 insertions(+), 5 deletions(-) create mode 100644 packages/sights/research/data/all/overlays/all-8jdq7f5m.svg create mode 100644 packages/sights/research/data/all/overlays/all-mdwq0pl4.svg delete mode 100644 packages/sights/research/data/all/overlays/empty.svg diff --git a/apps/demo-app/src/pages/VehicleTypeSelectionPage/VehicleTypeSelectionPage.tsx b/apps/demo-app/src/pages/VehicleTypeSelectionPage/VehicleTypeSelectionPage.tsx index f0bb4fc60..90b2e8414 100644 --- a/apps/demo-app/src/pages/VehicleTypeSelectionPage/VehicleTypeSelectionPage.tsx +++ b/apps/demo-app/src/pages/VehicleTypeSelectionPage/VehicleTypeSelectionPage.tsx @@ -2,7 +2,6 @@ import { useTranslation } from 'react-i18next'; import { Navigate } from 'react-router-dom'; import { VehicleTypeSelection } from '@monkvision/common-ui-web'; import { useMonkAppState } from '@monkvision/common'; -import { VehicleType } from '@monkvision/types'; import { Page } from '../pages'; export function VehicleTypeSelectionPage() { @@ -21,7 +20,6 @@ export function VehicleTypeSelectionPage() { authToken={authToken ?? ''} apiDomain={config.apiDomain} thumbnailDomain={config.thumbnailDomain} - availableVehicleTypes={[VehicleType.HGV]} // TODO : Remove this line /> ); } diff --git a/packages/sights/research/data/all/all.json b/packages/sights/research/data/all/all.json index ae86281dc..7f0b745a3 100644 --- a/packages/sights/research/data/all/all.json +++ b/packages/sights/research/data/all/all.json @@ -204,8 +204,16 @@ "all-mdwq0pl4": { "id": "all-mdwq0pl4", "category": "misc", - "label": "keys", - "overlay": "empty.svg", + "label": "card-keys", + "overlay": "all-mdwq0pl4.svg", + "vehicle": "all", + "tasks": ["damage_detection"] + }, + "all-8jdq7f5m": { + "id": "all-8jdq7f5m", + "category": "misc", + "label": "penny-test", + "overlay": "all-8jdq7f5m.svg", "vehicle": "all", "tasks": ["damage_detection"] } diff --git a/packages/sights/research/data/all/overlays/all-8jdq7f5m.svg b/packages/sights/research/data/all/overlays/all-8jdq7f5m.svg new file mode 100644 index 000000000..19f7a09e5 --- /dev/null +++ b/packages/sights/research/data/all/overlays/all-8jdq7f5m.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/packages/sights/research/data/all/overlays/all-mdwq0pl4.svg b/packages/sights/research/data/all/overlays/all-mdwq0pl4.svg new file mode 100644 index 000000000..aadd00276 --- /dev/null +++ b/packages/sights/research/data/all/overlays/all-mdwq0pl4.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/packages/sights/research/data/all/overlays/empty.svg b/packages/sights/research/data/all/overlays/empty.svg deleted file mode 100644 index 34bc6c036..000000000 --- a/packages/sights/research/data/all/overlays/empty.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/sights/research/data/labels.json b/packages/sights/research/data/labels.json index acd4a0d56..971a6ab1f 100644 --- a/packages/sights/research/data/labels.json +++ b/packages/sights/research/data/labels.json @@ -579,5 +579,19 @@ "fr": "Clés", "de": "Tasten", "nl": "Sleutels" + }, + "card-keys": { + "key": "card-keys", + "en": "Card Keys", + "fr": "Cartes-clés", + "de": "Kartenschlüssel", + "nl": "Kaartsleutels" + }, + "penny-test": { + "key": "penny-test", + "en": "Penny Test", + "fr": "Test de Penny", + "de": "Penny-Test", + "nl": "Penny Test" } }