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
@@ -6,6 +6,37 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
.step-header {
background: #0f172a;
padding: 16px 24px;
border-radius: 10px 10px 0 0;
margin-bottom: 20px;
&__left {
display: flex;
align-items: center;
gap: 12px;
}
&__icon {
font-size: 18px;
color: #60a5fa;
}
&__title {
font-size: 16px;
font-weight: 600;
color: #fff;
margin: 0;
}
&__sub {
font-size: 11px;
color: rgba(255, 255, 255, 0.5);
margin: 2px 0 0;
}
}
.preview-container {
display: flex;
flex-direction: column;
@@ -134,7 +165,75 @@
justify-content: center;
}
/* ── Info Table (Key-Value pairs) ── */
/* ── Preview Grid (replaces info-table) ── */
.preview-grid {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
gap: 0;
}
.preview-field {
display: flex;
flex-direction: column;
gap: 4px;
padding: 12px 16px;
border-bottom: 1px solid rgba(0, 0, 0, 0.04);
border-right: 1px solid rgba(0, 0, 0, 0.04);
&:nth-child(3n) {
border-right: none;
}
&.full-width {
grid-column: 1 / -1;
border-right: none;
}
}
.preview-label {
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.04em;
color: rgba(0, 0, 0, 0.45);
}
.preview-value {
font-size: 14px;
font-weight: 500;
color: #1a1a1a;
&.no-data {
color: rgba(0, 0, 0, 0.3);
font-style: italic;
font-weight: 400;
}
}
/* ── Preview Badges ── */
.preview-badge {
display: inline-flex;
align-items: center;
gap: 4px;
font-size: 12px;
font-weight: 600;
padding: 2px 10px;
border-radius: 12px;
&--verified {
background: #ecfdf5;
color: #059669;
border: 1px solid #a7f3d0;
}
&--pending {
background: #fffbeb;
color: #d97706;
border: 1px solid #fde68a;
}
}
/* ── Legacy Info Table (keep for backward compat) ── */
.info-table {
width: 100%;
border-collapse: collapse;
@@ -246,6 +345,36 @@
letter-spacing: 1px;
}
/* ── Address Blocks ── */
.address-block {
margin-bottom: 16px;
padding-bottom: 16px;
border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
&:last-child {
margin-bottom: 0;
padding-bottom: 0;
border-bottom: none;
}
}
.address-block__title {
font-size: 12px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.04em;
color: #1074b9;
margin-bottom: 10px;
padding-left: 2px;
}
/* ── Info badge ── */
.preview-badge--info {
background: #eff6ff;
color: #1074b9;
border: 1px solid #bfdbfe;
}
/* ── Submit Section ── */
.submit-section {
display: flex;
@@ -270,6 +399,17 @@
}
/* ── Responsive ── */
@media (max-width: 960px) {
.preview-grid {
grid-template-columns: 1fr 1fr;
}
.preview-field {
&:nth-child(3n) { border-right: 1px solid rgba(0, 0, 0, 0.04); }
&:nth-child(2n) { border-right: none; }
}
}
@media (max-width: 768px) {
.profile-card {
flex-direction: column;
@@ -281,10 +421,12 @@
justify-content: center;
}
.info-table {
.info-label {
width: 45%;
}
.preview-grid {
grid-template-columns: 1fr;
}
.preview-field {
border-right: none !important;
}
.data-table {
@@ -294,4 +436,124 @@
font-size: 12px;
}
}
.fm-preview-row {
flex-wrap: wrap;
}
}
/* Empty state with warning */
.preview-empty {
display: flex;
align-items: center;
gap: 10px;
padding: 16px;
font-size: 13px;
color: #64748b;
background: #f8fafc;
border: 1px dashed #e2e8f0;
border-radius: 8px;
}
.preview-empty--warn {
background: #fef2f2;
border-color: #fca5a5;
color: #991b1b;
}
.preview-empty__icon {
font-size: 20px !important;
width: 20px !important;
height: 20px !important;
color: #dc2626;
}
/* Family member preview rows */
.fm-preview-list {
display: flex;
flex-direction: column;
gap: 0;
border: 1px solid #e2e8f0;
border-radius: 8px;
overflow: hidden;
}
.fm-preview-row {
display: flex;
align-items: center;
gap: 10px;
padding: 10px 14px;
border-bottom: 1px solid #f1f5f9;
transition: background 0.1s;
&:last-child { border-bottom: none; }
&:hover { background: #f8fafc; }
}
.fm-preview-row__sno {
flex: 0 0 24px;
text-align: center;
font-size: 11px;
font-weight: 600;
color: #94a3b8;
}
.fm-preview-row__avatar {
flex: 0 0 32px;
width: 32px;
height: 32px;
border-radius: 50%;
background: #dbeafe;
display: flex;
align-items: center;
justify-content: center;
color: #1565c0;
mat-icon {
font-size: 18px;
width: 18px;
height: 18px;
}
}
.fm-preview-row__info {
flex: 1;
min-width: 0;
}
.fm-preview-row__name {
display: block;
font-size: 13px;
font-weight: 600;
color: #1e293b;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.fm-preview-row__meta {
display: block;
font-size: 11px;
color: #64748b;
}
.fm-preview-row__ids {
display: flex;
gap: 8px;
flex-shrink: 0;
}
.fm-preview-id {
font-size: 11px;
font-family: 'Roboto Mono', monospace;
color: #475569;
padding: 2px 8px;
background: #f1f5f9;
border-radius: 4px;
}
.fm-preview-row__status {
display: flex;
gap: 4px;
flex-shrink: 0;
}