Skip to content

Commit

Permalink
fix(admin-ui): Use SKU to filter product variant list
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbromley committed Jul 3, 2023
1 parent 8669ef4 commit 52a09a4
Show file tree
Hide file tree
Showing 16 changed files with 49 additions and 32 deletions.
56 changes: 28 additions & 28 deletions packages/admin-ui/i18n-coverage.json
Original file line number Diff line number Diff line change
@@ -1,70 +1,70 @@
{
"generatedOn": "2023-07-03T11:38:32.205Z",
"lastCommit": "e5bea23d5ca9be0d266356f78fb59eafe3581647",
"generatedOn": "2023-07-03T12:30:16.598Z",
"lastCommit": "8669ef4b27abfdc1e4446442a1a9d65cb1fd1927",
"translationStatus": {
"cs": {
"tokenCount": 738,
"translatedCount": 544,
"tokenCount": 739,
"translatedCount": 545,
"percentage": 74
},
"de": {
"tokenCount": 738,
"translatedCount": 737,
"tokenCount": 739,
"translatedCount": 738,
"percentage": 100
},
"en": {
"tokenCount": 738,
"translatedCount": 737,
"tokenCount": 739,
"translatedCount": 738,
"percentage": 100
},
"es": {
"tokenCount": 738,
"translatedCount": 737,
"tokenCount": 739,
"translatedCount": 738,
"percentage": 100
},
"fr": {
"tokenCount": 738,
"translatedCount": 733,
"tokenCount": 739,
"translatedCount": 734,
"percentage": 99
},
"it": {
"tokenCount": 738,
"translatedCount": 568,
"tokenCount": 739,
"translatedCount": 569,
"percentage": 77
},
"pl": {
"tokenCount": 738,
"translatedCount": 378,
"tokenCount": 739,
"translatedCount": 379,
"percentage": 51
},
"pt_BR": {
"tokenCount": 738,
"translatedCount": 737,
"tokenCount": 739,
"translatedCount": 738,
"percentage": 100
},
"pt_PT": {
"tokenCount": 738,
"translatedCount": 577,
"tokenCount": 739,
"translatedCount": 578,
"percentage": 78
},
"ru": {
"tokenCount": 738,
"translatedCount": 567,
"tokenCount": 739,
"translatedCount": 568,
"percentage": 77
},
"uk": {
"tokenCount": 738,
"translatedCount": 567,
"tokenCount": 739,
"translatedCount": 568,
"percentage": 77
},
"zh_Hans": {
"tokenCount": 738,
"translatedCount": 513,
"tokenCount": 739,
"translatedCount": 514,
"percentage": 70
},
"zh_Hant": {
"tokenCount": 738,
"translatedCount": 358,
"tokenCount": 739,
"translatedCount": 359,
"percentage": 49
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
/>
<vdr-dt2-search
[searchTermControl]="searchTermControl"
[searchTermPlaceholder]="'catalog.filter-by-name' | translate"
[searchTermPlaceholder]="'catalog.filter-by-sku' | translate"
/>
<vdr-dt2-column [heading]="'common.id' | translate" [hiddenByDefault]="true" [sort]="sorts.get('id')">
<ng-template let-variant="item">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import { Component, Input, OnInit } from '@angular/core';
import { marker as _ } from '@biesbjerg/ngx-translate-extract-marker';
import { ProductVariantListQueryDocument, TypedBaseListComponent } from '@vendure/admin-ui/core';
import {
LogicalOperator,
ProductVariantListQueryDocument,
TypedBaseListComponent,
} from '@vendure/admin-ui/core';

@Component({
selector: 'vdr-product-variant-list',
Expand Down Expand Up @@ -74,7 +78,7 @@ export class ProductVariantListComponent
skip,
take,
filter: {
name: {
sku: {
contains: this.searchTermControl.value,
},
...this.filters.createFilterInput(),
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 @@ -105,6 +105,7 @@
"facet-values": "Hodnoty atributů",
"facets": "",
"filter-by-name": "Filtrovat dle jména",
"filter-by-sku": "",
"filter-inheritance": "",
"filters": "Filtry",
"inherit-filters-from-parent": "",
Expand Down Expand Up @@ -769,4 +770,4 @@
"job-result": "Výsledek úlohy",
"job-state": "Stav úlohy"
}
}
}
1 change: 1 addition & 0 deletions packages/admin-ui/src/lib/static/i18n-messages/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@
"facet-values": "Facettenwerte",
"facets": "Facetten",
"filter-by-name": "Nach Name filtern",
"filter-by-sku": "Nach Artikelnummer filtern",
"filter-inheritance": "Filter Vererbung",
"filters": "Filter",
"inherit-filters-from-parent": "Erbe Filter vom Elternteil",
Expand Down
1 change: 1 addition & 0 deletions packages/admin-ui/src/lib/static/i18n-messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@
"facet-values": "Facet values",
"facets": "Facets",
"filter-by-name": "Filter by name",
"filter-by-sku": "Filter by SKU",
"filter-inheritance": "Filter inheritance",
"filters": "Filters",
"inherit-filters-from-parent": "Inherit filters from parent",
Expand Down
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 @@ -105,6 +105,7 @@
"facet-values": "Valores de faceta",
"facets": "Facets",
"filter-by-name": "Filtrar por nombre",
"filter-by-sku": "Filtrar por código de referencia",
"filter-inheritance": "Herencia de filtros",
"filters": "Filtros",
"inherit-filters-from-parent": "Heredar filtros del nivel superior",
Expand Down
1 change: 1 addition & 0 deletions packages/admin-ui/src/lib/static/i18n-messages/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@
"facet-values": "Valeurs de composant",
"facets": "Composants",
"filter-by-name": "Filtrer par nom",
"filter-by-sku": "Filtrer par UGS",
"filter-inheritance": "Héritage des filtres",
"filters": "Filtres",
"inherit-filters-from-parent": "Hériter les filtres du parent",
Expand Down
1 change: 1 addition & 0 deletions packages/admin-ui/src/lib/static/i18n-messages/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@
"facet-values": "Valori attributo",
"facets": "",
"filter-by-name": "Filtra per nome",
"filter-by-sku": "Filtra per codice SKU",
"filter-inheritance": "",
"filters": "Filtri",
"inherit-filters-from-parent": "",
Expand Down
1 change: 1 addition & 0 deletions packages/admin-ui/src/lib/static/i18n-messages/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@
"facet-values": "Wartości faseta",
"facets": "",
"filter-by-name": "Filtruj po nazwie",
"filter-by-sku": "Filtruj według SKU",
"filter-inheritance": "",
"filters": "Filtry",
"inherit-filters-from-parent": "",
Expand Down
1 change: 1 addition & 0 deletions packages/admin-ui/src/lib/static/i18n-messages/pt_BR.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@
"facet-values": "Valor da Etiqueta",
"facets": "Etiquetas",
"filter-by-name": "Filtrar por nome",
"filter-by-sku": "Filtrar por SKU",
"filter-inheritance": "Filtrar herança",
"filters": "Filtros",
"inherit-filters-from-parent": "Herdar filtros do pai",
Expand Down
1 change: 1 addition & 0 deletions packages/admin-ui/src/lib/static/i18n-messages/pt_PT.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@
"facet-values": "Valor da Etiqueta",
"facets": "",
"filter-by-name": "Filtrar por nome",
"filter-by-sku": "Filtrar por SKU",
"filter-inheritance": "",
"filters": "Filtros",
"inherit-filters-from-parent": "",
Expand Down
1 change: 1 addition & 0 deletions packages/admin-ui/src/lib/static/i18n-messages/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@
"facet-values": "Значения тега",
"facets": "",
"filter-by-name": "Фильтр по имени",
"filter-by-sku": "Фильтровать по SKU",
"filter-inheritance": "",
"filters": "Фильтры",
"inherit-filters-from-parent": "",
Expand Down
1 change: 1 addition & 0 deletions packages/admin-ui/src/lib/static/i18n-messages/uk.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@
"facet-values": "Значення тегу",
"facets": "",
"filter-by-name": "Фільтр по імені",
"filter-by-sku": "Фільтрувати за SKU",
"filter-inheritance": "",
"filters": "Фільтри",
"inherit-filters-from-parent": "",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@
"facet-values": "特征值列表",
"facets": "",
"filter-by-name": "按名字过滤",
"filter-by-sku": "按SKU筛选",
"filter-inheritance": "",
"filters": "过滤条件",
"inherit-filters-from-parent": "",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@
"facet-values": "特徵值列表",
"facets": "",
"filter-by-name": "按名字篩選",
"filter-by-sku": "依照SKU篩選",
"filter-inheritance": "",
"filters": "篩選條件",
"inherit-filters-from-parent": "",
Expand Down

0 comments on commit 52a09a4

Please sign in to comment.