Layer5: [NG] Make Service Mesh Patterns table sortable and filterable

Created on 21 Jan 2021  路  7Comments  路  Source: layer5io/layer5

Current Behavior
The table of service mesh patterns has two columns, neither of which are sortable, nor filterable.

Desired Behavior

  1. Users can click on the column name to sort each column, toggling between ascending and descending alphabetical order.
  2. Users can filter on Category type.

Contributor Resources
The layer5 repo contains two websites. The current generation and the next-generation of the layer5.io site.

If the layer5-ng label is absent on this issue, then this issue pertains to the current generation of the layer5.io website, which uses Jekyll and GitHub Pages. Site content is found under the master branch.

If the layer5-ng label is present on this issue, then this issue pertains to the next-generation of the layer5.io website, which uses Gatsby, Strapi, and GitHub Pages. Site content is found under the layer5-ng branch.

frameworgatsby frameworreact good first issue help wanted kinenhancement languagjavascript layer5-ng

All 7 comments

Yoo-hoo, @EmperorYP7... in case this is of interest.

@leecalcote Thanks for following up so quick. I'd love to take this up! 馃槃

Beautiful. :) The description leaves a little room for creativity with respect to item #2 - filtering on Category. I don't know that we have a standard approach to filtering on table columns (tagging @Nikhil-Ladha, @Tanuj22, @Jashpatel1 for guidance). If not, it'd be good to see a suggestion or two from you on the approach.

There is an option to filter columns in react-table, please use that.
Checkout this link: https://react-table.tanstack.com/docs/overview

@Nikhil-Ladha Thanks for the docs.

Here's one quick question, do I need to retain the subsections (or "Areas") in the table while sorting i.e. sort each subsection independently?

Hmm, yeah that should be the way.

Closing with #1400

Was this page helpful?
0 / 5 - 0 ratings