From dec7383f83da4770afb4c8ca2ace8a4fc4dbd468 Mon Sep 17 00:00:00 2001 From: pierrbt Date: Sun, 9 Nov 2025 16:19:51 +0100 Subject: [PATCH 1/2] feat: add map-insa to services I added a map in the student services. The map is made by ClubInfoInsaT. Co-Authored-By: Baptiste --- locales/en.json | 3 ++- locales/es.json | 3 ++- locales/fr.json | 3 ++- locales/it.json | 3 ++- src/constants/Urls.tsx | 7 +++++++ src/utils/Services.ts | 12 ++++++++++++ 6 files changed, 27 insertions(+), 4 deletions(-) diff --git a/locales/en.json b/locales/en.json index 49461d79..d67cf585 100644 --- a/locales/en.json +++ b/locales/en.json @@ -29,7 +29,8 @@ "washers": "Number of available washers", "dryers": "Number of available dryers", "schooling": "Easy access to all your documents and results.", - "sosinfra": "Report issues within a building" + "sosinfra": "Report issues within a building", + "map": "Find your way around INSA" }, "titles": { "yearlyPlanning": "Yearly planning" diff --git a/locales/es.json b/locales/es.json index 6d820270..fd634874 100644 --- a/locales/es.json +++ b/locales/es.json @@ -25,7 +25,8 @@ "ent": "Mira tus notas", "equipment": "Reserva un BBQ u otro material", "washers": "Número de lavadoras disponibles", - "dryers": "Número de secadoras disponibles" + "dryers": "Número de secadoras disponibles", + "map": "¡Ubícate en el INSA!" }, "mascotDialog": { "title": "Un poco perdido?", diff --git a/locales/fr.json b/locales/fr.json index 1e8a2518..5420b9e7 100644 --- a/locales/fr.json +++ b/locales/fr.json @@ -29,7 +29,8 @@ "washers": "Nombre de lave-Linges disponibles", "dryers": "Nombre de sèche-Linges disponibles", "schooling": "Accéde facilement à tous tes documents et résultats.", - "sosinfra": "Signale un problème dans un bâtiment" + "sosinfra": "Signale un problème dans un bâtiment", + "map": "Repère toi dans l'INSA" }, "titles": { "yearlyPlanning": "Planning de l'année" diff --git a/locales/it.json b/locales/it.json index 0ae5d8e2..8713a24a 100644 --- a/locales/it.json +++ b/locales/it.json @@ -25,7 +25,8 @@ "ent": "Trova i tuoi voti", "equipment": "Prenota un BBQ o altro materiale", "washers": "Numero di lavatrici disponibili", - "dryers": "Numero di asciugatrici disponibili" + "dryers": "Numero di asciugatrici disponibili", + "map": "Orientati all'INSA" }, "mascotDialog": { "title": "Un po' perso?", diff --git a/src/constants/Urls.tsx b/src/constants/Urls.tsx index 1edc0e4d..e374d233 100644 --- a/src/constants/Urls.tsx +++ b/src/constants/Urls.tsx @@ -81,6 +81,12 @@ export default { usefulLinks: APP_IMAGES_ENDPOINT + 'UsefulLinks.png', schooling: APP_IMAGES_ENDPOINT + 'Schooling.png', sosinfra: APP_IMAGES_ENDPOINT + 'SOSInfra.png', + + map: "https://sh.veagle.fr/api/shares/map-insat/files/a9181c31-f72e-40f0-a693-26fa5e4067ed?download=false", + // !!!!! WARNING FOR REVIEWER !!!!!!!! + // TODO : upload Map.png to the student server + // map: APP_IMAGES_ENDPOINT + 'Map.png', + // Download the png at https://sh.veagle.fr/s/map-insat }, websites: { amicale: AMICALE_SERVER, @@ -96,6 +102,7 @@ export default { 'https://wiki.etud.insa-toulouse.fr/books/quotidien/page/planning-de-lannee-en-cours', schooling: 'https://mascolarite.insa-toulouse.fr/', sosInfra: 'http://sosinfra.insa-toulouse.fr/', + map: STUDENT_SERVER + '~map/', }, about: { appstore: 'https://apps.apple.com/us/app/campus-amicale-insat/id1477722148', diff --git a/src/utils/Services.ts b/src/utils/Services.ts index 2b01dcb2..00d1ba9b 100644 --- a/src/utils/Services.ts +++ b/src/utils/Services.ts @@ -63,6 +63,7 @@ export const SERVICES_KEY = { DRYERS: 'dryers', SCHOOLING: 'schooling', SOS_INFRA: 'sosinfra', + MAP: 'map', }; export const SERVICES_CATEGORIES_KEY = { @@ -221,6 +222,17 @@ export function getStudentServices( title: "Planning de l'année", }), }, + { + key: SERVICES_KEY.MAP, + title: "Map INSA", + subtitle: i18n.t("screens.services.descriptions.map"), + image: Urls.images.map, + onPress: () => + onPress(MainRoutes.Website, { + host: Urls.websites.map, + title: "Map INSA", + }) + }, ]; return getStrippedServicesList(studentsDataset, excludedItems); } From 776403b5f3013fd202289ee5ad6bdbef68a81f7f Mon Sep 17 00:00:00 2001 From: pierrbt Date: Thu, 20 Nov 2025 17:04:20 +0100 Subject: [PATCH 2/2] chore: run lint-fix --- src/constants/Urls.tsx | 6 +++--- src/utils/Services.ts | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/constants/Urls.tsx b/src/constants/Urls.tsx index e374d233..d16aaf70 100644 --- a/src/constants/Urls.tsx +++ b/src/constants/Urls.tsx @@ -81,9 +81,9 @@ export default { usefulLinks: APP_IMAGES_ENDPOINT + 'UsefulLinks.png', schooling: APP_IMAGES_ENDPOINT + 'Schooling.png', sosinfra: APP_IMAGES_ENDPOINT + 'SOSInfra.png', - - map: "https://sh.veagle.fr/api/shares/map-insat/files/a9181c31-f72e-40f0-a693-26fa5e4067ed?download=false", - // !!!!! WARNING FOR REVIEWER !!!!!!!! + + map: 'https://sh.veagle.fr/api/shares/map-insat/files/a9181c31-f72e-40f0-a693-26fa5e4067ed?download=false', + // !!!!! WARNING FOR REVIEWER !!!!!!!! // TODO : upload Map.png to the student server // map: APP_IMAGES_ENDPOINT + 'Map.png', // Download the png at https://sh.veagle.fr/s/map-insat diff --git a/src/utils/Services.ts b/src/utils/Services.ts index 00d1ba9b..434ea59b 100644 --- a/src/utils/Services.ts +++ b/src/utils/Services.ts @@ -224,14 +224,14 @@ export function getStudentServices( }, { key: SERVICES_KEY.MAP, - title: "Map INSA", - subtitle: i18n.t("screens.services.descriptions.map"), + title: 'Map INSA', + subtitle: i18n.t('screens.services.descriptions.map'), image: Urls.images.map, onPress: () => onPress(MainRoutes.Website, { host: Urls.websites.map, - title: "Map INSA", - }) + title: 'Map INSA', + }), }, ]; return getStrippedServicesList(studentsDataset, excludedItems);