gawati / gawati-portal-ui

Version 2 of the gawati portal
GNU Affero General Public License v3.0
0 stars 0 forks source link

Filter UI Modification #3

Open kohsah opened 6 years ago

kohsah commented 6 years ago

Current UI

Currently the filters on the pages are static blocks:

image

This needs to be changed to something more dynamic, taking the years filter as an example to something like--

image

Currently filters are monolothic. I choose a filter linking and the listing is for that filter. It isnt possible to combine (add, remove) filters on a listing. So the idea is to have "pluggable" filters.

Currently the filters are technically individual components. They need to have different UI/UX depending on the context and need to be functionally connected.

Enhanced UI

Here is the enhancement described in depth, from a macro level, down to a micro level : (click on the images to view it in full resolution)

This is how it would look on the page (the reading order is that of the numbered call-outs ..1, 2, 3...)

image

Here is a zoomed in view of the stacked filters:

image

And here is a functional view of a specific filter :

image

kohsah commented 6 years ago

This [1] is a proposed format for filter section output, asumming the following options have been selected:

Points of note:

[1] --


{
  "search": {
      "countries": [
        {
            "code": "bf",
            "count": "558",
            "#text": "Burkina Faso"
        },
        {
            "code": "mu",
            "count": "22",
            "#text": "Mauritius"
        }
      ],
      "langs" : [
        {
            "code": "eng",
            "count": "23",
            "#text": "English"
        },
        {
            "code": "fra",
            "count": "557",
            "#text": "Français"
        }      
      ],
      "years" : [
        {
            "year": "2016",
            "count": "548"
        },
        {
            "year": "2015",
            "count": "7"
        }     
      ],
      "keywords": [
           {
                "value": "2MoisDePréavis",
                "count": "1",
                "showAs": "2 mois de préavis"
            },
            {
                "value": "AbandonDePoste",
                "count": "1",
                "showAs": "Abandon de poste"
            }
       ]
  }
}
kohsah commented 6 years ago

Preliminary implementation of Dynamic filter merged into master ... see video below :

Filter Usage

kohsah commented 6 years ago

Quick filters have been added below the auto-complete in the individual filters clicking those allows quick search by single filters

image

Still further to do: auto-complete for keyword based filter

kohsah commented 6 years ago

See Issue #9

Arunadevi commented 6 years ago

Are there more details about the functionality of the + button that adds a filter?