Skip to content

Commit

Permalink
fix(admin-ui): Add missing search index rebuild trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbromley committed Jul 3, 2023
1 parent e5bea23 commit 92f35d0
Show file tree
Hide file tree
Showing 15 changed files with 52 additions and 28 deletions.
30 changes: 15 additions & 15 deletions packages/admin-ui/i18n-coverage.json
Original file line number Diff line number Diff line change
@@ -1,69 +1,69 @@
{
"generatedOn": "2023-07-01T09:30:04.199Z",
"lastCommit": "9b9119c03487a9b780700e15fad889dd385e5759",
"generatedOn": "2023-07-03T11:38:32.205Z",
"lastCommit": "e5bea23d5ca9be0d266356f78fb59eafe3581647",
"translationStatus": {
"cs": {
"tokenCount": 737,
"tokenCount": 738,
"translatedCount": 544,
"percentage": 74
},
"de": {
"tokenCount": 737,
"tokenCount": 738,
"translatedCount": 737,
"percentage": 100
},
"en": {
"tokenCount": 737,
"tokenCount": 738,
"translatedCount": 737,
"percentage": 100
},
"es": {
"tokenCount": 737,
"tokenCount": 738,
"translatedCount": 737,
"percentage": 100
},
"fr": {
"tokenCount": 737,
"tokenCount": 738,
"translatedCount": 733,
"percentage": 99
},
"it": {
"tokenCount": 737,
"tokenCount": 738,
"translatedCount": 568,
"percentage": 77
},
"pl": {
"tokenCount": 737,
"tokenCount": 738,
"translatedCount": 378,
"percentage": 51
},
"pt_BR": {
"tokenCount": 737,
"tokenCount": 738,
"translatedCount": 737,
"percentage": 100
},
"pt_PT": {
"tokenCount": 737,
"tokenCount": 738,
"translatedCount": 577,
"percentage": 78
},
"ru": {
"tokenCount": 737,
"tokenCount": 738,
"translatedCount": 567,
"percentage": 77
},
"uk": {
"tokenCount": 737,
"tokenCount": 738,
"translatedCount": 567,
"percentage": 77
},
"zh_Hans": {
"tokenCount": 737,
"tokenCount": 738,
"translatedCount": 513,
"percentage": 70
},
"zh_Hant": {
"tokenCount": 737,
"tokenCount": 738,
"translatedCount": 358,
"percentage": 49
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,24 @@
<vdr-ab-right>
<vdr-action-bar-items locationId="product-list"></vdr-action-bar-items>
<a
class="btn btn-primary"
class="button primary mr-1"
[routerLink]="['./create']"
*vdrIfPermissions="['CreateCatalog', 'CreateProduct']"
>
<clr-icon shape="plus"></clr-icon>
{{ 'catalog.create-new-product' | translate }}
</a>
<vdr-dropdown>
<button class="icon-button" vdrDropdownTrigger>
<clr-icon shape="ellipsis-vertical"></clr-icon>
</button>
<vdr-dropdown-menu vdrPosition="bottom-right">
<button type="button" vdrDropdownItem (click)="rebuildSearchIndex()">
<clr-icon shape="refresh" class=""></clr-icon>
{{ 'catalog.rebuild-search-index' | translate }}
</button>
</vdr-dropdown-menu>
</vdr-dropdown>
</vdr-ab-right>
</vdr-action-bar>
</vdr-page-block>
Expand Down
3 changes: 2 additions & 1 deletion packages/admin-ui/src/lib/static/i18n-messages/cs.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@
"products": "",
"public": "Veřejný",
"quick-jump-placeholder": "",
"rebuild-search-index": "Obnovit vyhledávací index",
"reindex-error": "Při regeneraci vyhledávacího indexu došlo k chybě",
"reindex-successful": "Zaindexováno: {count, plural, one {varianta produktu} other {{count} variant produktu}} během {time}ms",
"reindexing": "Regenerovat vyhledávací index",
Expand Down Expand Up @@ -768,4 +769,4 @@
"job-result": "Výsledek úlohy",
"job-state": "Stav úlohy"
}
}
}
3 changes: 2 additions & 1 deletion packages/admin-ui/src/lib/static/i18n-messages/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@
"products": "Produkte",
"public": "Öffentlich",
"quick-jump-placeholder": "Springe direkt zur Variante",
"rebuild-search-index": "Suchindex neu aufbauen",
"reindex-error": "Beim Neuaufbau des Suchindex ist ein Fehler aufgetreten",
"reindex-successful": "{count, plural, one {Produktvariante} other {{count} Produktvarianten}} indiziert in {time}ms",
"reindexing": "Suchindex wird neu aufgebaut",
Expand Down Expand Up @@ -768,4 +769,4 @@
"job-result": "Job-Ergebnis",
"job-state": "Job-Status"
}
}
}
3 changes: 2 additions & 1 deletion packages/admin-ui/src/lib/static/i18n-messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@
"products": "Products",
"public": "Public",
"quick-jump-placeholder": "Quick jump to variant",
"rebuild-search-index": "Rebuild search index",
"reindex-error": "An error occurred while rebuilding search index",
"reindex-successful": "Indexed {count, plural, one {product variant} other {{count} product variants}} in {time}ms",
"reindexing": "Rebuilding search index",
Expand Down Expand Up @@ -768,4 +769,4 @@
"job-result": "Job result",
"job-state": "Job state"
}
}
}
1 change: 1 addition & 0 deletions packages/admin-ui/src/lib/static/i18n-messages/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@
"products": "Productos",
"public": "Público",
"quick-jump-placeholder": "Saltar a la variante",
"rebuild-search-index": "Reconstruir índice de búsqueda",
"reindex-error": "Ha ocurrido un error reconstruyendo el índice de búsqueda",
"reindex-successful": "Indexado {count, plural, one {variante} other {{count} variantes}} en {time}ms",
"reindexing": "Reconstruyendo índice de búsqueda",
Expand Down
3 changes: 2 additions & 1 deletion packages/admin-ui/src/lib/static/i18n-messages/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@
"products": "Produits",
"public": "Public",
"quick-jump-placeholder": "Aller vers la variante",
"rebuild-search-index": "Reconstruire l'index de recherche",
"reindex-error": "Une erreur s'est produite lors de la reconstruction de l'index de recherche",
"reindex-successful": "Indexation {count, plural, one {d'une variation de produit} other {de {count} variations de produit}} en {time} ms",
"reindexing": "Reconstruction de l'index de recherche",
Expand Down Expand Up @@ -768,4 +769,4 @@
"job-result": "Résultat de la tâche",
"job-state": "Etat de la tâche"
}
}
}
3 changes: 2 additions & 1 deletion packages/admin-ui/src/lib/static/i18n-messages/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@
"products": "",
"public": "Pubblico",
"quick-jump-placeholder": "",
"rebuild-search-index": "Ricostruisci indice di ricerca",
"reindex-error": "Si è verificato un errore nella ricostruzione dell'indice di ricerca",
"reindex-successful": "{count, plural, one {Indicizzata una variante prodotto} other {Indicizzate {count} varianti prodotto}} in {time}ms",
"reindexing": "Ricostruzione indice",
Expand Down Expand Up @@ -768,4 +769,4 @@
"job-result": "Risultato operazione",
"job-state": "Stato operazione"
}
}
}
3 changes: 2 additions & 1 deletion packages/admin-ui/src/lib/static/i18n-messages/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@
"products": "",
"public": "",
"quick-jump-placeholder": "",
"rebuild-search-index": "Przebuduj indeks wyszukiwania",
"reindex-error": "Wystąpił błąd podczas przebudowania indeksów",
"reindex-successful": "Zaindeksowano {count, plural, one {wariant produktu} other {{count} wariantów produktu}} w {time}ms",
"reindexing": "Przebudowuje indeksy wyszukiwania",
Expand Down Expand Up @@ -768,4 +769,4 @@
"job-result": "Rezultat zlecenia",
"job-state": "Status zlecenia"
}
}
}
3 changes: 2 additions & 1 deletion packages/admin-ui/src/lib/static/i18n-messages/pt_BR.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@
"products": "Produtos",
"public": "Público",
"quick-jump-placeholder": "Saltar rapidamente para a variante",
"rebuild-search-index": "Reconstruir índice de pesquisa",
"reindex-error": "Ocorreu um erro ao recriar o índice de pesquisa",
"reindex-successful": "Indexado {count, plural, one {product variant} other {{count} product variants}} em {time}ms",
"reindexing": "Reconstruindo o índice de pesquisa",
Expand Down Expand Up @@ -768,4 +769,4 @@
"job-result": "Resultado do trabalho",
"job-state": "Estado do trabalho"
}
}
}
3 changes: 2 additions & 1 deletion packages/admin-ui/src/lib/static/i18n-messages/pt_PT.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@
"products": "",
"public": "Público",
"quick-jump-placeholder": "",
"rebuild-search-index": "Reconstruir índice de pesquisa",
"reindex-error": "Ocorreu um erro ao reconstruir o índice de pesquisa",
"reindex-successful": "{count, plural, one {Variante do produto indexada} other {{count} variantes de produtos indexadas}} em {time}ms",
"reindexing": "A reconstruir o índice de pesquisa",
Expand Down Expand Up @@ -768,4 +769,4 @@
"job-result": "Resultado do trabalho",
"job-state": "Estado do trabalho"
}
}
}
3 changes: 2 additions & 1 deletion packages/admin-ui/src/lib/static/i18n-messages/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@
"products": "",
"public": "Публичный",
"quick-jump-placeholder": "",
"rebuild-search-index": "Восстановить поисковый индекс",
"reindex-error": "Произошла ошибка при перестройке индекса поиска",
"reindex-successful": "Проиндексировано {count, plural, one {вариант товара} other {{count} вариантов товара}} за {time}мс",
"reindexing": "Перестройка поискового индекса",
Expand Down Expand Up @@ -768,4 +769,4 @@
"job-result": "Результат задания",
"job-state": "Состояние задания"
}
}
}
3 changes: 2 additions & 1 deletion packages/admin-ui/src/lib/static/i18n-messages/uk.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@
"products": "",
"public": "Публічний",
"quick-jump-placeholder": "",
"rebuild-search-index": "Відновити пошуковий індекс",
"reindex-error": "Помилка при перебудові індексу пошуку",
"reindex-successful": "Проіндексовано {count, plural, one {варіант товару} other {{count} варіантів товару}} за {time}мс",
"reindexing": "Перебудова пошукового індексу",
Expand Down Expand Up @@ -768,4 +769,4 @@
"job-result": "Результат завдання",
"job-state": "Стан завдання"
}
}
}
3 changes: 2 additions & 1 deletion packages/admin-ui/src/lib/static/i18n-messages/zh_Hans.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@
"products": "",
"public": "公开",
"quick-jump-placeholder": "",
"rebuild-search-index": "重建搜索索引",
"reindex-error": "重建索引失败",
"reindex-successful": "已成功重建{count}个产品索引,耗时{time}毫秒",
"reindexing": "正在重建搜索索引",
Expand Down Expand Up @@ -768,4 +769,4 @@
"job-result": "任务结果",
"job-state": "任务状态"
}
}
}
3 changes: 2 additions & 1 deletion packages/admin-ui/src/lib/static/i18n-messages/zh_Hant.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@
"products": "",
"public": "公開",
"quick-jump-placeholder": "",
"rebuild-search-index": "重建搜尋索引",
"reindex-error": "重建索引失敗",
"reindex-successful": "已成功重建{count}個產品索引,耗时{time}毫秒",
"reindexing": "正在重建搜索索引",
Expand Down Expand Up @@ -768,4 +769,4 @@
"job-result": "",
"job-state": ""
}
}
}

0 comments on commit 92f35d0

Please sign in to comment.