Files
cbsnexora/src/app/cfcfrms/escalate/escalate.component.html
T
AdityaandClaude Opus 4.7 b149fef72e feat: KYC re-verify UX, family/nominee tab gating, savings dialogs, cfcfrms shell
- KYC tab: fix Verify (PAN) and Send OTP (Aadhaar) being disabled in edit mode;
  unmask Aadhaar input and show on-file masked value as hint; resolve kycId
  from id/kycId/resourceId fallbacks.
- Client stepper/view: add familyAllowed / nomineeAllowed predicates +
  CanActivate route guards. Family tab hidden for non-individuals, Nominee
  tab hidden for non-proprietor entities. Family-members step accepts a
  nomineeOnly input for proprietorship clients. Add/Edit/Delete buttons
  inside family-members and nominee tabs gated by canAdd.
- cfcfrms: add cfcfrms-shell wrapper, restyle complaint/fraud/mule/escalate
  pages and dashboard.
- Savings: identity-verify and transaction-confirm dialogs, manage / activate
  / add-charge flows, account preview styling.
- Tasks, core shell, account-nominees, icons: minor style and behaviour
  updates.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-21 18:49:43 +05:30

216 lines
9.6 KiB
HTML

<!--
Copyright since 2025 Mifos Initiative
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
-->
<div class="escalate-page">
<div class="escalate-layout">
<!-- Escalation Form -->
<mat-card class="escalate-card">
<mat-card-header>
<mat-card-title>
<fa-icon icon="arrow-up" class="mr-05"></fa-icon> {{ 'labels.text.Escalation Form' | translate }}
</mat-card-title>
</mat-card-header>
<mat-card-content>
@if (escalationResult) {
<div class="success-result">
<div class="success-icon">
<fa-icon icon="check-circle" size="3x"></fa-icon>
</div>
<h3>{{ 'labels.text.Escalation Successful' | translate }}</h3>
<div class="result-details">
<div class="result-row">
<span class="result-label">{{ 'labels.text.Reference Number' | translate }}</span>
<span class="result-value mono">{{ escalationResult.referenceNumber }}</span>
</div>
<div class="result-row">
<span class="result-label">{{ 'labels.text.Ticket ID' | translate }}</span>
<span class="result-value">{{ escalationResult.ticketId }}</span>
</div>
<div class="result-row">
<span class="result-label">{{ 'labels.text.Escalated To' | translate }}</span>
<span class="result-value">{{ escalationResult.escalatedTo }}</span>
</div>
<div class="result-row">
<span class="result-label">{{ 'labels.text.Bank IFSC' | translate }}</span>
<span class="result-value mono">{{ escalationResult.escalatedBankIfsc }}</span>
</div>
<div class="result-row">
<span class="result-label">{{ 'labels.text.Status' | translate }}</span>
<span class="result-value">{{ escalationResult.status }}</span>
</div>
<div class="result-row">
<span class="result-label">{{ 'labels.text.Timestamp' | translate }}</span>
<span class="result-value">{{ escalationResult.timestamp }}</span>
</div>
</div>
<button mat-raised-button color="primary" (click)="resetForm()" class="mt-16">
<fa-icon icon="plus" class="mr-05"></fa-icon> {{ 'labels.text.New Escalation' | translate }}
</button>
</div>
} @else {
<form [formGroup]="escalateForm" (ngSubmit)="onSubmit()">
<div class="ticket-lookup-row">
<mat-form-field appearance="outline" class="ticket-field">
<mat-label>{{ 'labels.text.Ticket ID' | translate }}</mat-label>
<input matInput formControlName="ticketId" placeholder="e.g. CFCFRMS-2024-00001" />
@if (escalateForm.get('ticketId')?.hasError('required') && escalateForm.get('ticketId')?.touched) {
<mat-error>{{ 'labels.text.Ticket ID' | translate }} is required</mat-error>
}
</mat-form-field>
<button
mat-raised-button
type="button"
(click)="lookupTicket()"
[disabled]="isLookingUp"
class="lookup-btn"
>
@if (isLookingUp) {
<mat-spinner diameter="20"></mat-spinner>
} @else {
<fa-icon icon="search" class="mr-05"></fa-icon> {{ 'labels.text.Lookup' | translate }}
}
</button>
</div>
@if (lookedUpComplaint) {
<div class="lookup-result">
<div class="lookup-row">
<span>{{ 'labels.text.Complainant' | translate }}:</span>
<strong>{{ lookedUpComplaint.complainantName }}</strong>
</div>
<div class="lookup-row">
<span>{{ 'labels.text.Fraud Amount' | translate }}:</span>
<strong>{{ formatCurrency(lookedUpComplaint.fraudAmount) }}</strong>
</div>
<div class="lookup-row">
<span>{{ 'labels.text.Suspect Account' | translate }}:</span>
<strong class="mono">{{ lookedUpComplaint.suspectAccountNumber }}</strong>
</div>
<div class="lookup-row">
<span>{{ 'labels.text.Current Status' | translate }}:</span>
<mifosx-cfcfrms-status-badge [status]="lookedUpComplaint.status"></mifosx-cfcfrms-status-badge>
</div>
</div>
}
<mat-form-field appearance="outline" class="full-width">
<mat-label>{{ 'labels.text.Next Hop Account Number' | translate }}</mat-label>
<input
matInput
formControlName="nextHopAccountNumber"
placeholder="{{ 'labels.text.Account Number' | translate }}"
/>
@if (
escalateForm.get('nextHopAccountNumber')?.hasError('required') &&
escalateForm.get('nextHopAccountNumber')?.touched
) {
<mat-error>{{ 'labels.text.Account number is required' | translate }}</mat-error>
}
</mat-form-field>
<mat-form-field appearance="outline" class="full-width">
<mat-label>{{ 'labels.text.Next Hop Bank IFSC' | translate }}</mat-label>
<input matInput formControlName="nextHopBankIfsc" placeholder="e.g. SBIN0000001" />
@if (
escalateForm.get('nextHopBankIfsc')?.hasError('required') &&
escalateForm.get('nextHopBankIfsc')?.touched
) {
<mat-error>{{ 'labels.text.IFSC code is required' | translate }}</mat-error>
}
@if (
escalateForm.get('nextHopBankIfsc')?.hasError('pattern') && escalateForm.get('nextHopBankIfsc')?.touched
) {
<mat-error>{{ 'labels.text.Invalid IFSC format' | translate }}</mat-error>
}
</mat-form-field>
<mat-form-field appearance="outline" class="full-width">
<mat-label>{{ 'labels.text.Remarks' | translate }}</mat-label>
<textarea
matInput
formControlName="remarks"
rows="4"
placeholder="{{ 'labels.text.Reason for escalation...' | translate }}"
></textarea>
@if (escalateForm.get('remarks')?.hasError('required') && escalateForm.get('remarks')?.touched) {
<mat-error>{{ 'labels.text.Remarks are required' | translate }}</mat-error>
}
</mat-form-field>
<button
mat-raised-button
color="primary"
type="submit"
[disabled]="isSubmitting"
class="full-width submit-btn"
>
@if (isSubmitting) {
<mat-spinner diameter="20" class="inline-spinner"></mat-spinner>
} @else {
<fa-icon icon="paper-plane" class="mr-05"></fa-icon> {{ 'labels.text.Submit Escalation' | translate }}
}
</button>
</form>
}
</mat-card-content>
</mat-card>
<!-- Instructions Panel -->
<mat-card class="instructions-card">
<mat-card-header>
<mat-card-title>
<fa-icon icon="info-circle" class="mr-05"></fa-icon> {{ 'labels.text.Escalation Guidelines' | translate }}
</mat-card-title>
</mat-card-header>
<mat-card-content>
<div class="guidelines">
<div class="guideline-item">
<fa-icon icon="check" class="guideline-icon"></fa-icon>
<p>{{ 'labels.text.Verify the complaint details before escalating to the next bank.' | translate }}</p>
</div>
<div class="guideline-item">
<fa-icon icon="check" class="guideline-icon"></fa-icon>
<p>
{{
'labels.text.Ensure the Next Hop Account and IFSC belong to the next bank in the fraud transaction chain.'
| translate
}}
</p>
</div>
<div class="guideline-item">
<fa-icon icon="check" class="guideline-icon"></fa-icon>
<p>{{ 'labels.text.Provide clear and detailed remarks explaining the escalation reason.' | translate }}</p>
</div>
<div class="guideline-item">
<fa-icon icon="exclamation-triangle" class="guideline-icon warn"></fa-icon>
<p>{{ 'labels.text.Escalation must be completed within the I4C/MHA mandated timeline.' | translate }}</p>
</div>
<div class="guideline-item">
<fa-icon icon="exclamation-triangle" class="guideline-icon warn"></fa-icon>
<p>
{{
'labels.text.Once escalated, the complaint will be forwarded to the target bank for action.' | translate
}}
</p>
</div>
</div>
<div class="bank-info">
<h4>{{ 'labels.text.Current Bank Info' | translate }}</h4>
<div class="bank-row">
<span>{{ 'labels.text.Bank Name' | translate }}:</span> <strong>LincPay</strong>
</div>
<div class="bank-row">
<span>{{ 'labels.text.Bank IFSC' | translate }}:</span> <strong class="mono">LINC0000001</strong>
</div>
</div>
</mat-card-content>
</mat-card>
</div>
</div>