feat: non-individual entity UI improvements — hide individual-only sections, fix legal form display, send extended fields to API

- Hide Family Members tab/section for non-individual entities in client view, create flow, and preview
- Hide Financial & Classification section for non-individual entities in personal data and preview
- Fix legal form column in clients list — fetch legalForm from client API for correct display
- Add person/business icon before client name in list rows
- Remove unsupportedNpd filter — send authorizedSignatory, additionalInfo, dateOfRegistration to API
- Add registration number format hint (mat-hint) based on constitution type
- Add spacing between verification row and constitution type dropdowns
- Reduce table cell padding and prevent action buttons from being clipped
- Add missing MPL-2.0 license headers

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Aditya
2026-04-04 15:10:51 +05:30
co-authored by Claude Opus 4.6
parent ab01111424
commit b890d24bb7
522 changed files with 51991 additions and 21885 deletions
+129 -365
View File
@@ -6,413 +6,177 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
/**
* Glassmorphism Login Form Styles
*/
$accent: #00b4d8;
$teal: #0096c7;
$text-muted: #7a96bc;
// ===== Main Form Container =====
.modern-login-form {
.login-form {
display: flex;
flex-direction: column;
gap: 14px;
width: 100%;
flex: 1;
display: flex;
flex-direction: column;
}
#login-form {
display: flex;
flex-direction: column;
gap: 0.5rem;
max-width: 340px;
margin: 0 auto;
animation: slide-in 0.4s ease-out;
flex: 1;
}
// ===== Tenant Selector Styles =====
::ng-deep .tenant-section {
width: 100%;
// ═══ Field Group ═══
.field-group {
display: flex;
flex-direction: column;
}
mifosx-tenant-selector {
.field-label {
font-size: 0.66rem;
font-weight: 500;
color: $text-muted;
letter-spacing: 0.09em;
text-transform: uppercase;
margin-bottom: 6px;
}
.field-wrap {
position: relative;
input {
display: block;
box-sizing: border-box;
width: 100%;
height: 42px;
background: rgba(255, 255, 255, 0.045);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 8px;
padding: 0 44px 0 38px;
color: #fff;
font-size: 0.82rem;
font-family: 'Inter', sans-serif;
outline: none;
transition: border-color 0.2s, background 0.2s;
#tenant-selector {
width: 100%;
margin-bottom: 0;
.mat-mdc-text-field-wrapper {
border-radius: 14px 14px 0 0;
background: rgb(255 255 255 / 8%);
}
.mat-mdc-form-field-focus-overlay {
border-radius: 14px 14px 0 0;
background-color: rgb(255 255 255 / 5%);
}
&.mat-focused {
.mat-mdc-form-field-focus-overlay {
background-color: rgb(255 255 255 / 8%);
}
}
.mdc-line-ripple::after {
border-bottom-color: #0ea5e9;
}
.mat-mdc-select {
font-size: 1rem;
font-weight: 400;
color: #fff;
}
.mat-mdc-floating-label {
font-size: 1rem;
color: rgb(255 255 255 / 60%);
}
.mat-mdc-form-field-icon-prefix {
padding: 0 0.75rem 0 0.5rem;
color: rgb(255 255 255 / 50%);
fa-icon {
font-size: 1.25rem;
opacity: 0.7;
}
}
&:focus {
border-color: $accent;
background: rgba(0, 180, 216, 0.07);
}
.tenantselector {
width: 100%;
&::placeholder {
color: rgba(255, 255, 255, 0.22);
}
}
}
// ===== Form Fields =====
.login-field {
width: 100%;
margin-bottom: 0;
::ng-deep {
// Field container
.mat-mdc-text-field-wrapper {
border-radius: 14px 14px 0 0;
background: rgb(255 255 255 / 8%);
}
// Focus overlay
.mat-mdc-form-field-focus-overlay {
border-radius: 14px 14px 0 0;
background-color: rgb(255 255 255 / 5%);
}
// Focus state
&.mat-focused {
.mat-mdc-form-field-focus-overlay {
background-color: rgb(255 255 255 / 8%);
}
}
// Bottom indicator line
.mdc-line-ripple::after {
border-bottom-color: #0ea5e9;
}
// Input field
.mat-mdc-input-element {
font-size: 1rem;
font-weight: 400;
color: #fff;
padding: 0.875rem 0;
margin-left: 0;
caret-color: #0ea5e9;
&::placeholder {
color: rgb(255 255 255 / 40%);
opacity: 1;
}
}
// Label
.mat-mdc-floating-label {
font-size: 1rem;
color: rgb(255 255 255 / 60%);
left: 0 !important;
}
// Prefix icon
.mat-mdc-form-field-icon-prefix {
padding: 0 0.75rem 0 0.5rem;
color: rgb(255 255 255 / 50%);
fa-icon {
font-size: 1.25rem;
opacity: 0.7;
}
}
// Form field infix
.mat-mdc-form-field-infix {
padding-left: 0;
}
// Suffix button (password toggle)
.mat-mdc-form-field-icon-suffix {
button {
background: transparent;
border: none;
color: rgb(255 255 255 / 50%);
transition: all 0.2s ease;
&:hover {
color: rgb(255 255 255 / 80%);
}
}
}
// Error state
&.mat-form-field-invalid {
.mdc-line-ripple::after {
border-bottom-color: #f87171;
}
.mat-mdc-form-field-icon-prefix fa-icon {
color: #f87171;
}
}
// Error message
.mat-mdc-form-field-error {
font-size: 0.75rem;
margin-top: 0.25rem;
color: #f87171;
}
}
.field-icon {
position: absolute;
left: 12px;
top: 50%;
transform: translateY(-50%);
font-size: 0.9rem;
pointer-events: none;
line-height: 1;
}
// ===== Remember Me & Options Row =====
.login-options-row {
.eye-btn {
position: absolute;
right: 0;
top: 0;
height: 100%;
width: 42px;
background: none;
border: none;
cursor: pointer;
color: $text-muted;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0.25rem 0;
margin-top: 0.25rem;
justify-content: center;
font-size: 0.85rem;
transition: opacity 0.2s;
&:hover { opacity: 0.8; }
}
.remember-me-checkbox {
::ng-deep {
.mdc-checkbox {
.mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate='true'])
~ .mdc-checkbox__background {
border-color: rgb(255 255 255 / 40%);
}
.field-error {
font-size: 0.72rem;
color: #f87171;
margin-top: 4px;
}
.mdc-checkbox__native-control:enabled:checked ~ .mdc-checkbox__background,
.mdc-checkbox__native-control:enabled:indeterminate ~ .mdc-checkbox__background {
background-color: #0ea5e9;
border-color: #0ea5e9;
}
// ═══ Remember Me ═══
.remember-row {
padding: 2px 0;
}
.remember-checkbox {
::ng-deep {
.mdc-checkbox .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate='true'])
~ .mdc-checkbox__background {
border-color: rgba(255, 255, 255, 0.4);
}
.mdc-checkbox .mdc-checkbox__native-control:enabled:checked ~ .mdc-checkbox__background {
background-color: $accent;
border-color: $accent;
}
.mdc-label {
color: rgb(255 255 255 / 70%);
font-size: 0.85rem;
font-weight: 400;
color: rgba(255, 255, 255, 0.7);
font-size: 0.82rem;
}
}
}
// ===== Loading Progress =====
// ═══ Progress Bar ═══
.login-progress {
height: 3px;
border-radius: 4px;
margin: -0.5rem 0 0.5rem;
::ng-deep {
.mdc-linear-progress__bar-inner {
border-color: #0ea5e9;
}
.mdc-linear-progress__buffer-bar {
background-color: rgb(255 255 255 / 10%);
}
.mdc-linear-progress__bar-inner { border-color: $accent; }
.mdc-linear-progress__buffer-bar { background-color: rgba(255, 255, 255, 0.1); }
}
}
// ===== Submit Button =====
.login-submit-button {
min-height: 48px;
margin-top: 0.75rem;
::ng-deep {
md-filled-button,
.mdc-button {
font-size: 1rem;
font-weight: 600;
letter-spacing: 0.02em;
border-radius: 14px;
}
}
.button-spinner {
margin-left: 0.75rem;
::ng-deep circle {
stroke: currentcolor;
}
}
// ═══ Login Button ═══
.btn-wrap {
margin-top: 10px;
}
// ===== OIDC Login =====
.oidc-login-container {
width: 100%;
padding: 1rem 0;
}
.oidc-login-content {
display: flex;
flex-direction: column;
gap: 1.5rem;
text-align: center;
}
.oidc-description {
font-size: 0.95rem;
color: rgb(255 255 255 / 60%);
.btn-login {
-webkit-appearance: none;
appearance: none;
display: block;
box-sizing: border-box;
width: 100% !important;
min-width: 100%;
height: 42px;
padding: 0 14px;
margin: 0;
line-height: 1.5;
background: linear-gradient(90deg, $teal, $accent);
border: none;
border-radius: 8px;
color: #fff;
font-family: 'Inter', sans-serif;
font-size: 1rem;
font-weight: 700;
letter-spacing: 0.12em;
line-height: 42px;
text-align: center;
text-transform: uppercase;
cursor: pointer;
transition: opacity 0.2s, transform 0.1s;
box-shadow: 0 4px 20px rgba(0, 180, 216, 0.25);
&:hover { opacity: 0.88; transform: translateY(-1px); }
&:active { transform: translateY(0); }
&:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
}
.oidc-logged-in {
display: flex;
flex-direction: column;
gap: 2rem;
}
.welcome-message {
display: flex;
flex-direction: column;
align-items: center;
gap: 1rem;
padding: 2rem;
background: rgb(14 165 233 / 15%);
border-radius: 16px;
border: 1px solid rgb(14 165 233 / 20%);
.success-icon {
font-size: 3rem;
color: #0ea5e9;
}
h3 {
margin: 0;
font-size: 1.25rem;
font-weight: 600;
color: #fff;
}
}
.oidc-actions {
display: flex;
gap: 1rem;
flex-wrap: wrap;
mifosx-m3-button {
flex: 1;
min-width: 140px;
}
}
.protected-data {
padding: 1rem;
background: rgb(255 255 255 / 6%);
border-radius: 12px;
border: 1px solid rgb(255 255 255 / 10%);
max-height: 300px;
overflow: auto;
pre {
margin: 0;
font-size: 0.875rem;
font-family: 'Courier New', monospace;
color: rgb(255 255 255 / 80%);
white-space: pre-wrap;
word-wrap: break-word;
}
}
// ===== Responsive Design =====
/* stylelint-disable-next-line media-feature-range-notation -- Safari compatibility */
@media (max-width: 768px) {
#login-form {
gap: 0.25rem;
}
.login-field {
margin-bottom: 0;
}
.login-submit-button {
margin-top: 0.5rem;
}
.login-options-row {
padding: 0.15rem 0;
}
}
/* stylelint-disable-next-line media-feature-range-notation -- Safari compatibility */
@media (max-width: 480px) {
#login-form {
gap: 0.15rem;
}
.login-field {
margin-bottom: 0;
::ng-deep {
.mat-mdc-input-element {
font-size: 0.95rem;
padding: 0.65rem 0.5rem;
}
.mat-mdc-floating-label {
font-size: 0.9rem;
}
.mat-mdc-form-field-icon-prefix {
padding: 0 0.5rem 0 0.35rem;
}
}
}
.login-submit-button {
min-height: 42px;
margin-top: 0.4rem;
}
.remember-me-checkbox {
::ng-deep .mdc-label {
font-size: 0.8rem;
}
}
.oidc-actions {
flex-direction: column;
mifosx-m3-button {
width: 100%;
}
}
}
// ===== Animations =====
// ═══ Animations ═══
@keyframes slide-in {
from {
opacity: 0;
transform: translateY(10px);
}
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
to {
opacity: 1;
transform: translateY(0);
}
// ═══ Responsive ═══
@media (max-width: 480px) {
.field-wrap input { font-size: 0.9rem; padding: 9px 12px 9px 36px; }
.btn-login { padding: 10px; font-size: 0.9rem; }
}