Skip to content

Commit f3c9c27

Browse files
WEB-657: Working Capital - Transaction type issue (#3939)
Co-authored-by: Víctor Romero <46640258+IOhacker@users.noreply.github.com>
1 parent 48caad5 commit f3c9c27

14 files changed

Lines changed: 26 additions & 2 deletions

File tree

‎src/app/loans/loans-view/_loan-tab-shared.scss‎

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,11 @@
8080
--tx-linked-bg: var(--ch-paid-bg);
8181
--tx-recovery: #00838f;
8282
--tx-recovery-bg: #e0f7fa;
83+
84+
/* Neutral fallback for transaction types without a dedicated badge class.
85+
Built on the secondary text/surface tokens so it follows both themes. */
86+
--tx-default: var(--ch-text-2);
87+
--tx-default-bg: var(--ch-surface-h);
8388
}
8489

8590
:host-context(.dark-theme) {
@@ -99,7 +104,7 @@
99104
/* ── Transaction-type badges (same system as charges-tab) ──── */
100105
$transaction-type-keys:
101106
'repayment', 'disbursement', 'accrual', 'reversed', 'downpayment', 'chargeoff', 'reage', 'reamortize', 'discount',
102-
'linked';
107+
'linked', 'recovery';
103108

104109
@mixin transaction-badges {
105110
.badge {
@@ -110,14 +115,20 @@ $transaction-type-keys:
110115
border-radius: 20px;
111116
font-size: 11px;
112117
font-weight: 600;
113-
border: 1px solid transparent;
114118
white-space: nowrap;
115119

120+
/* Neutral default so a type without a generated badge-* class still
121+
renders as an intentional pill instead of unstyled text. */
122+
background: var(--tx-default-bg);
123+
color: var(--tx-default);
124+
border: 1px solid var(--tx-default);
125+
116126
.badge-dot {
117127
width: 6px;
118128
height: 6px;
119129
border-radius: 50%;
120130
flex-shrink: 0;
131+
background: var(--tx-default);
121132
}
122133
}
123134

‎src/assets/translations/cs-CS.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3961,6 +3961,7 @@
39613961
"Transfer in progress": "Převod",
39623962
"Transfer on hold": "Přenesejte na pozastavení",
39633963
"Withdrawn": "Stažený",
3964+
"Withdrawn by applicant": "Staženo žadatelem",
39643965
"Written Off": "Odepsáno"
39653966
},
39663967
"dialogContext": {

‎src/assets/translations/de-DE.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3962,6 +3962,7 @@
39623962
"Transfer in progress": "Übertragung in Arbeit",
39633963
"Transfer on hold": "Übertragen",
39643964
"Withdrawn": "Zurückgezogen",
3965+
"Withdrawn by applicant": "Vom Antragsteller zurückgezogen",
39653966
"Written Off": "Abgeschrieben"
39663967
},
39673968
"dialogContext": {

‎src/assets/translations/en-US.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3984,6 +3984,7 @@
39843984
"Transfer in progress": "Transfer in progress",
39853985
"Transfer on hold": "Transfer on hold",
39863986
"Withdrawn": "Withdrawn",
3987+
"Withdrawn by applicant": "Withdrawn by applicant",
39873988
"Written Off": "Written Off"
39883989
},
39893990
"dialogContext": {

‎src/assets/translations/es-CL.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3961,6 +3961,7 @@
39613961
"Transfer in progress": "Transferencia en progreso",
39623962
"Transfer on hold": "Transferencia en pausa",
39633963
"Withdrawn": "Retirado",
3964+
"Withdrawn by applicant": "Retirado por el solicitante",
39643965
"Written Off": "Castigado"
39653966
},
39663967
"dialogContext": {

‎src/assets/translations/es-MX.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3965,6 +3965,7 @@
39653965
"Transfer in progress": "Transferencia en progreso",
39663966
"Transfer on hold": "Transferencia en pausa",
39673967
"Withdrawn": "Retirado",
3968+
"Withdrawn by applicant": "Retirado por el solicitante",
39683969
"Written Off": "Castigado"
39693970
},
39703971
"dialogContext": {

‎src/assets/translations/fr-FR.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3963,6 +3963,7 @@
39633963
"Transfer in progress": "Transfert en cours",
39643964
"Transfer on hold": "Transfert en attente",
39653965
"Withdrawn": "Retiré",
3966+
"Withdrawn by applicant": "Retiré par le demandeur",
39663967
"Written Off": "Passé en perte"
39673968
},
39683969
"dialogContext": {

‎src/assets/translations/it-IT.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3959,6 +3959,7 @@
39593959
"Transfer in progress": "Trasferimento in corso",
39603960
"Transfer on hold": "Trasferimento in attesa",
39613961
"Withdrawn": "Ritirato",
3962+
"Withdrawn by applicant": "Ritirato dal richiedente",
39623963
"Written Off": "Stralciato"
39633964
},
39643965
"dialogContext": {

‎src/assets/translations/ko-KO.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3959,6 +3959,7 @@
39593959
"Transfer in progress": "진행중인 양도",
39603960
"Transfer on hold": "보류에 이체하십시오",
39613961
"Withdrawn": "빼는",
3962+
"Withdrawn by applicant": "신청자에 의해 철회됨",
39623963
"Written Off": "상각됨"
39633964
},
39643965
"dialogContext": {

‎src/assets/translations/lt-LT.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3959,6 +3959,7 @@
39593959
"Transfer in progress": "Vykdomas perkėlimas",
39603960
"Transfer on hold": "Perkelti sustabdytas",
39613961
"Withdrawn": "Pasitraukė",
3962+
"Withdrawn by applicant": "Pareiškėjo atsiimta",
39623963
"Written Off": "Nurašyta"
39633964
},
39643965
"dialogContext": {

0 commit comments

Comments
 (0)