Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions apps/console/src/pages/system/ApprovalsInboxPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1470,11 +1470,14 @@ export function ApprovalsInboxPage() {
: a.action === 'remind' ? 'bg-amber-500'
: a.action === 'request_info' ? 'bg-amber-500'
: a.action === 'comment' ? 'bg-slate-400'
: a.action === 'escalate' ? 'bg-red-500'
: 'bg-muted-foreground';
const actorName = a.actor_name
?? (a.actor_id && a.actor_id === selected.submitter_id
? submitterDisplay(selected)
: formatIdentity(a.actor_id));
const actorName = a.actor_id === 'system:sla'
? tr('systemSlaActor', 'System (SLA)')
: a.actor_name
?? (a.actor_id && a.actor_id === selected.submitter_id
? submitterDisplay(selected)
: formatIdentity(a.actor_id));
const actionText = a.action === 'submit' ? tr('actSubmit', 'Submitted')
: a.action === 'approve' ? tr('actApprove', 'Approved')
: a.action === 'reject' ? tr('actReject', 'Rejected')
Expand All @@ -1483,6 +1486,7 @@ export function ApprovalsInboxPage() {
: a.action === 'remind' ? tr('actRemind', 'Reminder sent')
: a.action === 'request_info' ? tr('actRequestInfo', 'Requested more info')
: a.action === 'comment' ? tr('actComment', 'Commented')
: a.action === 'escalate' ? tr('actEscalate', 'SLA escalated')
: a.action;
return (
<li key={a.id} className="relative text-xs">
Expand Down
2 changes: 2 additions & 0 deletions packages/i18n/src/locales/ar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1750,6 +1750,8 @@ const ar = {
},
},
approvalsInbox: {
actEscalate: 'تصعيد SLA',
systemSlaActor: 'النظام (SLA)',
reassignBtn: 'إعادة إسناد',
reassignTitle: 'تسليم هذه الموافقة لشخص آخر؟',
reassignBody: 'ينتقل مقعدك كموافق إلى الشخص المختار — يتم إخطاره ويمكنه التصرف فورًا.',
Expand Down
2 changes: 2 additions & 0 deletions packages/i18n/src/locales/de.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1750,6 +1750,8 @@ const de = {
},
},
approvalsInbox: {
actEscalate: 'SLA eskaliert',
systemSlaActor: 'System (SLA)',
reassignBtn: 'Übergeben',
reassignTitle: 'Diese Genehmigung an jemand anderen übergeben?',
reassignBody: 'Ihr Genehmiger-Platz geht an die gewählte Person — sie wird benachrichtigt und kann sofort handeln.',
Expand Down
2 changes: 2 additions & 0 deletions packages/i18n/src/locales/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1905,6 +1905,8 @@ const en = {
},
},
approvalsInbox: {
actEscalate: 'SLA escalated',
systemSlaActor: 'System (SLA)',
reassignBtn: 'Reassign',
reassignTitle: 'Hand this approval to someone else?',
reassignBody: 'Your approver slot moves to the person you pick — they are notified and can act immediately.',
Expand Down
2 changes: 2 additions & 0 deletions packages/i18n/src/locales/es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1750,6 +1750,8 @@ const es = {
},
},
approvalsInbox: {
actEscalate: 'SLA escalado',
systemSlaActor: 'Sistema (SLA)',
reassignBtn: 'Reasignar',
reassignTitle: '¿Pasar esta aprobación a otra persona?',
reassignBody: 'Tu puesto de aprobador pasa a la persona elegida; se le notifica y puede actuar de inmediato.',
Expand Down
2 changes: 2 additions & 0 deletions packages/i18n/src/locales/fr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1750,6 +1750,8 @@ const fr = {
},
},
approvalsInbox: {
actEscalate: 'SLA escaladé',
systemSlaActor: 'Système (SLA)',
reassignBtn: 'Réattribuer',
reassignTitle: 'Confier cette approbation à quelqu\'un d\'autre ?',
reassignBody: 'Votre place d\'approbateur passe à la personne choisie — elle est notifiée et peut agir immédiatement.',
Expand Down
2 changes: 2 additions & 0 deletions packages/i18n/src/locales/ja.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1750,6 +1750,8 @@ const ja = {
},
},
approvalsInbox: {
actEscalate: 'SLAエスカレーション',
systemSlaActor: 'システム(SLA)',
reassignBtn: '引き継ぎ',
reassignTitle: 'この承認を他の人に引き継ぎますか?',
reassignBody: 'あなたの承認枠は選択した相手に移ります。相手に通知され、すぐに対応できます。',
Expand Down
2 changes: 2 additions & 0 deletions packages/i18n/src/locales/ko.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1750,6 +1750,8 @@ const ko = {
},
},
approvalsInbox: {
actEscalate: 'SLA 에스컬레이션',
systemSlaActor: '시스템(SLA)',
reassignBtn: '재할당',
reassignTitle: '이 승인을 다른 사람에게 넘길까요?',
reassignBody: '승인 슬롯이 선택한 사람에게 이동하며, 상대는 알림을 받고 즉시 처리할 수 있습니다.',
Expand Down
2 changes: 2 additions & 0 deletions packages/i18n/src/locales/pt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1750,6 +1750,8 @@ const pt = {
},
},
approvalsInbox: {
actEscalate: 'SLA escalonado',
systemSlaActor: 'Sistema (SLA)',
reassignBtn: 'Reatribuir',
reassignTitle: 'Passar esta aprovação para outra pessoa?',
reassignBody: 'Sua vaga de aprovador passa para a pessoa escolhida — ela é notificada e pode agir imediatamente.',
Expand Down
2 changes: 2 additions & 0 deletions packages/i18n/src/locales/ru.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1750,6 +1750,8 @@ const ru = {
},
},
approvalsInbox: {
actEscalate: 'Эскалация SLA',
systemSlaActor: 'Система (SLA)',
reassignBtn: 'Передать',
reassignTitle: 'Передать согласование другому?',
reassignBody: 'Ваше место согласующего перейдёт выбранному человеку — он получит уведомление и сможет действовать сразу.',
Expand Down
2 changes: 2 additions & 0 deletions packages/i18n/src/locales/zh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1913,6 +1913,8 @@ const zh = {
},
},
approvalsInbox: {
actEscalate: 'SLA 升级',
systemSlaActor: '系统(SLA)',
reassignBtn: '转签',
reassignTitle: '将该审批转签给其他人?',
reassignBody: '你的审批席位将转移给所选人员,对方会收到通知并可立即处理。',
Expand Down
Loading