Edit-mode now shows the previously selected KYC document type + uploaded file thumbnail
(loads from /clients/{id}/identifiers + /client_identifiers/{id}/documents). Same for
address proof on the India address step. Closes the gap where editing a client showed
an empty file picker even when proof had been uploaded on create.
Identifier-save hardened across all three callsites (create-client, edit-client,
identities-tab.createIdentifierWithDocs) - the KYC chip picker proofId is a CODE
string ('AADHAAR'), but backend ClientIdentifierRequest.documentTypeId is Long, which
Spring rejects with HttpMessageNotReadableException -> 400. resolveDocumentTypeId
helper looks up the code against /kyc/proof-types?type=id and substitutes the numeric
CodeValue id before posting. Skips silently for constitution-specific non-individual
docs that have no CodeValue mapping.
KYC payload normalises panNumber / enterprisePan / gstinNumber / cinNumber via
toUpperCase + whitespace strip so user-typed lowercase or trailing spaces don't trip
the backend regex (validation.msg.CLIENTKYC.panNumber.does.not.match.regexp).
State name match in client-address save now normalises both sides (lowercase, collapse
underscores + spaces) so legacy MADHYA_PRADESH resolves to 'Madhya Pradesh' returned
by api.postalpincode.in. Backed by tenant migration 0297.
Identities-tab resolver flattened - was returning identifiers before the per-row
forkJoin(getClientIdentificationDocuments) completed, so the view rendered empty
documents arrays. Now uses switchMap + forkJoin so the resolver awaits completion.
Also bundles concurrent work-in-progress on letter-mgmt, organization, users,
bank-calendar, shell, nominee/notes/identifier dialogs, and theming.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
164 lines
3.4 KiB
SCSS
164 lines
3.4 KiB
SCSS
/**
|
|
* 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/.
|
|
*/
|
|
|
|
.section-block {
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.section-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.section-title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
color: #333;
|
|
margin: 0;
|
|
|
|
.section-icon {
|
|
color: var(--md-sys-color-primary, #1074b9);
|
|
font-size: 14px;
|
|
}
|
|
}
|
|
|
|
.add-btn {
|
|
font-size: 13px;
|
|
}
|
|
|
|
.empty-state {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 24px 16px;
|
|
color: rgb(0 0 0 / 45%);
|
|
font-size: 14px;
|
|
background: rgb(0 0 0 / 2%);
|
|
border-radius: 6px;
|
|
border: 1px dashed rgb(0 0 0 / 12%);
|
|
|
|
.empty-icon {
|
|
font-size: 18px;
|
|
}
|
|
}
|
|
|
|
.address-panel {
|
|
margin-bottom: 8px;
|
|
|
|
.panel-icon {
|
|
margin-right: 8px;
|
|
font-size: 13px;
|
|
color: rgb(0 0 0 / 45%);
|
|
}
|
|
}
|
|
|
|
.address-actions {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
align-items: center;
|
|
gap: 4px;
|
|
margin: 8px 0 4px;
|
|
}
|
|
|
|
.address-details {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 8px 24px;
|
|
padding: 8px 0;
|
|
}
|
|
|
|
.detail-row {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
}
|
|
|
|
.detail-label {
|
|
font-size: 12px;
|
|
color: rgb(0 0 0 / 50%);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.detail-value {
|
|
font-size: 14px;
|
|
color: #333;
|
|
}
|
|
|
|
@media (width <= 768px) {
|
|
.section-header {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 12px;
|
|
}
|
|
|
|
.address-details {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
/* ═══════════════════════════════════════════════════════════════
|
|
Read-only / disabled form-field overrides
|
|
─── Mirrors the India-address step so view-mode addresses stay
|
|
legible instead of looking ghosted at 0.38 opacity.
|
|
═══════════════════════════════════════════════════════════════ */
|
|
:host ::ng-deep {
|
|
.mat-mdc-form-field.mat-form-field-appearance-outline.mat-form-field-disabled {
|
|
opacity: 1;
|
|
|
|
.mat-mdc-input-element,
|
|
input.mat-mdc-input-element,
|
|
textarea.mat-mdc-input-element {
|
|
color: #0f172a !important;
|
|
-webkit-text-fill-color: #0f172a !important;
|
|
font-weight: 600;
|
|
caret-color: transparent;
|
|
}
|
|
|
|
.mat-mdc-floating-label,
|
|
.mdc-floating-label {
|
|
color: #64748b !important;
|
|
opacity: 1 !important;
|
|
}
|
|
|
|
.mdc-notched-outline__leading,
|
|
.mdc-notched-outline__notch,
|
|
.mdc-notched-outline__trailing {
|
|
border-color: #cbd5e1 !important;
|
|
border-width: 1px !important;
|
|
}
|
|
|
|
.field-prefix-icon mat-icon,
|
|
.mat-mdc-form-field-icon-prefix mat-icon,
|
|
.mat-mdc-form-field-icon-suffix mat-icon {
|
|
color: #475569 !important;
|
|
opacity: 1;
|
|
}
|
|
|
|
.mat-mdc-form-field-hint {
|
|
color: #64748b !important;
|
|
opacity: 1;
|
|
}
|
|
|
|
.mat-mdc-select-value-text,
|
|
.mat-mdc-select-value {
|
|
color: #0f172a !important;
|
|
-webkit-text-fill-color: #0f172a !important;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.mat-mdc-select-arrow {
|
|
color: #94a3b8 !important;
|
|
}
|
|
}
|
|
}
|