ebiwd / EBI-Pattern-library

Please head to the new pattern library:
http://www.ebi.ac.uk/style-lab/websites/patterns/
2 stars 2 forks source link

Common filter layout #27

Open tschaka1904 opened 7 years ago

tschaka1904 commented 7 years ago

In the Complex-Portal, as I think in many of the other EBI pages, we have a results page. There you can navigate through the results using the suggested pagination and filters.

screen shot 2017-03-14 at 16 29 45

Maybe, it would be worth to have a common layout and design for the filters?

khawkins98 commented 7 years ago

Yes, good candidate for a shared pattern.

Would also be nice to build in a responsive approach -- perhaps with the sub-categories being accordian-collpased on small mobile.

A couple of examples from around EBI:

I'm sure there are others, but I don't recall seeing on that seemed like a pattern that could easily be ported -- we might want to use the one you have as a base pattern. Is the page somewhere I can access, or just on your local machine?

tschaka1904 commented 7 years ago

I like the UniProt one the most. Looks very clean.

Sure, here is the source code: https://github.com/Complex-Portal/complex-portal-view/blob/v0.0.4-beta/src/app/complex/complex-results/complex-filter/complex-filter.component.html

And here is the and visual example: https://complex-portal.github.io/complex-portal-view/search?query=GO%3A0016491

...slightly off topic, but the loading bar in EBI Search, which is just underneath the header. Is that foundation or something else?

khawkins98 commented 7 years ago

And here is Interpro in the new version:

image

http://wwwdev.ebi.ac.uk/interpro/sequencesearch/iprscan5-S20170316-145537-0616-23692636-hx

Thanks for the link to your dev version.

As for EBI Search, that's all done in Angular -- I believe it's a common Angular pattern. I think it's quite nice and could be "ported" to Foundation.