website icon indicating copy to clipboard operation
website copied to clipboard

Improve how the organization types are utilized

Open Ainali opened this issue 1 year ago • 2 comments

The feature

Only get the organization types through querying, and use them as chips (like a checkbox) to make it possible to filter the table on organization types.

Why?

Today, the organization types are manually listed in the countries query and shown on the country page. It is also fetched and then shown in the table. As a result, they may mismatch if there has been a change on Wikidata.

Examples and inspiration

Skärmbild från 2024-10-04 15-51-51 This is just an example, the placement is perhaps better swapped with the Search, and it deserves its own styling to make it more different from the regular buttons.

Ainali avatar Oct 04 '24 13:10 Ainali

Dropping Googles docs on filter chips: https://m3.material.io/components/chips/guidelines#8d453d50-8d8e-43aa-9ae3-87ed134d2e64

Abbe98 avatar Oct 04 '24 16:10 Abbe98

I wonder what people would think about a drop down chip like this: https://firebasestorage.googleapis.com/v0/b/design-spec/o/projects%2Fgoogle-material-3%2Fimages%2Flwrqsi49-GM3-Components-Chips-Guidelines-3-v01.mp4?alt=media&token=df8f575e-9743-4a2e-9115-b4d413c45b2a

Technically harder but it's probably easier design wise both layout wise and state wise. Downside is that you need to filer by all or a single type.

Abbe98 avatar Oct 04 '24 16:10 Abbe98