diff --git a/frontend/public/locales/en-GB/translation.json b/frontend/public/locales/en-GB/translation.json index d74418a8c..729dac41c 100644 --- a/frontend/public/locales/en-GB/translation.json +++ b/frontend/public/locales/en-GB/translation.json @@ -232,6 +232,7 @@ "title": "Do you want make Stirling PDF better?", "paragraph1": "Stirling PDF has opt in analytics to help us improve the product. We do not track any personal information or file contents.", "paragraph2": "Please consider enabling analytics to help Stirling-PDF grow and to allow us to understand our users better.", + "learnMore": "Learn more", "enable": "Enable analytics", "disable": "Disable analytics", "settings": "You can change the settings for analytics in the config/settings.yml file" @@ -3621,29 +3622,6 @@ "title": "Attachment Results" } }, - "analytics": { - "modal": { - "title": "Configure Analytics", - "description": "Choose whether to enable analytics for Stirling PDF. If enabled, users can control individual services (PostHog and Scarf) through the cookie preferences.", - "whatWeCollect": "What we collect:", - "collect": { - "system": "Operating system and Java version", - "config": "CPU/memory configuration and deployment type", - "features": "Aggregate feature usage counts", - "pages": "Page visits (via tracking pixel)" - }, - "whatWeDoNotCollect": "What we do NOT collect:", - "notCollect": { - "documents": "Document content or file data", - "pii": "Personally identifiable information (PII)", - "ip": "IP addresses" - }, - "privacy": "All analytics data is hosted on EU servers and respects your privacy.", - "enable": "Enable Analytics", - "disable": "Disable Analytics", - "note": "This choice can be changed later by editing the settings.yml file." - } - }, "termsAndConditions": "Terms & Conditions", "logOut": "Log out" } diff --git a/frontend/src/components/shared/AdminAnalyticsChoiceModal.tsx b/frontend/src/components/shared/AdminAnalyticsChoiceModal.tsx index dfc0672e6..26b26e5c8 100644 --- a/frontend/src/components/shared/AdminAnalyticsChoiceModal.tsx +++ b/frontend/src/components/shared/AdminAnalyticsChoiceModal.tsx @@ -1,4 +1,4 @@ -import { Modal, Stack, Button, Text, Title, Paper, List } from '@mantine/core'; +import { Modal, Stack, Button, Text, Title, Anchor } from '@mantine/core'; import { useTranslation } from 'react-i18next'; import { useState } from 'react'; import { Z_ANALYTICS_MODAL } from '../../styles/zIndex'; @@ -53,41 +53,22 @@ export default function AdminAnalyticsChoiceModal({ opened }: AdminAnalyticsChoi zIndex={Z_ANALYTICS_MODAL} > - {t('analytics.modal.title', 'Configure Analytics')} + {t('analytics.title', 'Do you want make Stirling PDF better?')} - {t('analytics.modal.description', 'Choose whether to enable analytics for Stirling PDF. If enabled, users can control individual services (PostHog and Scarf) through the cookie preferences.')} + {t('analytics.paragraph1', 'Stirling PDF has opt in analytics to help us improve the product. We do not track any personal information or file contents.')} - - - - {t('analytics.modal.whatWeCollect', 'What we collect:')} - - - {t('analytics.modal.collect.system', 'Operating system and Java version')} - {t('analytics.modal.collect.config', 'CPU/memory configuration and deployment type')} - {t('analytics.modal.collect.features', 'Aggregate feature usage counts')} - {t('analytics.modal.collect.pages', 'Page visits (via tracking pixel)')} - - - - - - - - {t('analytics.modal.whatWeDoNotCollect', 'What we do NOT collect:')} - - - {t('analytics.modal.notCollect.documents', 'Document content or file data')} - {t('analytics.modal.notCollect.pii', 'Personally identifiable information (PII)')} - {t('analytics.modal.notCollect.ip', 'IP addresses')} - - - - - - {t('analytics.modal.privacy', 'All analytics data is hosted on EU servers and respects your privacy.')} + + {t('analytics.paragraph2', 'Please consider enabling analytics to help Stirling-PDF grow and to allow us to understand our users better.')}{' '} + + {t('analytics.learnMore', 'Learn more')} + {error && ( @@ -103,7 +84,7 @@ export default function AdminAnalyticsChoiceModal({ opened }: AdminAnalyticsChoi fullWidth size="md" > - {t('analytics.modal.enable', 'Enable Analytics')} + {t('analytics.enable', 'Enable analytics')} - {t('analytics.modal.note', 'This choice can be changed later by editing the settings.yml file.')} + {t('analytics.settings', 'You can change the settings for analytics in the config/settings.yml file')}