@if (currentKb | async; as kb) { @if (kbUrl | async; as kbUrl) { @if (isKbAdmin | async) { } @if (configuration | async; as config) {
{{ 'dashboard-home.kb-details.region' | translate }}
{{ zone | async }}
{{ 'dashboard-home.kb-details.generative-model' | translate }}
{{ config['generative_model'] ? (config['generative_model'] | generativeModel) : '-' }}
{{ 'dashboard-home.kb-details.status' | translate }}
{{ (stateLabel | async) || '' | translate }}
{{ 'kb.ai-models.tabs.semantic-model' | translate }}
{{ config['default_semantic_model'] || '-' }}
}
@if (isAccountManager | async) { @if ((uploadBlocked | async) || (generativeBlocked | async)) {
{{ 'dashboard-home.blocked.title' | translate }}
@if (uploadBlocked | async) {
{{ 'dashboard-home.blocked.upload' | translate }}
} @if (generativeBlocked | async) {
{{ 'dashboard-home.blocked.generative' | translate }}
}
} }
@if (isAccountManager | async) { @if (searchQueriesCounts | async; as usageCounts) { @if (usageCounts.month.search > 0 || usageCounts.month.chat > 0) {
{{ currentChart.label | translate }} @for (option of chartDropdownOptions; track option.id) { {{ option.label | translate }} }
@if (currentPeriod | async; as currentPeriod) { @if (isSubscribed | async) { {{ currentPeriod.start | date: 'MMM d' : 'UTC' }} - {{ currentPeriod.end | date: 'MMM d' : 'UTC' }} } @else { {{ currentPeriod.start | date: 'MMMM y' : 'UTC' }} } } @for (period of chartPeriods | async; track period.start) { @if (isSubscribed | async) { {{ period.start | date: 'MMM d' : 'UTC' }} - {{ period.end | date: 'MMM d' : 'UTC' }} } @else { {{ period.start | date: 'MMMM y' : 'UTC' }} } }
{{ 'dashboard-home.usage.fullscreen' | translate }}
} } } @if (isKbContrib | async) { @if (isRemiMetricsEnabled | async) { @let healthData = (healthCheckData | async) ?? [];
{{ 'dashboard-home.health-status.title' | translate }} ({{ 'kb.metrics.period.last-7d' | translate }}) @if (healthData.length > 0) { {{ 'home.info.health-status' | translate }} }
@if (healthData.length > 0) { }
@if (healthData.length > 0) { } @else { }
} } @if (isAccountManager | async) { @if (searchQueriesCounts | async; as usageCounts) {
{{ 'dashboard-home.usage.title' | translate }} @if (usageCounts.month.search > 0 || usageCounts.month.chat > 0) { {{ 'home.info.usage' | translate }} }
@if (usageCounts.month.search === 0 && usageCounts.month.chat === 0) { } @else { {{ 'metrics.period.last-30-days' | translate }} {{ 'metrics.period.last-12-months' | translate }} @if (searchQueriesCounts | async; as queriesCount) { {{ 'metrics.search.title' | translate }} @if (locale | async; as locale) { {{ queriesCount.month.search | number: '1.0-0' : locale }} {{ queriesCount.year.search | number: '1.0-0' : locale }} } } @if (searchQueriesCounts | async; as queriesCount) { {{ 'metrics.ask.title' | translate }} @if (locale | async; as locale) { {{ queriesCount.month.chat | number: '1.0-0' : locale }} {{ queriesCount.year.chat | number: '1.0-0' : locale }} } } @if (nucliaTokensCounts | async; as tokenCount) { {{ 'metrics.nuclia-tokens.title' | translate }} @if (locale | async; as locale) { {{ tokenCount.month | number: '1.0-0' : locale }} {{ tokenCount.year | number: '1.0-0' : locale }} } } }
} } @if (!(counters | async)?.resources) {
{{ 'dashboard-home.resources.title' | translate }}
} @else { @if ((counters | async)?.resources) { {{ 'home.info.resources' | translate }} } }
} }