security-history: acción y estado web multiidioma

La lib devolvía la acción ("Token de seguridad solicitado") y el estado del login
web ("Conexión exitosa"/"Contraseña incorrecta") en español. Ahora devuelve claves
(actionKey='tokenRequested'; statusKey='success'/'wrongPassword'/'other' + statusRaw)
y la página las traduce (History.security.action/webStatus). El coloreado rojo pasa
a depender de statusKey==='wrongPassword'. Verificado con datos reales.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-07-14 19:39:46 +00:00
parent 19d3c43a76
commit 16ae9f0db8
4 changed files with 31 additions and 13 deletions
@@ -106,7 +106,7 @@ export default async function SecurityHistoryPage({ params }: { params: Promise<
<tr key={i}>
<UserCell label={a.user} bnet={bnetEmail} />
<td>
<span>{a.action}</span>
<span>{t(`security.action.${a.actionKey}`)}</span>
</td>
<td className="long-td">
<span>{a.ip}</span>
@@ -190,7 +190,9 @@ export default async function SecurityHistoryPage({ params }: { params: Promise<
<tr key={i}>
<UserCell label={c.user} bnet={bnetEmail} />
<td>
<span className={c.status === 'Conexión exitosa' ? '' : 'red-info2'}>{c.status}</span>
<span className={c.statusKey === 'wrongPassword' ? 'red-info2' : ''}>
{c.statusKey === 'other' ? c.statusRaw : t(`security.webStatus.${c.statusKey}`)}
</span>
</td>
<td className="long-td">
<span>{c.ip}</span>