Add the ability to filter search by type of file. On the main search page, when the user clicks on filter search, a modal will appear for the user to select the file types to filter by.
An inventory was done on the current file types in the Content Library. These file types are mapped to their respective mime types and added to the search query.
Related Issue
Motivation and Context
Make it easier for someone searching for content to filter by file type.
Checklist
[ ] Ran npm run lint and updated code style accordingly
[ ] npm run test passes
[ ] PR has a description and all contributors/stakeholder are noted/cc'ed
[ ] tests are updated and/or added to cover new code
[ ] relevant documentation is changed and/or added
Closes #31
Description of Change
Add the ability to filter search by type of file. On the main search page, when the user clicks on filter search, a modal will appear for the user to select the file types to filter by.
An inventory was done on the current file types in the Content Library. These file types are mapped to their respective mime types and added to the search query.
Related Issue
Motivation and Context
Make it easier for someone searching for content to filter by file type.
Checklist
npm run lint
and updated code style accordinglynpm run test
passes