From fea2799e4aa934009de5ec404840108b0db878e5 Mon Sep 17 00:00:00 2001 From: Alexander Timmermann <alexander.timmermann@holi.social> Date: Mon, 31 Mar 2025 15:39:59 +0200 Subject: [PATCH] feat(tracking): add text hint about privacy policy to tracking consent modal Refs: HOLI-11063 --- .../TrackingConsentModal/ManageOptionsContent.tsx | 15 ++++++++++++++- core/i18n/locales/de.json | 3 ++- core/i18n/locales/en.json | 1 + core/screens/userprofile/TrackingSettings.tsx | 12 ++++++++++++ 4 files changed, 29 insertions(+), 2 deletions(-) diff --git a/core/components/TrackingConsentModal/ManageOptionsContent.tsx b/core/components/TrackingConsentModal/ManageOptionsContent.tsx index e9c115fe36..21ebca5522 100644 --- a/core/components/TrackingConsentModal/ManageOptionsContent.tsx +++ b/core/components/TrackingConsentModal/ManageOptionsContent.tsx @@ -1,11 +1,12 @@ import React from 'react' -import { useTranslation } from 'react-i18next' +import { Trans, useTranslation } from 'react-i18next' import { StyleSheet, View } from 'react-native' import OptionSection from '@holi/core/components/OptionSection' import { HoliGap } from '@holi/ui/components/atoms/HoliGap' import { type HoliTheme, useTheme } from '@holi/ui/styles/theme' import { Text } from 'holi-bricks/components/text' +import { HoliTextLink } from '@holi/core/navigation/components/HoliTextLink' interface Props { allowPersonalization: boolean @@ -64,6 +65,18 @@ const ManageOptionsContent = ({ <HoliGap size="m" /> + <Text size="md"> + <Trans t={t} i18nKey="tracking.consentModal.manageOptions.privacyStatement"> + <HoliTextLink + href="/profile/settings/legalDocuments/document?type=privacyPolicy" + label={t('profile.settings.legalDocuments.privacyPolicy')} + size="md" + /> + </Trans> + </Text> + + <HoliGap size="m" /> + <Text size="md">{t('tracking.consentModal.manageOptions.note')}</Text> </> ) diff --git a/core/i18n/locales/de.json b/core/i18n/locales/de.json index 424d5e8cf1..065f49577b 100644 --- a/core/i18n/locales/de.json +++ b/core/i18n/locales/de.json @@ -1556,7 +1556,7 @@ "tracking.consentModal.general.button.acceptAll": "Gesamte Verarbeitung akzeptieren", "tracking.consentModal.general.button.denyAll": "Alle ablehnen", "tracking.consentModal.general.button.manageOptions": "Optionen anpassen", - "tracking.consentModal.general.description": "Indem du uns erlaubst, <0>Daten über dein Aktivität</0> in der holi-App zu verarbeiten:", + "tracking.consentModal.general.description": "Indem du uns erlaubst, <0>Daten über deine Aktivität</0> in der holi-App zu verarbeiten:", "tracking.consentModal.general.description.check_1": "Erhälst du mehr Inhalte, die deinen Interessen und Vorlieben entsprechen", "tracking.consentModal.general.description.check_2": "Hilfst du uns das Nutzungserlebnis zu verbessern", "tracking.consentModal.general.description.check_3": "Deine Zustimmung kannst du in den Einstellungen jederzeit ändern oder widerrufen", @@ -1569,6 +1569,7 @@ "tracking.consentModal.manageOptions.note": "Deine Zustimmung kannst du in den Einstellungen jederzeit ändern oder widerrufen", "tracking.consentModal.manageOptions.personalizationBox.description": "Du bekommst mehr Inhalte angezeigt, die deinen Interessen und Vorlieben entsprechen, wie unterstützungswerte Projekte, Beiträge und vieles mehr.", "tracking.consentModal.manageOptions.personalizationBox.title": "Personalisierung erlauben", + "tracking.consentModal.manageOptions.privacyStatement": "Weitere Informationen, insbesondere zu den Empfängern deiner Daten, findest du in unseren <0>Datenschutzhinweisen.</0>", "tracking.consentModal.manageOptions.productAnalyticsBox.description": "Deine Daten für mehr Impact – Durch deine Zustimmung zur Erhebung und Auswertung von Trackingdaten sowie der Durchführung von Variantentests, ermöglichst du es uns, das Produkterlebnis für dich und andere zu verbessern und holi erfolgreicher zu machen.", "tracking.consentModal.manageOptions.productAnalyticsBox.title": "Produktanalyse erlauben", "translation.button.label": "Übersetzen auf Deutsch", diff --git a/core/i18n/locales/en.json b/core/i18n/locales/en.json index f715cab101..a0d3edb512 100644 --- a/core/i18n/locales/en.json +++ b/core/i18n/locales/en.json @@ -1574,6 +1574,7 @@ "tracking.consentModal.manageOptions.note": "You can change your selection and delete your data at any time.", "tracking.consentModal.manageOptions.personalizationBox.description": "You’ll see more content that reflects your interests and preferences, like projects to join and support, posts and much more.", "tracking.consentModal.manageOptions.personalizationBox.title": "Allow personalization", + "tracking.consentModal.manageOptions.privacyStatement": "Further information, in particular about the recipients of your data, can be found in our <0>privacy policy.</0>", "tracking.consentModal.manageOptions.productAnalyticsBox.description": "Your data for more impact – By agreeing to the collection and evaluation of tracking data and the conduct of variation tests, you enable us to improve the product experience for you and others and to make holi more successful.", "tracking.consentModal.manageOptions.productAnalyticsBox.title": "Allow product analytics", "translation.button.label": "Translate to English", diff --git a/core/screens/userprofile/TrackingSettings.tsx b/core/screens/userprofile/TrackingSettings.tsx index 2fc2ebc4f3..37a7abb983 100644 --- a/core/screens/userprofile/TrackingSettings.tsx +++ b/core/screens/userprofile/TrackingSettings.tsx @@ -133,6 +133,18 @@ const TrackingSettings = () => { <HoliGap size="sm" /> + <Text size="md"> + <Trans t={t} i18nKey="tracking.consentModal.manageOptions.privacyStatement"> + <HoliTextLink + href="/profile/settings/legalDocuments/document?type=privacyPolicy" + label={t('profile.settings.legalDocuments.privacyPolicy')} + size="md" + /> + </Trans> + </Text> + + <HoliGap size="sm" /> + <Text size="md"> <Trans t={t} i18nKey={'profile.settings.tracking.dataManagement.description'}> <HoliTextLink -- GitLab