feat(election,family): family member KYC display, collapsible cards, linked/manual badges, create-as-client flow

- nomination-apply: show full KYC for linked family members via nested forkJoin, accordion expand/collapse cards, owner chips on KYC headers, 'Create as Client' button for manual entries
- family-members-tab: show Linked Client / Manual Entry badges, entry type in detail grid, 'Create as Client' button navigating with prefill state
- create-client + client-general-step: accept prefillData @Input from navigation state, patch form fields from family member data
- Add MPL-2.0 headers to all election module files

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Jaanu423
2026-06-19 17:30:29 +05:30
co-authored by Claude Sonnet 4.6
parent 822fa4c68d
commit 10b301c30c
38 changed files with 7846 additions and 131 deletions
@@ -0,0 +1,311 @@
/**
* 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/.
*/
.candidate-board {
padding: 24px;
max-width: 1300px;
margin: 0 auto;
}
.page-header {
display: flex;
align-items: flex-start;
gap: 12px;
margin-bottom: 24px;
.back-link {
color: #718096;
text-decoration: none;
display: flex;
align-items: center;
margin-top: 4px;
}
h2 {
font-size: 22px;
font-weight: 600;
margin: 0 0 4px;
}
.sub-title {
font-size: 14px;
color: #718096;
margin: 0;
}
.btn-outline {
margin-left: auto;
display: inline-flex;
align-items: center;
gap: 4px;
background: #f7f8fc;
color: #4a6cf7;
border: 1px solid #e2e8f0;
padding: 8px 16px;
border-radius: 8px;
text-decoration: none;
font-size: 14px;
mat-icon {
font-size: 18px;
}
}
}
.filter-row {
display: flex;
align-items: center;
gap: 16px;
margin-bottom: 24px;
flex-wrap: wrap;
.total-badge {
background: #edf2f7;
color: #4a5568;
padding: 6px 14px;
border-radius: 20px;
font-size: 13px;
font-weight: 600;
}
.post-filter {
display: flex;
gap: 8px;
flex-wrap: wrap;
}
.filter-btn {
padding: 6px 14px;
border-radius: 20px;
border: 1px solid #e2e8f0;
background: #fff;
color: #718096;
font-size: 13px;
cursor: pointer;
&.active {
background: #4a6cf7;
color: #fff;
border-color: #4a6cf7;
}
}
}
.post-section {
margin-bottom: 32px;
}
.post-header {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 16px;
h3 {
font-size: 18px;
font-weight: 600;
color: #2d3748;
margin: 0;
}
.seat-count {
font-size: 13px;
color: #718096;
background: #f7fafc;
padding: 3px 10px;
border-radius: 10px;
}
}
.candidates-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
gap: 16px;
}
.candidate-card {
background: #fff;
border-radius: 14px;
box-shadow: 0 2px 8px rgb(0 0 0 / 8%);
padding: 20px;
position: relative;
transition: box-shadow 0.2s;
&:hover {
box-shadow: 0 4px 16px rgb(0 0 0 / 12%);
}
&.inactive {
opacity: 0.5;
}
.serial-badge {
position: absolute;
top: 12px;
right: 12px;
background: #f0f4ff;
color: #4a6cf7;
padding: 2px 10px;
border-radius: 10px;
font-size: 12px;
font-weight: 700;
}
}
.candidate-avatar {
display: flex;
justify-content: center;
margin-bottom: 16px;
img {
width: 80px;
height: 80px;
border-radius: 50%;
object-fit: cover;
border: 3px solid #e2e8f0;
}
.avatar-placeholder {
width: 80px;
height: 80px;
border-radius: 50%;
background: linear-gradient(135deg, #4a6cf7, #7c3aed);
color: #fff;
display: flex;
align-items: center;
justify-content: center;
font-size: 32px;
font-weight: 700;
}
}
.candidate-info {
text-align: center;
h4 {
font-size: 16px;
font-weight: 600;
color: #2d3748;
margin: 0 0 6px;
}
.symbol {
font-size: 12px;
color: #718096;
margin-bottom: 8px;
}
.meta-row {
display: flex;
justify-content: center;
gap: 6px;
flex-wrap: wrap;
margin-bottom: 8px;
span {
font-size: 12px;
background: #f7fafc;
padding: 2px 8px;
border-radius: 10px;
color: #718096;
display: inline-flex;
align-items: center;
gap: 2px;
mat-icon {
font-size: 12px;
height: 12px;
width: 12px;
}
}
}
.brief-profile {
font-size: 12px;
color: #a0aec0;
line-height: 1.5;
text-align: center;
}
}
.candidate-actions {
display: flex;
justify-content: center;
margin-top: 14px;
.btn-remove {
display: inline-flex;
align-items: center;
gap: 4px;
background: #fff5f5;
color: #e53e3e;
border: 1px solid #fed7d7;
padding: 5px 12px;
border-radius: 6px;
font-size: 12px;
cursor: pointer;
mat-icon {
font-size: 14px;
height: 14px;
width: 14px;
}
&:hover {
background: #fed7d7;
}
}
.removed-badge {
background: #edf2f7;
color: #a0aec0;
padding: 5px 12px;
border-radius: 6px;
font-size: 12px;
}
}
.loading-state,
.empty-state {
display: flex;
flex-direction: column;
align-items: center;
padding: 60px;
color: #a0aec0;
mat-icon {
font-size: 56px;
height: 56px;
width: 56px;
margin-bottom: 12px;
}
h3 {
margin: 0 0 8px;
}
p {
margin: 0;
}
}
.spinner {
width: 36px;
height: 36px;
border: 4px solid #e2e8f0;
border-top-color: #4a6cf7;
border-radius: 50%;
animation: spin 0.7s linear infinite;
margin-bottom: 12px;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}