Closed pengyin-shan closed 2 months ago
Name | Link |
---|---|
Latest commit | b8ef9fa58e4e76125167097d258118bceda46432 |
Latest deploy log | https://app.netlify.com/sites/cheerful-treacle-913a24/deploys/66c379e81945ce0008c8bb73 |
Name | Link |
---|---|
Latest commit | 79413d2f4d56b17dbb1d7a2c43c3624a860816ca |
Latest deploy log | https://app.netlify.com/sites/cheerful-treacle-913a24/deploys/66c626c972d2740008da302c |
Deploy Preview | https://deploy-preview-266--cheerful-treacle-913a24.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
This PR addresses issues #234 and #235. Note that the filter panel will be adjusted to the new design again based on the August 21st meeting, which includes a redesigned
index_year
slider and the removal of all filters exceptindex_year
(see https://www.notion.so/Design-Discussion-needed-90bc093f4b36420ab53468e0ae894c27 for details). There will be follow-up issues and PRs to implement these changes. This PR includes the filter functionality and a non-customized UI for the filter and sort features.How to Test
Navigate to the search page.
Click "Sort & Filter". The filter panel should appear with "Relevance" as the default sort setting (i.e., following the default ranking by Solr). The URL should be updated with
showFilter=on
:Click the "Close" button on the filter panel or the "Sort & Filter" icon. The panel should close, and the URL should be updated to remove the showFilter parameter
Repeat step 2, then click "Recent first" or "Oldest first". The order of the result items should change accordingly, now ranked by the
modified
attribute. Currently, the selected sorting method is indicated by an underline decoration, but we can change this later:Click "Maps" under "resource_class". You should now see that all items have Resource values including "Maps". Then click "Web services"; you should see more items added that have Resource values including "Web services":
Move the slider to "2020-2024" by dragging the left marker to the right. You should see that the result items are now filtered to those where: a. Resource value includes "Maps" OR "Web services" (inherited operation from the last step) AND b. Index_year value includes "2020" OR "2021" OR "2022" OR "2023", OR "2024":
Remove the Resource filter selection. You should now see more results where the Index_year value includes "2021", "2022", "2023", OR "2024":
Repeat step 4. You should see that the sort function still works with the filter applied.
Type "smart" in the search box and search. The filter settings should still be maintained for the query results:
Clear the search box. The result list should reset to the state described in step 8: