fix(web): 補齊 P2-403H 治理頁翻譯
This commit is contained in:
@@ -1322,7 +1322,9 @@ export function AutomationInventoryTab() {
|
||||
}
|
||||
}
|
||||
|
||||
const redisDryRunValueLabel = (group: string, value: string) => {
|
||||
const redisDryRunValueLabel = (group: string, value?: string) => {
|
||||
if (!value) return t('redisDryRunGate.labels.unassigned')
|
||||
|
||||
try {
|
||||
return t(`redisDryRunGate.${group}.${value}` as never)
|
||||
} catch {
|
||||
@@ -1870,11 +1872,12 @@ export function AutomationInventoryTab() {
|
||||
{target.display_name}
|
||||
</span>
|
||||
<span style={{ fontFamily: "'DM Mono', monospace", fontSize: 10, color: '#87867f', lineHeight: 1.45, overflowWrap: 'anywhere' }}>
|
||||
{target.operator_instruction}
|
||||
{target.verifier_check}
|
||||
</span>
|
||||
<div style={{ display: 'flex', flexWrap: 'wrap', gap: 6 }}>
|
||||
<Chip value={redisDryRunValueLabel('agents', target.owner_agent)} muted />
|
||||
<Chip value={target.blocked_runtime_action} muted />
|
||||
<Chip value={target.failure_escalation} muted />
|
||||
</div>
|
||||
</div>
|
||||
))}
|
||||
@@ -1891,7 +1894,7 @@ export function AutomationInventoryTab() {
|
||||
<Chip value={redisDryRunValueLabel('statuses', item.status)} muted={item.status !== 'approval_required'} />
|
||||
</div>
|
||||
<span style={{ fontFamily: "'DM Mono', monospace", fontSize: 10, color: '#87867f', lineHeight: 1.45, overflowWrap: 'anywhere' }}>
|
||||
{'required_evidence' in item ? item.required_evidence : item.operator_instruction}
|
||||
{'trigger' in item ? item.trigger : item.operator_instruction}
|
||||
</span>
|
||||
<Chip value={item.blocked_runtime_action} muted />
|
||||
</div>
|
||||
|
||||
@@ -1712,18 +1712,17 @@ export interface AiAgentPostWriteVerifierPackageSnapshot {
|
||||
verification_targets: Array<{
|
||||
target_id: string
|
||||
display_name: string
|
||||
target_surface: string
|
||||
status: string
|
||||
owner_agent: 'openclaw' | 'hermes' | 'nemotron'
|
||||
required_readback: string
|
||||
verifier_check: string
|
||||
failure_escalation: string
|
||||
blocked_runtime_action: string
|
||||
operator_instruction: string
|
||||
}>
|
||||
failure_lanes: Array<{
|
||||
lane_id: string
|
||||
display_name: string
|
||||
status: string
|
||||
required_evidence: string
|
||||
trigger: string
|
||||
blocked_runtime_action: string
|
||||
operator_instruction: string
|
||||
}>
|
||||
|
||||
Reference in New Issue
Block a user