[Platform]: Add FilterComponent on Profile and Association pages#512
[Platform]: Add FilterComponent on Profile and Association pages#512louwenjjr wants to merge 2 commits intoopentargets:mainfrom
Conversation
It can filter out sections/data sources by using the new ProfileContext and the existing AssociationsContext. Filter selection persists in browser cache
|
Thanks for your PR, @louwenjjr. It's an exciting feature for AotF. To make it easier to review, test, and work on top of it, can you please remove all the nonrelated changes to the feature? For example, any change made in the platform/pages/, neither packages/sections/, nor should be part of this PR. |
Thanks for the quick reply @carcruz! I also implemented the filter on the profile pages that's why you see changes in those parts of the codebase. See as well the example image I added. Of course it is okay if you only want to include the filter functionality on the Association page. In that case I will split the PR, so let me know! |
[Platform]: Add FilterComponent on Profile and Association pages
Description
Added filter buttons to Profile and Association pages. To do so, the DataSources that are currently selected in the filter Modal are stored in the
AssociationsStateContextandProfileStateContextis created to store the currently selected Profile sections on the Profile page. UsinglocalStoragethe filters are stored. I also added a commit to convert the functionalities to TS.You can find a working example deployed on The Hyve's demo server. Please let us know what you guys think and if you would like to add it/parts to your repo.
Example of the Association page:

Example of the Profile page:

Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce.
Checklist: