Skip to content

Commit

Permalink
feat(NotificationsOverview): add empty fields state
Browse files Browse the repository at this point in the history
See: BEDS-860
  • Loading branch information
benji-bitfly committed Oct 24, 2024
1 parent a5bc428 commit 21d9cde
Showing 1 changed file with 34 additions and 20 deletions.
54 changes: 34 additions & 20 deletions frontend/components/notifications/NotificationsOverview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -100,31 +100,41 @@ const emit = defineEmits<{
{{ $t('notifications.overview.headers.most_notifications_30d') }}
</h3>
<div class="lists-container">
<BcScreenreaderOnly tag="h4">
{{ $t('notifications.overview.headers.validator_groups') }}
</BcScreenreaderOnly>
<ol class="icon-list">
<li v-for="group in vdbMostNotifiedGroups" :key="group" class="small_text list-item">
<FontAwesomeIcon :icon="faDesktop" />
<span class="list-text">
{{ group }}
</span>
</li>
</ol>
<BcFeatureFlag feature="feature-account_dashboards">
<div class="lists-container-column">
<BcScreenreaderOnly tag="h4">
{{ $t('notifications.overview.headers.account_groups') }}
{{ $t('notifications.overview.headers.validator_groups') }}
</BcScreenreaderOnly>
<ol
class="icon-list"
>
<li v-for="group in adbMostNotifiedGroups" :key="group" class="small_text list-item">
<FontAwesomeIcon :icon="faUser" />
<ol class="icon-list">
<li
v-for="(group, index) in vdbMostNotifiedGroups"
:key="group"
class="small_text list-item"
>
<FontAwesomeIcon :icon="faDesktop" />
<span class="list-text">
{{ group }}
{{ index + 1 }}. {{ group || '-' }}
</span>
</li>
</ol>
</div>
<BcFeatureFlag feature="feature-account_dashboards">
<div class="lists-container-column">
<BcScreenreaderOnly tag="h4">
{{ $t('notifications.overview.headers.account_groups') }}
</BcScreenreaderOnly>
<ol class="icon-list">
<li
v-for="(group, index) in adbMostNotifiedGroups"
:key="group"
class="small_text list-item"
>
<FontAwesomeIcon :icon="faUser" />
<span class="list-text">
{{ index + 1 }}. {{ group || '-' }}
</span>
</li>
</ol>
</div>
</BcFeatureFlag>
</div>
</section>
Expand Down Expand Up @@ -203,7 +213,11 @@ a:hover {
}
.lists-container {
display: flex;
gap: 20px;
gap: 1.25rem;
}
.lists-container-column {
flex: 1;
min-width: 0;
}
.icon-list {
min-width: 0;
Expand Down

0 comments on commit 21d9cde

Please sign in to comment.