feat: redirect to AI consent settings when consent is missing
All checks were successful
CI / Lint, Unit Tests & Build (push) Successful in 7m27s
CI / Deploy production (on server) (push) Successful in 23s

- requestAiConsent now redirects to /settings/general?highlight=aiConsent
  instead of opening the modal when called outside the settings page
- Settings page highlights the consent section and scrolls to it
- Adds consent.ai.settingsBanner i18n key (fr/en)
- Keeps inline modal on /settings/general so the grant button still works
This commit is contained in:
Antigravity
2026-07-18 17:52:40 +00:00
parent 324bf40658
commit f385d43d5d
6 changed files with 81 additions and 9 deletions

View File

@@ -3813,7 +3813,8 @@
"revokedToast": "Consentement IA révoqué avec succès.",
"complianceBadge": "Conformité RGPD",
"auditFailed": "Impossible d'enregistrer votre consentement. Réessayez.",
"requiredToast": "Activez le traitement IA dans Paramètres → IA pour utiliser cette fonctionnalité."
"requiredToast": "Activez le traitement IA dans Paramètres → IA pour utiliser cette fonctionnalité.",
"settingsBanner": "Pour utiliser cette fonctionnalité, activez le traitement IA ci-dessous puis cliquez sur « Accorder le consentement »."
}
},
"account": {