Skip to content

Commit

Permalink
EPMRPP-91556 || Code Review fix - 2
Browse files Browse the repository at this point in the history
  • Loading branch information
BlazarQSO committed Dec 10, 2024
1 parent 2f5cb38 commit c4cfe63
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 23 deletions.
8 changes: 4 additions & 4 deletions app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"@formatjs/intl-pluralrules": "1.3.9",
"@formatjs/intl-relativetimeformat": "4.5.1",
"@formatjs/intl-utils": "1.6.0",
"@reportportal/ui-kit": "^0.0.1-alpha.34",
"@reportportal/ui-kit": "^0.0.1-alpha.35",
"axios": "1.6.4",
"c3": "0.7.20",
"chart.js": "2.9.4",
Expand Down
3 changes: 0 additions & 3 deletions app/src/common/img/newIcons/filter-filled-inline.svg

This file was deleted.

3 changes: 0 additions & 3 deletions app/src/common/img/newIcons/filters-outline-inline.svg

This file was deleted.

7 changes: 2 additions & 5 deletions app/src/components/main/filterButton/filterButton.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@
import { useEffect, useState } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames/bind';
import { Popover } from '@reportportal/ui-kit';
import Parser from 'html-react-parser';
import filterIcon from 'common/img/newIcons/filters-outline-inline.svg';
import filterFilledIcon from 'common/img/newIcons/filter-filled-inline.svg';
import { Popover, FilterOutlineIcon, FilterFilledIcon } from '@reportportal/ui-kit';
import { FilterContent } from './filterContent';
import styles from './filterButton.scss';

Expand Down Expand Up @@ -92,7 +89,7 @@ export const FilterButton = ({
tabIndex={0}
>
<i className={cx('filter-icon')}>
{appliedFiltersCount ? Parser(filterFilledIcon) : Parser(filterIcon)}
{appliedFiltersCount ? <FilterFilledIcon /> : <FilterOutlineIcon />}
</i>
{appliedFiltersCount ? (
<span className={cx('filters-count')}>{appliedFiltersCount}</span>
Expand Down
9 changes: 6 additions & 3 deletions app/src/controllers/pages/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,15 +161,18 @@ export const createFilterQuerySelector = ({
namespace,
} = {}) =>
createSelector(
createQueryParametersSelector({
createAlternativeQueryParametersSelector({
defaultPagination,
defaultSorting,
sortingKey,
namespace,
}),
({ [SIZE_KEY]: limit, [SORTING_ORDER_KEY]: sort, [PAGE_KEY]: pageNumber, ...rest }) => {
({ limit, sort, offset, order, ...rest }) => {
return {
...getAlternativePaginationAndSortParams(sort, limit, pageNumber),
limit,
sort,
offset,
order,
search_criteria: getAppliedFilters(rest)?.search_criterias,
};
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,13 @@
import React from 'react';
import { useSelector } from 'react-redux';
import PropTypes from 'prop-types';
import Parser from 'html-react-parser';
import classNames from 'classnames/bind';
import { Button } from '@reportportal/ui-kit';
import { Button, FilterOutlineIcon } from '@reportportal/ui-kit';
import { useIntl } from 'react-intl';
import { projectMembersSelector } from 'controllers/project';
import { SearchField } from 'components/fields/searchField';
import { NAMESPACE, SEARCH_KEY } from 'controllers/members/constants';
import { withFilter } from 'controllers/filter';
import filterIcon from 'common/img/newIcons/filters-outline-inline.svg';
import { PROJECT_PAGE_EVENTS } from 'components/main/analytics/events/ga4Events/projectPageEvents';
import { messages } from '../../common/membersPage/membersPageHeader/messages';
import { MembersPageHeader } from '../../common/membersPage/membersPageHeader';
Expand Down Expand Up @@ -61,7 +59,9 @@ export const ProjectTeamPageHeader = ({
placeholder={formatMessage(messages.searchPlaceholder)}
event={PROJECT_PAGE_EVENTS.SEARCH_PROJECT_TEAM_FIELD}
/>
<i className={cx('filters-icon')}>{Parser(filterIcon)}</i>
<i className={cx('filters-icon')}>
<FilterOutlineIcon />
</i>
</div>
{hasPermission && (
<Button variant={'ghost'} onClick={onInvite}>
Expand Down

0 comments on commit c4cfe63

Please sign in to comment.