fix: validate simulator dates and reconcile QA calculations reports and language

This commit is contained in:
2026-10-20 21:00:52 +02:00
parent 59ab4fe956
commit a690c665fb
39 changed files with 757 additions and 184 deletions
@@ -104,7 +104,8 @@ function TwoFactorSetupStep({
<div className="relative flex w-full items-center justify-center">
<div className="bg-border absolute inset-0 top-1/2 h-px w-full" />
<span className="bg-card relative px-2 py-1">
or, enter the code manually
{' '}
ou introduza a chave manualmente{' '}
</span>
</div>
@@ -210,7 +211,8 @@ function TwoFactorVerificationStep({
onClick={onBack}
disabled={processing}
>
Back
{' '}
Voltar{' '}
</Button>
<Button
type="submit"
@@ -219,7 +221,8 @@ function TwoFactorVerificationStep({
processing || code.length < OTP_MAX_LENGTH
}
>
Confirm
{' '}
Confirmar{' '}
</Button>
</div>
</div>
@@ -262,27 +265,27 @@ export default function TwoFactorSetupModal({
}>(() => {
if (twoFactorEnabled) {
return {
title: 'Two-factor authentication enabled',
title: 'Autenticação de dois factores activada',
description:
'Two-factor authentication is now enabled. Scan the QR code or enter the setup key in your authenticator app.',
buttonText: 'Close',
'A autenticação de dois factores está activada. Leia o código QR ou introduza a chave na aplicação autenticadora.',
buttonText: 'Fechar',
};
}
if (showVerificationStep) {
return {
title: 'Verify authentication code',
title: 'Confirmar código de autenticação',
description:
'Enter the 6-digit code from your authenticator app',
buttonText: 'Continue',
'Introduza o código de seis dígitos da aplicação autenticadora',
buttonText: 'Continuar',
};
}
return {
title: 'Enable two-factor authentication',
title: 'Activar autenticação de dois factores',
description:
'To finish enabling two-factor authentication, scan the QR code or enter the setup key in your authenticator app',
buttonText: 'Continue',
'Para concluir a configuração, leia o código QR ou introduza a chave na aplicação autenticadora.',
buttonText: 'Continuar',
};
}, [twoFactorEnabled, showVerificationStep]);