fix(frontend): 修復 compliance resolved_rate 百分比重複 ×100 + users executed_at→created_at
Some checks failed
CD Pipeline / build-and-deploy (push) Has been cancelled
Some checks failed
CD Pipeline / build-and-deploy (push) Has been cancelled
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -71,8 +71,8 @@ export default function CompliancePage({ params }: { params: { locale: string }
|
||||
</div>
|
||||
<div style={cardStyle}>
|
||||
<div style={{ fontSize: 11, color: '#87867f', fontFamily: 'var(--font-body), monospace', marginBottom: 4, textTransform: 'uppercase', letterSpacing: '0.05em' }}>{t('resolvedRate')}</div>
|
||||
<div style={{ fontSize: 24, fontWeight: 700, color: summary.resolved_rate >= 0.8 ? '#22C55E' : summary.resolved_rate >= 0.5 ? '#F59E0B' : '#cc2200', fontFamily: 'var(--font-body), monospace' }}>
|
||||
{(summary.resolved_rate * 100).toFixed(1)}%
|
||||
<div style={{ fontSize: 24, fontWeight: 700, color: summary.resolved_rate >= 80 ? '#22C55E' : summary.resolved_rate >= 50 ? '#F59E0B' : '#cc2200', fontFamily: 'var(--font-body), monospace' }}>
|
||||
{summary.resolved_rate.toFixed(1)}%
|
||||
</div>
|
||||
</div>
|
||||
</>}
|
||||
|
||||
@@ -29,7 +29,7 @@ interface AuditLog {
|
||||
namespace: string | null
|
||||
success: boolean
|
||||
duration_ms: number | null
|
||||
executed_at: string
|
||||
created_at: string
|
||||
error_message: string | null
|
||||
}
|
||||
|
||||
@@ -120,7 +120,7 @@ export default function UsersPage({ params }: { params: { locale: string } }) {
|
||||
</span>
|
||||
</td>
|
||||
<td style={{ padding: '7px 14px', color: '#87867f', fontSize: 11 }}>
|
||||
{new Date(log.executed_at).toLocaleString('zh-TW', { timeZone: 'Asia/Taipei', month: 'numeric', day: 'numeric', hour: '2-digit', minute: '2-digit' })}
|
||||
{new Date(log.created_at).toLocaleString('zh-TW', { timeZone: 'Asia/Taipei', month: 'numeric', day: 'numeric', hour: '2-digit', minute: '2-digit' })}
|
||||
</td>
|
||||
</tr>
|
||||
))}
|
||||
|
||||
Reference in New Issue
Block a user