Skip to content

Commit 191033f

Browse files
committed
Fix(WEB-114): Implement modern empty state for Group list
1 parent abf9bac commit 191033f

File tree

3 files changed

+47
-3
lines changed

3 files changed

+47
-3
lines changed

src/app/groups/groups.component.html

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,18 @@
2525
</button>
2626
</div>
2727
</div>
28+
<div *ngIf="(dataSource?.records$ | async) === 0" class="empty-state-container">
29+
<div class="m-t-40 m-b-40 text-center">
30+
<fa-icon icon="users" size="6x" class="gray-text m-b-20"></fa-icon>
31+
<h2 class="mat-h2">No Groups Found</h2>
32+
<p class="gray-text">We couldn't find any groups. Try a different search or create one now.</p>
33+
<button mat-raised-button color="primary" [routerLink]="['create']">
34+
<fa-icon icon="plus" class="m-r-10"></fa-icon> Create Your First Group
35+
</button>
36+
</div>
37+
</div>
2838

29-
<table mat-table [dataSource]="dataSource" matSort class="bordered-table">
39+
<table *ngIf="(dataSource?.records$ | async) > 0" mat-table [dataSource]="dataSource" matSort class="bordered-table">
3040
<ng-container matColumnDef="name">
3141
<th mat-header-cell *matHeaderCellDef mat-sort-header>{{ 'labels.inputs.name' | translate }}</th>
3242
<td mat-cell *matCellDef="let group">{{ group.name }}</td>

src/app/groups/groups.component.scss

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,30 @@
77
*/
88

99
@use '../shared/styles/list-layout' as *;
10+
11+
.empty-state-container {
12+
display: flex;
13+
flex-direction: column;
14+
align-items: center;
15+
justify-content: center;
16+
padding: 80px 20px;
17+
background-color: #f9f9f9;
18+
border: 2px dashed #e0e0e0;
19+
border-radius: 12px;
20+
margin: 20px 0;
21+
22+
.gray-text {
23+
color: #757575;
24+
font-size: 1.1rem;
25+
margin-bottom: 25px;
26+
}
27+
28+
fa-icon {
29+
color: #bdbdbd;
30+
}
31+
32+
h2 {
33+
margin-top: 10px;
34+
font-weight: 500;
35+
}
36+
}

src/environments/.env.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
1+
/**
2+
* Copyright since 2025 Mifos Initiative
3+
*
4+
* This Source Code Form is subject to the terms of the Mozilla Public
5+
* License, v. 2.0. If a copy of the MPL was not distributed with this
6+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
7+
*/
18
// IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT OR CHECKIN!
29
/* tslint:disable */
310
export default {
411
'mifos_x': {
5-
'version': '260108',
6-
'hash': 'g5af11fe75'
12+
'version': '260311',
13+
'hash': 'abf9bac6'
714
},
815
'allow_switching_backend_instance': true
916
};

0 commit comments

Comments
 (0)