remote-jobs icon indicating copy to clipboard operation
remote-jobs copied to clipboard

Adding a filter section

Open Joykareko opened this issue 3 years ago • 10 comments

Can we add a filter section to the list, so we can easily filter by #worldwide or #USA or whichever instead of scrolling down to the full list?

Joykareko avatar Oct 08 '21 11:10 Joykareko

Great idea, filtering is something I'd love to have help with.

That said, the search field will work for region term.

dougaitken avatar Oct 22 '21 21:10 dougaitken

I like to implement that. But we have to decide where the filter input will be shown.

GabrielModog avatar Oct 24 '21 01:10 GabrielModog

What thoughts do you have @GabrielModog - I'm open to ideas.

dougaitken avatar Oct 24 '21 19:10 dougaitken

Currently we can search by company. My idea is add another filter below this one.

image

GabrielModog avatar Oct 24 '21 22:10 GabrielModog

How do you think this would be populated @GabrielModog? I ask as the region is fairly standardized but there are some edge-cases with single country or some timezones.

Would your filter parse the list and offer the existing entries as filter options or would you provide a smaller specific set?

dougaitken avatar Oct 29 '21 12:10 dougaitken

I don't know if a get it what you trying to say...

So I was thinking rewrite the current filter code to make reusable as possible to maybe add others filters in the future.

For now I thought to make a radio button to switch the type of filter (by company or country). When I made some test by adding a new input don't look so nice. So to me the solution is a radio button to switch the type of filter.

GabrielModog avatar Oct 30 '21 01:10 GabrielModog

@GabrielModog Can you open a PR with what you have? It'll generate a preview URL so I can take a look.

This is a tricky scenario so I appreciate any ideas people have 😀

dougaitken avatar Oct 31 '21 12:10 dougaitken

@Joykareko what I'm thinking we can do this by a formula.

COUNTIF(range, criteria)

eg. COUNTIF(tblFilterList[FilterList],[@country])=1

"Tell me if i'm wrong", Thanks.

kb-s avatar May 23 '22 13:05 kb-s

@kb-s Thanks for the comment, your solution is intended for a spreadsheet, that isn't how the data is stored here.

dougaitken avatar Jun 12 '22 11:06 dougaitken

@dougaitken Thanks for the response.

kb-s avatar Jun 13 '22 04:06 kb-s