• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

geonetwork / geonetwork-ui / 17860518616

19 Sep 2025 02:01PM UTC coverage: 84.469% (+0.07%) from 84.4%
17860518616

push

github

web-flow
Merge pull request #1355 from geonetwork/dh-download-links-forkjoin-inner-errors

[Datahub]: download links fixes on errors

3795 of 5026 branches covered (75.51%)

Branch coverage included in aggregate %.

3 of 3 new or added lines in 1 file covered. (100.0%)

113 existing lines in 31 files now uncovered.

10824 of 12281 relevant lines covered (88.14%)

353.76 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

54.55
/libs/ui/elements/src/lib/notification/notification.component.ts
1
import {
1✔
2
  ChangeDetectionStrategy,
3
  Component,
4
  EventEmitter,
5
  Input,
6
  Output,
7
} from '@angular/core'
8
import { CommonModule } from '@angular/common'
1✔
9
import { ButtonComponent } from '@geonetwork-ui/ui/inputs'
1✔
10
import {
1✔
11
  NgIconComponent,
12
  provideIcons,
13
  provideNgIconsConfig,
14
} from '@ng-icons/core'
15
import { matCheckCircleOutline } from '@ng-icons/material-icons/baseline'
1✔
16
import {
1✔
17
  matErrorOutlineOutline,
18
  matWarningAmberOutline,
19
  matInfoOutline,
20
  matCloseOutline,
21
} from '@ng-icons/material-icons/outline'
22

23
@Component({
24
  selector: 'gn-ui-notification',
25
  standalone: true,
26
  imports: [CommonModule, ButtonComponent, NgIconComponent],
27
  providers: [
28
    provideIcons({
29
      matCheckCircleOutline,
30
      matErrorOutlineOutline,
31
      matWarningAmberOutline,
32
      matInfoOutline,
33
      matCloseOutline,
34
    }),
35
    provideNgIconsConfig({
36
      size: '1.5em',
37
    }),
38
  ],
39
  templateUrl: './notification.component.html',
40
  styleUrls: ['./notification.component.css'],
41
  changeDetection: ChangeDetectionStrategy.OnPush,
42
})
43
export class NotificationComponent {
1✔
44
  @Input() type: 'info' | 'warning' | 'error' | 'success' = 'info'
1✔
45
  @Input() title: string
46
  @Input() text: string
47
  @Input() closeMessage?: string
48
  @Output() notificationClose = new EventEmitter<void>()
1✔
49

50
  handleClose(event?: Event) {
51
    event?.preventDefault()
×
UNCOV
52
    this.notificationClose.emit()
×
53
  }
54

55
  getIconName(type: string): string {
56
    switch (type) {
1!
57
      case 'success':
UNCOV
58
        return 'matCheckCircleOutline'
×
59
      case 'info':
60
        return 'matInfoOutline'
1✔
61
      case 'warning':
UNCOV
62
        return 'matWarningAmberOutline'
×
63
      case 'error':
UNCOV
64
        return 'matErrorOutlineOutline'
×
65
      default:
UNCOV
66
        return ''
×
67
    }
68
  }
69
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc