Skip to content

Commit c27e758

Browse files
Add components descriptions, fix bug on navigation, align labels, add config example
1 parent b94167a commit c27e758

15 files changed

Lines changed: 118 additions & 13 deletions

File tree

config/config.example.yml

Lines changed: 59 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,9 +427,67 @@ comcolSelectionSort:
427427

428428

429429
# Search settings
430-
search:
430+
search:
431431
# Settings to enable/disable or configure advanced search filters.
432432
advancedFilters:
433433
enabled: false
434434
# List of filters to enable in "Advanced Search" dropdown
435435
filter: [ 'title', 'author', 'subject', 'entityType' ]
436+
437+
438+
# Notify metrics
439+
# Configuration for Notify Admin Dashboard for metrics visualization
440+
notifyMetrics:
441+
# Configuration for received messages
442+
- title: 'admin-notify-dashboard.received-ldn'
443+
boxes:
444+
- color: '#B8DAFF'
445+
title: 'admin-notify-dashboard.NOTIFY.incoming.accepted'
446+
config: 'NOTIFY.incoming.accepted'
447+
description: 'admin-notify-dashboard.NOTIFY.incoming.accepted.description'
448+
- color: '#D4EDDA'
449+
title: 'admin-notify-dashboard.NOTIFY.incoming.processed'
450+
config: 'NOTIFY.incoming.processed'
451+
description: 'admin-notify-dashboard.NOTIFY.incoming.processed.description'
452+
- color: '#FDBBC7'
453+
title: 'admin-notify-dashboard.NOTIFY.incoming.failure'
454+
config: 'NOTIFY.incoming.failure'
455+
description: 'admin-notify-dashboard.NOTIFY.incoming.failure.description'
456+
- color: '#FDBBC7'
457+
title: 'admin-notify-dashboard.NOTIFY.incoming.untrusted'
458+
config: 'NOTIFY.incoming.untrusted'
459+
description: 'admin-notify-dashboard.NOTIFY.incoming.untrusted.description'
460+
- color: '#43515F'
461+
title: 'admin-notify-dashboard.NOTIFY.incoming.involvedItems'
462+
textColor: '#fff'
463+
config: 'NOTIFY.incoming.involvedItems'
464+
description: 'admin-notify-dashboard.NOTIFY.incoming.involvedItems.description'
465+
# Configuration for outgoing messages
466+
- title: 'admin-notify-dashboard.generated-ldn'
467+
boxes:
468+
- color: '#B8DAFF'
469+
title: 'admin-notify-dashboard.NOTIFY.outgoing.queued'
470+
config: 'NOTIFY.outgoing.queued'
471+
description: 'admin-notify-dashboard.NOTIFY.outgoing.queued.description'
472+
- color: '#FDEEBB'
473+
title: 'admin-notify-dashboard.NOTIFY.outgoing.queued_for_retry'
474+
config: 'NOTIFY.outgoing.queued_for_retry'
475+
description: 'admin-notify-dashboard.NOTIFY.outgoing.queued_for_retry.description'
476+
- color: '#FDBBC7'
477+
title: 'admin-notify-dashboard.NOTIFY.outgoing.failure'
478+
config: 'NOTIFY.outgoing.failure'
479+
description: 'admin-notify-dashboard.NOTIFY.outgoing.failure.description'
480+
- color: '#43515F'
481+
title: 'admin-notify-dashboard.NOTIFY.outgoing.involvedItems'
482+
textColor: '#fff'
483+
config: 'NOTIFY.outgoing.involvedItems'
484+
description: 'admin-notify-dashboard.NOTIFY.outgoing.involvedItems.description'
485+
- color: '#D4EDDA'
486+
title: 'admin-notify-dashboard.NOTIFY.outgoing.delivered'
487+
config: 'NOTIFY.outgoing.delivered'
488+
description: 'admin-notify-dashboard.NOTIFY.outgoing.delivered.description'
489+
490+
491+
492+
493+

src/app/admin/admin-notify-dashboard/admin-notify-dashboard.component.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ import { SearchConfigurationService } from '../../core/shared/search/search-conf
2323
}
2424
]
2525
})
26+
27+
/**
28+
* Component used for visual representation and search of LDN messages for Admins
29+
*/
2630
export class AdminNotifyDashboardComponent implements OnInit{
2731

2832
public notifyMetricsRows$: Observable<AdminNotifyMetricsRow[]>;

src/app/admin/admin-notify-dashboard/admin-notify-detail-modal/admin-notify-detail-modal.component.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ import { fadeIn } from '../../../shared/animations/fade';
1212
fadeIn
1313
]
1414
})
15+
/**
16+
* Component for detailed view of LDN messages displayed in search result in AdminNotifyDashboardComponent
17+
*/
18+
1519
export class AdminNotifyDetailModalComponent {
1620
@Input() notifyMessage: AdminNotifyMessage;
1721
@Input() notifyMessageKeys: string[];

src/app/admin/admin-notify-dashboard/admin-notify-logs/admin-notify-incoming/admin-notify-incoming.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div class="container">
22
<div class="row">
33
<div class="col-12">
4-
<h2 class="border-bottom pb-2">{{'admin-notify-dashboard.title'| translate}}</h2>
4+
<h1 class="border-bottom pb-2">{{'admin-notify-dashboard.title'| translate}}</h1>
55
<div>
66
<div>
77
<ul class="nav nav-tabs">
@@ -12,7 +12,7 @@ <h2 class="border-bottom pb-2">{{'admin-notify-dashboard.title'| translate}}</h2
1212
<a class="nav-link active">{{'admin.notify.dashboard.inbound-logs' | translate}}</a>
1313
</li>
1414
<li class="nav-item">
15-
<a class="nav-link" [routerLink]="'../outbound'" [queryParams]="{view: 'table'}">{{'admin.notify.dashboard.outbound-logs' | translate}}</a>
15+
<a class="nav-link" [routerLink]="'../outbound'" [queryParams]="{view: 'table', configuration: 'NOTIFY.outgoing'}">{{'admin.notify.dashboard.outbound-logs' | translate}}</a>
1616
</ul>
1717

1818
<ds-admin-notify-logs-result [defaultConfiguration]="'NOTIFY.incoming'" ></ds-admin-notify-logs-result>

src/app/admin/admin-notify-dashboard/admin-notify-logs/admin-notify-logs-result/admin-notify-logs-result.component.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ import { map } from 'rxjs/operators';
2323
}
2424
]
2525
})
26+
27+
/**
28+
* Component for visualization of search page and related results for the logs of the Notify dashboard
29+
*/
30+
2631
export class AdminNotifyLogsResultComponent implements OnInit {
2732

2833
@Input()

src/app/admin/admin-notify-dashboard/admin-notify-logs/admin-notify-outgoing/admin-notify-outgoing.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<div class="container">
22
<div class="row">
33
<div class="col-12">
4-
<h2 class="border-bottom pb-2">{{'admin-notify-dashboard.title'| translate}}</h2>
4+
<h1 class="border-bottom pb-2">{{'admin-notify-dashboard.title'| translate}}</h1>
55
<div>
66
<div>
77
<ul class="nav nav-tabs">
88
<li class="nav-item">
99
<a class="nav-link" [routerLink]="'../'">{{'admin-notify-dashboard.metrics' | translate}}</a>
1010
</li>
1111
<li class="nav-item">
12-
<a class="nav-link" [routerLink]="'../inbound'" [queryParams]="{view: 'table'}">{{'admin.notify.dashboard.inbound-logs' | translate}}</a>
12+
<a class="nav-link" [routerLink]="'../inbound'" [queryParams]="{view: 'table', configuration: 'NOTIFY.incoming'}">{{'admin.notify.dashboard.inbound-logs' | translate}}</a>
1313
</li>
1414
<li class="nav-item">
1515
<a class="nav-link active">{{'admin.notify.dashboard.outbound-logs' | translate}}</a>

src/app/admin/admin-notify-dashboard/admin-notify-metrics/admin-notify-metrics.component.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ import { ViewMode } from '../../../core/shared/view-mode.model';
77
selector: 'ds-admin-notify-metrics',
88
templateUrl: './admin-notify-metrics.component.html',
99
})
10+
/**
11+
* Component used to display the number of notification for each configured box in the notifyMetrics section
12+
*/
13+
1014
export class AdminNotifyMetricsComponent {
1115

1216
@Input()

src/app/admin/admin-notify-dashboard/admin-notify-metrics/admin-notify-metrics.model.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/**
2+
* The properties for each Box to be displayed in rows in the AdminNotifyMetricsComponent
3+
*/
4+
15
export interface AdminNotifyMetricsBox {
26
color: string;
37
textColor?: string;
@@ -6,7 +10,9 @@ export interface AdminNotifyMetricsBox {
610
config: string;
711
count?: number;
812
}
9-
13+
/**
14+
* The properties for each Row containing a list of AdminNotifyMetricsBox to be displayed in the AdminNotifyMetricsComponent
15+
*/
1016
export interface AdminNotifyMetricsRow {
1117
title: string;
1218
boxes: AdminNotifyMetricsBox[]

src/app/admin/admin-notify-dashboard/admin-notify-search-result/admin-notify-search-result.component.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ import { DatePipe } from '@angular/common';
2929
}
3030
]
3131
})
32+
/**
33+
* Component for visualization in table format of the search results related to the AdminNotifyDashboardComponent
34+
*/
35+
36+
3237
export class AdminNotifySearchResultComponent extends TabulatableResultListElementsComponent<PaginatedList<AdminNotifySearchResult>, AdminNotifySearchResult> implements OnInit, OnDestroy{
3338
public messagesSubject$: BehaviorSubject<AdminNotifyMessage[]> = new BehaviorSubject([]);
3439
public reprocessStatus = 'QUEUE_STATUS_QUEUED_FOR_RETRY';

src/app/shared/notification-box/notification-box.component.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ import { ViewMode } from '../../core/shared/view-mode.model';
1414
templateUrl: './notification-box.component.html',
1515
styleUrls: ['./notification-box.component.scss']
1616
})
17+
/**
18+
* Component to display the count of notifications for each type of LDN message and to access the related filtered search
19+
* (each box works as a filter button setting a specific search configuration)
20+
*/
1721
export class NotificationBoxComponent {
1822
@Input() boxConfig: AdminNotifyMetricsBox;
1923
@Output() selectedBoxConfig: EventEmitter<string> = new EventEmitter();

0 commit comments

Comments
 (0)