freedomcombination / monorepo

Freedom Combination Monorepo
https://ui.wsvvrijheid.nl
3 stars 0 forks source link

Add topic keyword filter #311

Closed 7alip closed 1 year ago

7alip commented 1 year ago

Add filter buttons in apps/admin/pages/news. When you click a button, you can set the keyword to searchItem state. Filtering should be case insensitive. Buttons can be horizontally scrollable when the viewport gets smaller (overflowX: auto).

const keywords = {
  tr: ["insan haklari", "işkence"],
  en: ["human rights", "torture"],
  nl: ["mensenrechten", "marteling"]
}

<ButtonGroup>
  {keywords[locale].map(keyword => ...}
Screenshot 2023-01-02 at 16 28 34
7alip commented 1 year ago

@MustafaTRKYLMZ What else can we add to the keywords list?

MustafaTRKYLMZ commented 1 year ago

@MustafaTRKYLMZ What else can we add to the keywords list?

we can add özgürlük, tutsak bebekler, cezaevi ihlalleri, geri itme ( push back), hasta tutuklular, tutuklu gazeteciler, yaṣam hakkı, kadın hakları, eğitim hakkı,

7alip commented 1 year ago

we can add özgürlük, tutsak bebekler, cezaevi ihlalleri, geri itme ( push back), hasta tutuklular, tutuklu gazeteciler, yaṣam hakkı, kadın hakları, eğitim hakkı,

We should probably create different list for each language.

Another important point is to improve filtering. For example, rather than hasta tutuklular, we can search for hasta + tutuklu to get more results. Maybe later, we can save news content without having to fetch it from the frontend (otherwise we might fetch huge data). The aim of saving the content is to be able to do backend search/filtering for news content as well.

MustafaTRKYLMZ commented 1 year ago

we can add özgürlük, tutsak bebekler, cezaevi ihlalleri, geri itme ( push back), hasta tutuklular, tutuklu gazeteciler, yaṣam hakkı, kadın hakları, eğitim hakkı,

We should probably create different list for each language.

Another important point is to improve filtering. For example, rather than hasta tutuklular, we can search for hasta + tutuklu to get more results. Maybe later, we can save news content without having to fetch it from the frontend (otherwise we might fetch huge data). The aim of saving the content is to be able to do backend search/filtering for news content as well.

Can we make dinamic filter.? If we want we can create new filter world instand of static key world. For example 'add new key world, update or delete'