@if (currentKb | async; as kb) {
@if (kbUrl | async; as kbUrl) {
@if (isKbAdmin | async) {
}
@if (configuration | async; as config) {
{{ zone | async }}
{{ config['generative_model'] ? (config['generative_model'] | generativeModel) : '-' }}
{{ (stateLabel | async) || '' | 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) {
}
}
}
@if (isKbContrib | async) {
@if (isRemiMetricsEnabled | async) {
@let healthData = (healthCheckData | async) ?? [];
@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 {
@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 }}
}
}
}
}