Skip to content

Commit 780ae3a

Browse files
authored
Remove obsolete/useless Verified badging filter in search (#13132)
1 parent bfa65ed commit 780ae3a

File tree

4 files changed

+0
-31
lines changed

4 files changed

+0
-31
lines changed

src/amo/components/Search/index.js

-12
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import {
2323
SEARCH_SORT_TOP_RATED,
2424
SEARCH_SORT_TRENDING,
2525
VIEW_CONTEXT_HOME,
26-
VERIFIED_FILTER,
2726
} from 'amo/constants';
2827
import { withFixedErrorHandler } from 'amo/errorHandler';
2928
import translate from 'amo/i18n/translate';
@@ -172,17 +171,6 @@ export class SearchBase extends React.Component<InternalProps> {
172171
default:
173172
title = i18n.gettext('Reviewed add-ons');
174173
}
175-
} else if (filters.promoted === VERIFIED_FILTER) {
176-
switch (filters.addonType) {
177-
case ADDON_TYPE_EXTENSION:
178-
title = i18n.gettext('Verified extensions');
179-
break;
180-
case ADDON_TYPE_STATIC_THEME:
181-
title = i18n.gettext('Verified themes');
182-
break;
183-
default:
184-
title = i18n.gettext('Verified add-ons');
185-
}
186174
}
187175
} else if (filters && filters.sort) {
188176
switch (filters.sort) {

src/amo/components/SearchFilters/index.js

-5
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import {
1919
SEARCH_SORT_TOP_RATED,
2020
SEARCH_SORT_TRENDING,
2121
SEARCH_SORT_UPDATED,
22-
VERIFIED_FILTER,
2322
} from 'amo/constants';
2423
import { withErrorHandler } from 'amo/errorHandler';
2524
import log from 'amo/logger';
@@ -182,10 +181,6 @@ export class SearchFiltersBase extends React.Component<InternalProps> {
182181
children: i18n.gettext('By Firefox'),
183182
value: LINE,
184183
},
185-
{
186-
children: i18n.gettext('Verified'),
187-
value: VERIFIED_FILTER,
188-
},
189184
{
190185
children: i18n.gettext('All Reviewed'),
191186
value: REVIEWED_FILTER,

src/amo/constants.js

-1
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,6 @@ export const EXCLUDE_WARNING_CATEGORIES = [
346346
VERIFIED,
347347
];
348348
export const REVIEWED_FILTER = 'badged';
349-
export const VERIFIED_FILTER = `${SPONSORED},${VERIFIED}`;
350349

351350
export type PromotedCategoryType =
352351
| typeof LINE

tests/unit/amo/pages/TestSearchPage.js

-13
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import {
2424
SEARCH_SORT_TOP_RATED,
2525
SEARCH_SORT_POPULAR,
2626
SET_VIEW_CONTEXT,
27-
VERIFIED_FILTER,
2827
VIEW_CONTEXT_HOME,
2928
} from 'amo/constants';
3029
import { fetchCategories, loadCategories } from 'amo/reducers/categories';
@@ -535,18 +534,6 @@ describe(__filename, () => {
535534
{ type: ADDON_TYPE_LANG, promoted: REVIEWED_FILTER },
536535
'Reviewed add-ons',
537536
],
538-
[
539-
{ type: ADDON_TYPE_EXTENSION, promoted: VERIFIED_FILTER },
540-
'Verified extensions',
541-
],
542-
[
543-
{ type: ADDON_TYPE_STATIC_THEME, promoted: VERIFIED_FILTER },
544-
'Verified themes',
545-
],
546-
[
547-
{ type: ADDON_TYPE_LANG, promoted: VERIFIED_FILTER },
548-
'Verified add-ons',
549-
],
550537
[
551538
{ type: ADDON_TYPE_EXTENSION, sort: SEARCH_SORT_TRENDING },
552539
'Trending extensions',

0 commit comments

Comments
 (0)