feat: redesign all dialogs, file upload, address/nominee/identifier tabs

- File upload: compact dashed zone (54px height), inline icon+filename+change
- Dialogs: no scroll, rounded close button (red on hover), 700px width
- Identifier dialog: 2-column grid, section divider, outline fields
- Nominee: new NomineeDialogComponent popup (replaces page navigation)
- Address tab: card panels, status badges, 3-column grid
- Nominee tab: accordion with badges, 3-column grid
- Shared form dialog: outline fields, fixed close button

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Aditya
2026-03-21 00:09:59 +05:30
co-authored by Claude Opus 4.6
parent b7f612c2f6
commit 97f30ac3c1
17 changed files with 1589 additions and 281 deletions
@@ -6,23 +6,20 @@
file, You can obtain one at http://mozilla.org/MPL/2.0/.
-->
<div class="layout-row layout-lt-md-column gap-2percent">
<mat-form-field [ngStyle]="{ flex: '0 0 ' + (flex || '83%') }">
<input
matInput
[readonly]="true"
[value]="fileName || ''"
placeholder="{{ 'labels.text.NoFileSelected' | translate }}"
/>
</mat-form-field>
<span class="flex-10 align-center">
<button mat-button (click)="uploadFile.click()">
<fa-icon icon="folder-open" size="lg"></fa-icon>
&nbsp;&nbsp;
{{ 'labels.buttons.Browse' | translate }}
</button>
</span>
<div class="file-upload-zone" (click)="uploadFile.click()">
@if (fileName) {
<div class="file-upload-zone__selected">
<i class="fa fa-file-o file-upload-zone__file-icon"></i>
<span class="file-upload-zone__filename">{{ fileName }}</span>
<span class="file-upload-zone__change">Change</span>
</div>
} @else {
<div class="file-upload-zone__empty">
<i class="fa fa-cloud-upload file-upload-zone__upload-icon"></i>
<span class="file-upload-zone__text">{{ 'labels.buttons.Browse' | translate }}</span>
<span class="file-upload-zone__hint">{{ 'labels.text.NoFileSelected' | translate }}</span>
</div>
}
</div>
<input type="file" #uploadFile accept="{{ acceptFilter }}" (change)="onFileSelect($event)" [style.display]="'none'" />
@@ -5,3 +5,83 @@
* 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/.
*/
$primary: #1a73e8;
$primary-light: #e8f0fe;
$gray-50: #f8f9fa;
$gray-100: #f1f3f4;
$gray-200: #e8eaed;
$gray-500: #9aa0a6;
$gray-700: #5f6368;
$gray-900: #202124;
.file-upload-zone {
border: 1.5px dashed $gray-200;
border-radius: 8px;
padding: 10px 14px;
cursor: pointer;
transition: all 0.15s ease;
background: $gray-50;
height: 54px;
display: flex;
align-items: center;
justify-content: center;
&:hover {
border-color: $primary;
background: $primary-light;
}
&__empty {
display: flex;
align-items: center;
gap: 8px;
}
&__upload-icon {
font-size: 16px;
color: $primary;
}
&__text {
font-size: 12px;
font-weight: 600;
color: $primary;
}
&__hint {
font-size: 11px;
color: $gray-500;
margin-left: 4px;
}
&__selected {
display: flex;
align-items: center;
gap: 8px;
}
&__file-icon {
font-size: 14px;
color: $primary;
}
&__filename {
font-size: 12px;
font-weight: 500;
color: $gray-900;
max-width: 180px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
&__change {
font-size: 10px;
font-weight: 600;
color: $primary;
padding: 1px 6px;
background: $primary-light;
border-radius: 3px;
}
}
@@ -40,28 +40,47 @@ $white: #fff;
}
.fd-close {
width: 32px !important;
height: 32px !important;
line-height: 32px !important;
width: 36px !important;
height: 36px !important;
min-width: 36px !important;
padding: 0 !important;
display: flex !important;
align-items: center;
justify-content: center;
color: $gray-500;
transition: color 0.15s ease, background 0.15s ease;
border: 1px solid $gray-200;
border-radius: 8px !important;
background: $white;
cursor: pointer;
transition: all 0.15s ease;
flex-shrink: 0;
&:hover {
color: $gray-900;
background: $gray-100;
border-radius: 50%;
color: $white;
background: #ea4335;
border-color: #ea4335;
}
i {
font-size: 14px;
font-size: 13px;
line-height: 1;
}
}
// Content area
.fd-content {
padding: 20px 24px !important;
max-height: 65vh;
overflow-y: auto;
overflow: visible !important;
max-height: none !important;
&::-webkit-scrollbar {
width: 4px;
}
&::-webkit-scrollbar-thumb {
background: $gray-200;
border-radius: 4px;
}
}
.fd-grid {
@@ -9,7 +9,7 @@
<div [formGroup]="form" class="flex-fill">
@if (formfield.controlType === 'input' || formfield.controlType === 'select') {
<div class="flex-fill">
<mat-form-field class="flex-fill">
<mat-form-field class="flex-fill" appearance="outline">
<mat-label>{{ formfield.label }}</mat-label>
@if (formfield.controlType === 'input') {
<input