@micha.bigler/ui-core-micha 1.4.9 → 1.4.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -54,6 +54,6 @@ const SupportRecoveryRequestsTab = () => {
|
|
|
54
54
|
}
|
|
55
55
|
return (_jsxs(Box, { children: [_jsx(Typography, { variant: "h6", gutterBottom: true, children: t('Support.RECOVERY_REQUESTS_TITLE', 'Account recovery requests') }), _jsx(Typography, { variant: "body2", sx: { mb: 2 }, children: t('Support.RECOVERY_REQUESTS_DESCRIPTION', 'Users who cannot complete MFA can request support. You can send them a recovery link or reject the request after verification.') }), errorKey && (_jsx(Alert, { severity: "error", sx: { mb: 2 }, children: t(errorKey) })), _jsxs(Stack, { direction: "row", spacing: 2, sx: { mb: 2 }, children: [_jsx(Button, { variant: statusFilter === 'pending' ? 'contained' : 'outlined', size: "small", onClick: () => setStatusFilter('pending'), children: t('Support.RECOVERY_FILTER_PENDING', 'Open') }), _jsx(Button, { variant: statusFilter === 'approved' ? 'contained' : 'outlined', size: "small", onClick: () => setStatusFilter('approved'), children: t('Support.RECOVERY_FILTER_APPROVED', 'Approved') }), _jsx(Button, { variant: statusFilter === 'rejected' ? 'contained' : 'outlined', size: "small", onClick: () => setStatusFilter('rejected'), children: t('Support.RECOVERY_FILTER_REJECTED', 'Rejected') })] }), requests.length === 0 ? (_jsx(Typography, { variant: "body2", children: t('Support.RECOVERY_REQUESTS_EMPTY', 'No recovery requests for this filter.') })) : (_jsx(TableContainer, { component: Paper, children: _jsxs(Table, { size: "small", children: [_jsx(TableHead, { children: _jsxs(TableRow, { children: [_jsx(TableCell, { children: t('Support.RECOVERY_COL_CREATED', 'Created') }), _jsx(TableCell, { children: t('Support.RECOVERY_COL_USER', 'User') }), _jsx(TableCell, { children: t('Support.RECOVERY_COL_SUPPORT', 'Assigned support') }), _jsx(TableCell, { children: t('Support.RECOVERY_COL_STATUS', 'Status') }), _jsx(TableCell, { children: t('Support.RECOVERY_COL_ACTIONS', 'Actions') })] }) }), _jsx(TableBody, { children: requests.map((req) => (_jsxs(TableRow, { children: [_jsx(TableCell, { children: req.created_at
|
|
56
56
|
? new Date(req.created_at).toLocaleString()
|
|
57
|
-
: '-' }), _jsx(TableCell, { children: req.user_email || req.user }), _jsx(TableCell, { children: req.
|
|
57
|
+
: '-' }), _jsx(TableCell, { children: req.user_email || req.user }), _jsx(TableCell, { children: req.status }), _jsx(TableCell, { children: _jsxs(Stack, { direction: "row", spacing: 1, children: [_jsx(Button, { variant: "contained", size: "small", onClick: () => handleSendRecoveryLink(req.id), disabled: req.status !== 'pending', children: t('Support.RECOVERY_ACTION_SEND_LINK', 'Send recovery link') }), _jsx(Button, { variant: "outlined", size: "small", color: "error", onClick: () => handleReject(req.id), disabled: req.status !== 'pending', children: t('Support.RECOVERY_ACTION_REJECT', 'Reject') })] }) })] }, req.id))) })] }) }))] }));
|
|
58
58
|
};
|
|
59
59
|
export default SupportRecoveryRequestsTab;
|
|
@@ -806,11 +806,6 @@ export const authTranslations = {
|
|
|
806
806
|
"fr": "Votre connexion actuelle ne satisfait pas aux exigences de sécurité recommandées. Veuillez configurer un facteur de sécurité supplémentaire (clé d’accès ou application d’authentification) et générer des codes de récupération.",
|
|
807
807
|
"en": "Your current sign-in does not meet the recommended security requirements. Please set up an additional security factor (passkey or authenticator app) and generate recovery codes."
|
|
808
808
|
},
|
|
809
|
-
"Auth.MFA_HELP_REQUESTED": {
|
|
810
|
-
"de": "Wir haben deinen Support-Kontakt informiert. Du erhältst eine Rückmeldung, sobald deine Identität geprüft wurde.",
|
|
811
|
-
"fr": "Nous avons informé votre contact de support. Vous recevrez une réponse dès que votre identité aura été vérifiée.",
|
|
812
|
-
"en": "We have informed your support contact. You will hear back as soon as your identity has been verified."
|
|
813
|
-
},
|
|
814
809
|
"Auth.MFA_HELP_REQUEST_FAILED": {
|
|
815
810
|
"de": "Die Support-Anfrage konnte nicht gesendet werden. Bitte versuche es später erneut oder kontaktiere den Support direkt.",
|
|
816
811
|
"fr": "La demande d'assistance n'a pas pu être envoyée. Veuillez réessayer plus tard ou contacter le support directement.",
|
|
@@ -826,5 +821,15 @@ export const authTranslations = {
|
|
|
826
821
|
"fr": "Récupération de compte",
|
|
827
822
|
"en": "Account recovery"
|
|
828
823
|
},
|
|
824
|
+
"Auth.MFA_IDENTIFIER_REQUIRED": {
|
|
825
|
+
"de": "E-Mail-Adresse oder Kennung ist erforderlich.",
|
|
826
|
+
"fr": "L’adresse e-mail ou l’identifiant est requis.",
|
|
827
|
+
"en": "Email address or identifier is required."
|
|
828
|
+
},
|
|
829
|
+
"Auth.MFA_HELP_REQUESTED": {
|
|
830
|
+
"de": "Falls dieses Konto existiert, wurde Ihre Anfrage dem Support weitergeleitet. Bitte kontaktiere den Support für weitere Hilfe.",
|
|
831
|
+
"fr": "Si ce compte existe, votre demande a été transmise au support. Veuillez contacter le support pour obtenir de l’aide supplémentaire.",
|
|
832
|
+
"en": "If this account exists, your request has been forwarded to support. Please contact support for further assistance."
|
|
833
|
+
},
|
|
829
834
|
// ...
|
|
830
835
|
};
|
package/package.json
CHANGED
|
@@ -141,7 +141,6 @@ const SupportRecoveryRequestsTab = () => {
|
|
|
141
141
|
: '-'}
|
|
142
142
|
</TableCell>
|
|
143
143
|
<TableCell>{req.user_email || req.user}</TableCell>
|
|
144
|
-
<TableCell>{req.support_email || '–'}</TableCell>
|
|
145
144
|
<TableCell>{req.status}</TableCell>
|
|
146
145
|
<TableCell>
|
|
147
146
|
<Stack direction="row" spacing={1}>
|
|
@@ -853,11 +853,6 @@ export const authTranslations = {
|
|
|
853
853
|
"fr": "Votre connexion actuelle ne satisfait pas aux exigences de sécurité recommandées. Veuillez configurer un facteur de sécurité supplémentaire (clé d’accès ou application d’authentification) et générer des codes de récupération.",
|
|
854
854
|
"en": "Your current sign-in does not meet the recommended security requirements. Please set up an additional security factor (passkey or authenticator app) and generate recovery codes."
|
|
855
855
|
},
|
|
856
|
-
"Auth.MFA_HELP_REQUESTED": {
|
|
857
|
-
"de": "Wir haben deinen Support-Kontakt informiert. Du erhältst eine Rückmeldung, sobald deine Identität geprüft wurde.",
|
|
858
|
-
"fr": "Nous avons informé votre contact de support. Vous recevrez une réponse dès que votre identité aura été vérifiée.",
|
|
859
|
-
"en": "We have informed your support contact. You will hear back as soon as your identity has been verified."
|
|
860
|
-
},
|
|
861
856
|
"Auth.MFA_HELP_REQUEST_FAILED": {
|
|
862
857
|
"de": "Die Support-Anfrage konnte nicht gesendet werden. Bitte versuche es später erneut oder kontaktiere den Support direkt.",
|
|
863
858
|
"fr": "La demande d'assistance n'a pas pu être envoyée. Veuillez réessayer plus tard ou contacter le support directement.",
|
|
@@ -873,6 +868,16 @@ export const authTranslations = {
|
|
|
873
868
|
"fr": "Récupération de compte",
|
|
874
869
|
"en": "Account recovery"
|
|
875
870
|
},
|
|
871
|
+
"Auth.MFA_IDENTIFIER_REQUIRED": {
|
|
872
|
+
"de": "E-Mail-Adresse oder Kennung ist erforderlich.",
|
|
873
|
+
"fr": "L’adresse e-mail ou l’identifiant est requis.",
|
|
874
|
+
"en": "Email address or identifier is required."
|
|
875
|
+
},
|
|
876
|
+
"Auth.MFA_HELP_REQUESTED": {
|
|
877
|
+
"de": "Falls dieses Konto existiert, wurde Ihre Anfrage dem Support weitergeleitet. Bitte kontaktiere den Support für weitere Hilfe.",
|
|
878
|
+
"fr": "Si ce compte existe, votre demande a été transmise au support. Veuillez contacter le support pour obtenir de l’aide supplémentaire.",
|
|
879
|
+
"en": "If this account exists, your request has been forwarded to support. Please contact support for further assistance."
|
|
880
|
+
},
|
|
876
881
|
|
|
877
882
|
|
|
878
883
|
|