Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search facets filters #896

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Search facets filters #896

wants to merge 1 commit into from

Conversation

bbfsdev
Copy link
Collaborator

@bbfsdev bbfsdev commented May 15, 2022

No description provided.

@bbfsdev bbfsdev force-pushed the search-facets-filters branch 3 times, most recently from bd5c263 to ae20678 Compare July 8, 2022 01:55
@bbfsdev bbfsdev force-pushed the search-facets-filters branch 4 times, most recently from 6382c4d to 2f45209 Compare July 17, 2022 08:12
@bbfsdev bbfsdev requested a review from davgur July 17, 2022 08:13

const ContentType = ({ namespace, t }) => {
let items = useSelector(state => selectors.getTree(state.filtersAside, namespace, FN_CONTENT_TYPE));
// console.log('ContentType filter items', items)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you need console logs?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed.

@@ -83,6 +83,10 @@ const FallbackImage = props => {
}

if (knownFallbackImages.includes(imageSource)) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fluid is semantic prop so for not semantic components its not need ( I was remove 'circle' so)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm fixing the following error:
image

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed this code from this PR.

@bbfsdev bbfsdev force-pushed the search-facets-filters branch 4 times, most recently from ada6250 to 091640c Compare July 22, 2022 02:19
@bbfsdev bbfsdev force-pushed the search-facets-filters branch from 091640c to 131d8f5 Compare July 22, 2022 02:26
@@ -35,6 +35,8 @@ const TagSourceItem = props => {
const getById = isTag ? getTagById : getSourceById;
const item = getById(id);
const childrenIDs = useMemo(() => item.children?.filter(x => baseItems.includes(x)) || [], [baseItems, item]);
const childrenStats = useSelector(state => filtersAside.getMultipleStats(state.filtersAside, namespace, filterName)(childrenIDs));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you run it for all pages even you need it for search only

const baseItems = useSelector(state => selectors.getTree(state.filtersAside, namespace, FN_TOPICS_MULTI));
const selectedFilters = useSelector(state => filters.getFilterByName(state.filters, namespace, FN_TOPICS_MULTI));
const selected = useMemo(() => selectedFilters?.values || [], [selectedFilters]);

console.log('SELECTED', selected);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you need it?

@@ -59,12 +70,23 @@ const receiveSingleTypeStats = createAction(RECEIVE_SINGLE_TYPE_STATS);
const fetchStatsFailure = createAction(FETCH_STATS_FAILURE);
const receiveLocationsStats = createAction(RECEIVE_LOCATIONS_STATS);

const fetchElasticStats = createAction(FETCH_ELASTIC_STATS, (namespace, params, isPrepare) => ({
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you dont need isPrepare

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants